Сдана лаб 1 хард

This commit is contained in:
Данила Мочалов 2023-02-13 10:08:11 +04:00
parent cf13f3028e
commit b1dfb228b2
2 changed files with 24 additions and 20 deletions

View File

@ -39,7 +39,7 @@
this.buttonSetToDone = new System.Windows.Forms.Button(); this.buttonSetToDone = new System.Windows.Forms.Button();
this.buttonSetToFinish = new System.Windows.Forms.Button(); this.buttonSetToFinish = new System.Windows.Forms.Button();
this.buttonUpdate = new System.Windows.Forms.Button(); this.buttonUpdate = new System.Windows.Forms.Button();
this.пополнениеМагазинаToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.buttonSupplyShop = new System.Windows.Forms.Button();
this.menuStrip.SuspendLayout(); this.menuStrip.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
@ -60,8 +60,7 @@
this.справочникиToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.справочникиToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.бланкиToolStripMenuItem, this.бланкиToolStripMenuItem,
this.документыToolStripMenuItem, this.документыToolStripMenuItem,
this.магазиныToolStripMenuItem, this.магазиныToolStripMenuItem});
this.пополнениеМагазинаToolStripMenuItem});
this.справочникиToolStripMenuItem.Name = "справочникиToolStripMenuItem"; this.справочникиToolStripMenuItem.Name = "справочникиToolStripMenuItem";
this.справочникиToolStripMenuItem.Size = new System.Drawing.Size(117, 24); this.справочникиToolStripMenuItem.Size = new System.Drawing.Size(117, 24);
this.справочникиToolStripMenuItem.Text = "Справочники"; this.справочникиToolStripMenuItem.Text = "Справочники";
@ -69,21 +68,21 @@
// бланкиToolStripMenuItem // бланкиToolStripMenuItem
// //
this.бланкиToolStripMenuItem.Name = "бланкиToolStripMenuItem"; this.бланкиToolStripMenuItem.Name = "бланкиToolStripMenuItem";
this.бланкиToolStripMenuItem.Size = new System.Drawing.Size(251, 26); this.бланкиToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
this.бланкиToolStripMenuItem.Text = "Бланки"; this.бланкиToolStripMenuItem.Text = "Бланки";
this.бланкиToolStripMenuItem.Click += new System.EventHandler(this.бланкиToolStripMenuItem_Click); this.бланкиToolStripMenuItem.Click += new System.EventHandler(this.бланкиToolStripMenuItem_Click);
// //
// документыToolStripMenuItem // документыToolStripMenuItem
// //
this.документыToolStripMenuItem.Name = окументыToolStripMenuItem"; this.документыToolStripMenuItem.Name = окументыToolStripMenuItem";
this.документыToolStripMenuItem.Size = new System.Drawing.Size(251, 26); this.документыToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
this.документыToolStripMenuItem.Text = "Документы"; this.документыToolStripMenuItem.Text = "Документы";
this.документыToolStripMenuItem.Click += new System.EventHandler(this.документыToolStripMenuItem_Click); this.документыToolStripMenuItem.Click += new System.EventHandler(this.документыToolStripMenuItem_Click);
// //
// магазиныToolStripMenuItem // магазиныToolStripMenuItem
// //
this.магазиныToolStripMenuItem.Name = агазиныToolStripMenuItem"; this.магазиныToolStripMenuItem.Name = агазиныToolStripMenuItem";
this.магазиныToolStripMenuItem.Size = new System.Drawing.Size(251, 26); this.магазиныToolStripMenuItem.Size = new System.Drawing.Size(224, 26);
this.магазиныToolStripMenuItem.Text = "Магазины"; this.магазиныToolStripMenuItem.Text = "Магазины";
this.магазиныToolStripMenuItem.Click += new System.EventHandler(this.магазиныToolStripMenuItem_Click); this.магазиныToolStripMenuItem.Click += new System.EventHandler(this.магазиныToolStripMenuItem_Click);
// //
@ -147,18 +146,22 @@
this.buttonUpdate.UseVisualStyleBackColor = true; this.buttonUpdate.UseVisualStyleBackColor = true;
this.buttonUpdate.Click += new System.EventHandler(this.buttonUpdate_Click); this.buttonUpdate.Click += new System.EventHandler(this.buttonUpdate_Click);
// //
// пополнениеМагазинаToolStripMenuItem // buttonSupplyShop
// //
this.пополнениеМагазинаToolStripMenuItem.Name = "пополнениеМагазинаToolStripMenuItem"; this.buttonSupplyShop.Location = new System.Drawing.Point(933, 185);
this.пополнениеМагазинаToolStripMenuItem.Size = new System.Drawing.Size(251, 26); this.buttonSupplyShop.Name = "buttonSupplyShop";
this.пополнениеМагазинаToolStripMenuItem.Text = "Пополнение магазина"; this.buttonSupplyShop.Size = new System.Drawing.Size(194, 29);
this.пополнениеМагазинаToolStripMenuItem.Click += new System.EventHandler(this.пополнениеМагазинаToolStripMenuItem_Click); this.buttonSupplyShop.TabIndex = 7;
this.buttonSupplyShop.Text = "Пополнение магазина";
this.buttonSupplyShop.UseVisualStyleBackColor = true;
this.buttonSupplyShop.Click += new System.EventHandler(this.buttonSupplyShop_Click);
// //
// FormMain // FormMain
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1139, 450); this.ClientSize = new System.Drawing.Size(1139, 450);
this.Controls.Add(this.buttonSupplyShop);
this.Controls.Add(this.buttonUpdate); this.Controls.Add(this.buttonUpdate);
this.Controls.Add(this.buttonSetToFinish); this.Controls.Add(this.buttonSetToFinish);
this.Controls.Add(this.buttonSetToDone); this.Controls.Add(this.buttonSetToDone);
@ -191,6 +194,6 @@
private Button buttonSetToFinish; private Button buttonSetToFinish;
private Button buttonUpdate; private Button buttonUpdate;
private ToolStripMenuItem магазиныToolStripMenuItem; private ToolStripMenuItem магазиныToolStripMenuItem;
private ToolStripMenuItem пополнениеМагазинаToolStripMenuItem; private Button buttonSupplyShop;
} }
} }

View File

@ -77,14 +77,6 @@ namespace LawFirmView
form.ShowDialog(); form.ShowDialog();
} }
} }
private void пополнениеМагазинаToolStripMenuItem_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormShopSupply));
if (service is FormShopSupply form)
{
form.ShowDialog();
}
}
private void buttonCreateOrder_Click(object sender, EventArgs e) private void buttonCreateOrder_Click(object sender, EventArgs e)
{ {
@ -180,5 +172,14 @@ namespace LawFirmView
{ {
LoadData(); LoadData();
} }
private void buttonSupplyShop_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormShopSupply));
if (service is FormShopSupply form)
{
form.ShowDialog();
}
}
} }
} }