День 1952. Даже не верится! Первый (и скорее всего самый сложный) этап закончен(?). Однако это лишь начало. Словно тренировка перед боем. Преподавательские листинги кончились. Настало время усложненной лабы. Я словно остался один на один со страшным, необузданным зверем, и имя ему - С#...

This commit is contained in:
Artyom_Yashin 2024-02-11 18:14:28 +04:00
parent f502d1323f
commit cbafaaa198
4 changed files with 35 additions and 32 deletions

View File

@ -38,11 +38,11 @@
buttonChange = new Button();
buttonAdd = new Button();
dataGridViewComponents = new DataGridView();
buttonSave = new Button();
buttonCancel = new Button();
id = new DataGridViewTextBoxColumn();
Component = new DataGridViewTextBoxColumn();
Count = new DataGridViewTextBoxColumn();
buttonSave = new Button();
buttonCancel = new Button();
groupBoxComponents.SuspendLayout();
((System.ComponentModel.ISupportInitialize)dataGridViewComponents).BeginInit();
SuspendLayout();
@ -58,6 +58,7 @@
//
textBoxPrice.Location = new Point(165, 52);
textBoxPrice.Name = "textBoxPrice";
textBoxPrice.ReadOnly = true;
textBoxPrice.Size = new Size(184, 27);
textBoxPrice.TabIndex = 1;
//
@ -145,26 +146,6 @@
dataGridViewComponents.Size = new Size(581, 381);
dataGridViewComponents.TabIndex = 0;
//
// buttonSave
//
buttonSave.Location = new Point(477, 518);
buttonSave.Name = "buttonSave";
buttonSave.Size = new Size(146, 29);
buttonSave.TabIndex = 5;
buttonSave.Text = "Сохранить";
buttonSave.UseVisualStyleBackColor = true;
buttonSave.Click += ButtonSave_Click;
//
// buttonCancel
//
buttonCancel.Location = new Point(629, 519);
buttonCancel.Name = "buttonCancel";
buttonCancel.Size = new Size(146, 29);
buttonCancel.TabIndex = 6;
buttonCancel.Text = "Отмена";
buttonCancel.UseVisualStyleBackColor = true;
buttonCancel.Click += ButtonCancel_Click;
//
// id
//
id.HeaderText = "id";
@ -185,6 +166,26 @@
Count.MinimumWidth = 6;
Count.Name = "Count";
//
// buttonSave
//
buttonSave.Location = new Point(477, 518);
buttonSave.Name = "buttonSave";
buttonSave.Size = new Size(146, 29);
buttonSave.TabIndex = 5;
buttonSave.Text = "Сохранить";
buttonSave.UseVisualStyleBackColor = true;
buttonSave.Click += ButtonSave_Click;
//
// buttonCancel
//
buttonCancel.Location = new Point(629, 519);
buttonCancel.Name = "buttonCancel";
buttonCancel.Size = new Size(146, 29);
buttonCancel.TabIndex = 6;
buttonCancel.Text = "Отмена";
buttonCancel.UseVisualStyleBackColor = true;
buttonCancel.Click += ButtonCancel_Click;
//
// FormComputer
//
AutoScaleDimensions = new SizeF(8F, 20F);

View File

@ -38,6 +38,7 @@
//
// comboBoxComponent
//
comboBoxComponent.DropDownStyle = ComboBoxStyle.DropDownList;
comboBoxComponent.FormattingEnabled = true;
comboBoxComponent.Location = new Point(163, 30);
comboBoxComponent.Name = "comboBoxComponent";

View File

@ -40,6 +40,7 @@
//
// comboBoxComputer
//
comboBoxComputer.DropDownStyle = ComboBoxStyle.DropDownList;
comboBoxComputer.FormattingEnabled = true;
comboBoxComputer.Location = new Point(130, 19);
comboBoxComputer.Name = "comboBoxComputer";

View File

@ -48,7 +48,7 @@
menuStrip.Items.AddRange(new ToolStripItem[] { справочникиToolStripMenuItem });
menuStrip.Location = new Point(0, 0);
menuStrip.Name = "menuStrip";
menuStrip.Size = new Size(1074, 28);
menuStrip.Size = new Size(1209, 28);
menuStrip.TabIndex = 0;
menuStrip.Text = "Меню справочников";
//
@ -62,14 +62,14 @@
// компонентыToolStripMenuItem
//
компонентыToolStripMenuItem.Name = омпонентыToolStripMenuItem";
компонентыToolStripMenuItem.Size = new Size(224, 26);
компонентыToolStripMenuItem.Size = new Size(184, 26);
компонентыToolStripMenuItem.Text = "Компоненты";
компонентыToolStripMenuItem.Click += ComponentsStripMenuItem_Click;
//
// компьютерыToolStripMenuItem
//
компьютерыToolStripMenuItem.Name = омпьютерыToolStripMenuItem";
компьютерыToolStripMenuItem.Size = new Size(224, 26);
компьютерыToolStripMenuItem.Size = new Size(184, 26);
компьютерыToolStripMenuItem.Text = "Компьютеры";
компьютерыToolStripMenuItem.Click += ComputersStripMenuItem_Click;
//
@ -80,12 +80,12 @@
dataGridView.Name = "dataGridView";
dataGridView.RowHeadersWidth = 51;
dataGridView.RowTemplate.Height = 29;
dataGridView.Size = new Size(860, 419);
dataGridView.Size = new Size(970, 419);
dataGridView.TabIndex = 1;
//
// buttonCreateOrder
//
buttonCreateOrder.Location = new Point(875, 52);
buttonCreateOrder.Location = new Point(999, 46);
buttonCreateOrder.Name = "buttonCreateOrder";
buttonCreateOrder.Size = new Size(187, 37);
buttonCreateOrder.TabIndex = 2;
@ -95,7 +95,7 @@
//
// buttonTakeOrderInWork
//
buttonTakeOrderInWork.Location = new Point(875, 129);
buttonTakeOrderInWork.Location = new Point(999, 123);
buttonTakeOrderInWork.Name = "buttonTakeOrderInWork";
buttonTakeOrderInWork.Size = new Size(187, 37);
buttonTakeOrderInWork.TabIndex = 3;
@ -105,7 +105,7 @@
//
// buttonOrderReady
//
buttonOrderReady.Location = new Point(875, 202);
buttonOrderReady.Location = new Point(999, 196);
buttonOrderReady.Name = "buttonOrderReady";
buttonOrderReady.Size = new Size(187, 37);
buttonOrderReady.TabIndex = 4;
@ -115,7 +115,7 @@
//
// buttonIssuedOrder
//
buttonIssuedOrder.Location = new Point(875, 273);
buttonIssuedOrder.Location = new Point(999, 267);
buttonIssuedOrder.Name = "buttonIssuedOrder";
buttonIssuedOrder.Size = new Size(187, 37);
buttonIssuedOrder.TabIndex = 5;
@ -125,7 +125,7 @@
//
// buttonRefresh
//
buttonRefresh.Location = new Point(875, 339);
buttonRefresh.Location = new Point(999, 333);
buttonRefresh.Name = "buttonRefresh";
buttonRefresh.Size = new Size(187, 37);
buttonRefresh.TabIndex = 6;
@ -137,7 +137,7 @@
//
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1074, 450);
ClientSize = new Size(1209, 450);
Controls.Add(buttonRefresh);
Controls.Add(buttonIssuedOrder);
Controls.Add(buttonOrderReady);