From 537d5840d6a7045eec1d3eb92eb38a96f3fa4024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D1=8F=D1=80=20=D0=90=D0=B3=D0=BB?= =?UTF-8?q?=D0=B8=D1=83=D0=BB=D0=BB=D0=BE=D0=B2?= Date: Sun, 19 Mar 2023 17:46:57 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B0=D0=B4=D0=B5=D1=8E=D1=81=D1=8C=20?= =?UTF-8?q?=D1=8D=D1=82=D0=BE=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=D0=B4=D0=BD?= =?UTF-8?q?=D0=B8=D0=B9=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B8=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Confectionery/FormMain.Designer.cs | 47 ++++++++++++++++------------ Confectionery/FormMain.cs | 50 +++++++++++++++--------------- 2 files changed, 53 insertions(+), 44 deletions(-) diff --git a/Confectionery/FormMain.Designer.cs b/Confectionery/FormMain.Designer.cs index d3b98cb..052ab2c 100644 --- a/Confectionery/FormMain.Designer.cs +++ b/Confectionery/FormMain.Designer.cs @@ -38,25 +38,26 @@ reportsToolStripMenuItem = new ToolStripMenuItem(); reportShopsToolStripMenuItem = new ToolStripMenuItem(); ShopPastriesToolStripMenuItem = new ToolStripMenuItem(); - groupOrdersToolStripMenuItem = new ToolStripMenuItem(); - pastriesToolStripMenuItem = new ToolStripMenuItem(); - pastryComponentsToolStripMenuItem = new ToolStripMenuItem(); - ordersToolStripMenuItem = new ToolStripMenuItem(); - mailToolStripMenuItem = new ToolStripMenuItem(); - dataGridView = new DataGridView(); + groupOrdersToolStripMenuItem = new ToolStripMenuItem(); + pastriesToolStripMenuItem = new ToolStripMenuItem(); + pastryComponentsToolStripMenuItem = new ToolStripMenuItem(); + ordersToolStripMenuItem = new ToolStripMenuItem(); + DoWorkToolStripMenuItem = new ToolStripMenuItem(); + mailToolStripMenuItem = new ToolStripMenuItem(); + dataGridView = new DataGridView(); buttonCreateOrder = new Button(); button3 = new Button(); button4 = new Button(); buttonAddPastryInShop = new Button(); - DoWorkToolStripMenuItem = new ToolStripMenuItem(); buttonSellPastry = new Button(); + createBackupToolStripMenuItem = new ToolStripMenuItem(); menuStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); SuspendLayout(); // // menuStrip1 // - menuStrip1.Items.AddRange(new ToolStripItem[] { справочникиToolStripMenuItem, reportsToolStripMenuItem, DoWorkToolStripMenuItem, mailToolStripMenuItem }); + menuStrip1.Items.AddRange(new ToolStripItem[] { справочникиToolStripMenuItem, reportsToolStripMenuItem, DoWorkToolStripMenuItem, mailToolStripMenuItem, createBackupToolStripMenuItem }); menuStrip1.Location = new Point(0, 0); menuStrip1.Name = "menuStrip1"; menuStrip1.Size = new Size(783, 24); @@ -161,6 +162,13 @@ DoWorkToolStripMenuItem.Text = "Запуск работ"; DoWorkToolStripMenuItem.Click += DoWorkToolStripMenuItem_Click; // + // mailToolStripMenuItem + // + mailToolStripMenuItem.Name = "mailToolStripMenuItem"; + mailToolStripMenuItem.Size = new Size(62, 20); + mailToolStripMenuItem.Text = "Письма"; + mailToolStripMenuItem.Click += MailToolStripMenuItem_Click; + // // dataGridView // dataGridView.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; @@ -182,13 +190,6 @@ buttonCreateOrder.UseVisualStyleBackColor = true; buttonCreateOrder.Click += ButtonCreateOrder_Click; // - // mailToolStripMenuItem - // - mailToolStripMenuItem.Name = "mailToolStripMenuItem"; - mailToolStripMenuItem.Size = new Size(62, 20); - mailToolStripMenuItem.Text = "Письма"; - mailToolStripMenuItem.Click += MailToolStripMenuItem_Click; - // // button3 // button3.Anchor = AnchorStyles.Top | AnchorStyles.Right; @@ -233,6 +234,13 @@ buttonSellPastry.UseVisualStyleBackColor = true; buttonSellPastry.Click += ButtonSellPastry_Click; // + // createBackupToolStripMenuItem + // + createBackupToolStripMenuItem.Name = "createBackupToolStripMenuItem"; + createBackupToolStripMenuItem.Size = new Size(97, 20); + createBackupToolStripMenuItem.Text = "Создать бекап"; + createBackupToolStripMenuItem.Click += CreateBackupToolStripMenuItem_Click; + // // FormMain // AutoScaleDimensions = new SizeF(7F, 15F); @@ -277,8 +285,9 @@ private ToolStripMenuItem clientsToolStripMenuItem; private Button buttonAddPastryInShop; private Button buttonSellPastry; - private ToolStripMenuItem ImplementersToolStripMenuItem; - private ToolStripMenuItem DoWorkToolStripMenuItem; - private ToolStripMenuItem mailToolStripMenuItem; - } + private ToolStripMenuItem ImplementersToolStripMenuItem; + private ToolStripMenuItem DoWorkToolStripMenuItem; + private ToolStripMenuItem mailToolStripMenuItem; + private ToolStripMenuItem createBackupToolStripMenuItem; + } } \ No newline at end of file diff --git a/Confectionery/FormMain.cs b/Confectionery/FormMain.cs index 91f554d..294cfd4 100644 --- a/Confectionery/FormMain.cs +++ b/Confectionery/FormMain.cs @@ -61,7 +61,7 @@ namespace ConfectioneryView var form = DependencyManager.Instance.Resolve(); form.ShowDialog(); LoadData(); - + } private void ButtonIssuedOrder_Click(object sender, EventArgs e) @@ -116,21 +116,21 @@ namespace ConfectioneryView } } - private void ShopPastriesToolStripMenuItem_Click(object sender, EventArgs e) - { - var form = DependencyManager.Instance.Resolve(); - form.ShowDialog(); - } + private void ShopPastriesToolStripMenuItem_Click(object sender, EventArgs e) + { + var form = DependencyManager.Instance.Resolve(); + form.ShowDialog(); + } - private void PastryComponentsToolStripMenuItem_Click(object sender, EventArgs e) - { - var form = DependencyManager.Instance.Resolve(); + private void PastryComponentsToolStripMenuItem_Click(object sender, EventArgs e) + { + var form = DependencyManager.Instance.Resolve(); form.ShowDialog(); } private void GroupOrdersToolStripMenuItem_Click(object sender, EventArgs e) - { - var form = DependencyManager.Instance.Resolve(); + { + var form = DependencyManager.Instance.Resolve(); form.ShowDialog(); } @@ -138,28 +138,28 @@ namespace ConfectioneryView { var form = DependencyManager.Instance.Resolve(); form.ShowDialog(); - + } - private void ShopsToolStripMenuItem_Click(object sender, EventArgs e) - { - var form = DependencyManager.Instance.Resolve(); + private void ShopsToolStripMenuItem_Click(object sender, EventArgs e) + { + var form = DependencyManager.Instance.Resolve(); form.ShowDialog(); } - private void ButtonAddPastryInShop_Click(object sender, EventArgs e) - { - var form = DependencyManager.Instance.Resolve(); + private void ButtonAddPastryInShop_Click(object sender, EventArgs e) + { + var form = DependencyManager.Instance.Resolve(); + form.ShowDialog(); + } + + private void ButtonSellPastry_Click(object sender, EventArgs e) + { + var form = DependencyManager.Instance.Resolve(); form.ShowDialog(); } - private void ButtonSellPastry_Click(object sender, EventArgs e) - { - var form = DependencyManager.Instance.Resolve(); - form.ShowDialog(); - } - private void ClientsToolStripMenuItem_Click(object sender, EventArgs e) { var form = DependencyManager.Instance.Resolve(); @@ -184,7 +184,7 @@ namespace ConfectioneryView private void MailToolStripMenuItem_Click(object sender, EventArgs e) { var form = DependencyManager.Instance.Resolve(); - form.ShowDialog(); + form.ShowDialog(); } private void CreateBackupToolStripMenuItem_Click(object sender, EventArgs e)