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)