исправила формочку надеюсь сдам!

This commit is contained in:
malimova 2024-05-04 00:26:52 +04:00
parent f044c9cd9b
commit 3f78fd1d77
2 changed files with 64 additions and 60 deletions

View File

@ -20,67 +20,68 @@
base.Dispose(disposing); base.Dispose(disposing);
} }
#region Windows Form Designer generated code #region Windows Form Designer generated code
/// <summary> /// <summary>
/// Required method for Designer support - do not modify /// Required method for Designer support - do not modify
/// the contents of this method with the code editor. /// the contents of this method with the code editor.
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
dataGridView = new DataGridView(); dataGridView = new DataGridView();
buttonDelete = new Button(); buttonDelete = new Button();
buttonRefresh = new Button(); buttonRefresh = new Button();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
SuspendLayout(); SuspendLayout();
// //
// dataGridView // dataGridView
// //
dataGridView.BackgroundColor = Color.AliceBlue; dataGridView.BackgroundColor = Color.AliceBlue;
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView.Location = new Point(0, 1); dataGridView.Location = new Point(0, 1);
dataGridView.Name = "dataGridView"; dataGridView.Name = "dataGridView";
dataGridView.RowHeadersWidth = 62; dataGridView.RowHeadersWidth = 62;
dataGridView.Size = new Size(738, 450); dataGridView.Size = new Size(738, 450);
dataGridView.TabIndex = 0; dataGridView.TabIndex = 0;
// //
// buttonDelete // buttonDelete
// //
buttonDelete.Location = new Point(771, 93); buttonDelete.Location = new Point(771, 93);
buttonDelete.Name = "buttonDelete"; buttonDelete.Name = "buttonDelete";
buttonDelete.Size = new Size(133, 49); buttonDelete.Size = new Size(133, 49);
buttonDelete.TabIndex = 1; buttonDelete.TabIndex = 1;
buttonDelete.Text = "Удалить"; buttonDelete.Text = "Удалить";
buttonDelete.UseVisualStyleBackColor = true; buttonDelete.UseVisualStyleBackColor = true;
buttonDelete.Click += buttonDelete_Click; buttonDelete.Click += buttonDelete_Click;
// //
// buttonRefresh // buttonRefresh
// //
buttonRefresh.Location = new Point(771, 183); buttonRefresh.Location = new Point(771, 183);
buttonRefresh.Name = "buttonRefresh"; buttonRefresh.Name = "buttonRefresh";
buttonRefresh.Size = new Size(133, 49); buttonRefresh.Size = new Size(133, 49);
buttonRefresh.TabIndex = 2; buttonRefresh.TabIndex = 2;
buttonRefresh.Text = "Обновить"; buttonRefresh.Text = "Обновить";
buttonRefresh.UseVisualStyleBackColor = true; buttonRefresh.UseVisualStyleBackColor = true;
buttonRefresh.Click += buttonRefresh_Click; buttonRefresh.Click += buttonRefresh_Click;
// //
// FormClients // FormClients
// //
AutoScaleDimensions = new SizeF(10F, 25F); AutoScaleDimensions = new SizeF(10F, 25F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(938, 450); ClientSize = new Size(938, 450);
Controls.Add(buttonRefresh); Controls.Add(buttonRefresh);
Controls.Add(buttonDelete); Controls.Add(buttonDelete);
Controls.Add(dataGridView); Controls.Add(dataGridView);
Name = "FormClients"; Name = "FormClients";
Text = "Список клиентов"; Text = "Список клиентов";
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); Load += FormClients_Load;
ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
} ResumeLayout(false);
}
#endregion #endregion
private DataGridView dataGridView; private DataGridView dataGridView;
private Button buttonDelete; private Button buttonDelete;
private Button buttonRefresh; private Button buttonRefresh;
} }

View File

@ -37,7 +37,9 @@ namespace ConfectioneryView
services.AddTransient<IComponentStorage, ComponentStorage>(); services.AddTransient<IComponentStorage, ComponentStorage>();
services.AddTransient<IOrderStorage, OrderStorage>(); services.AddTransient<IOrderStorage, OrderStorage>();
services.AddTransient<IPastryStorage, PastryStorage>(); services.AddTransient<IPastryStorage, PastryStorage>();
services.AddTransient<IComponentLogic, ComponentLogic>(); services.AddTransient<IClientStorage, ClientStorage>();
services.AddTransient<IClientLogic, ClientLogic>();
services.AddTransient<IComponentLogic, ComponentLogic>();
services.AddTransient<IOrderLogic, OrderLogic>(); services.AddTransient<IOrderLogic, OrderLogic>();
services.AddTransient<IPastryLogic, PastryLogic>(); services.AddTransient<IPastryLogic, PastryLogic>();
services.AddTransient<IReportLogic, ReportLogic>(); services.AddTransient<IReportLogic, ReportLogic>();
@ -53,6 +55,7 @@ namespace ConfectioneryView
services.AddTransient<FormPastrys>(); services.AddTransient<FormPastrys>();
services.AddTransient<FormReportPastryComponents>(); services.AddTransient<FormReportPastryComponents>();
services.AddTransient<FormReportOrders>(); services.AddTransient<FormReportOrders>();
} services.AddTransient<FormClients>();
}
} }
} }