ПИбд-23 Салин Олег Алексеевич Лабораторная работа №1 #1

Closed
Oleja123 wants to merge 5 commits from Lab1 into main
4 changed files with 32 additions and 42 deletions
Showing only changes of commit 920f384004 - Show all commits

View File

@ -38,45 +38,42 @@
//
// NameTextBox
//
NameTextBox.Location = new Point(92, 13);
NameTextBox.Margin = new Padding(3, 4, 3, 4);
NameTextBox.Location = new Point(80, 10);
NameTextBox.Name = "NameTextBox";
NameTextBox.Size = new Size(277, 27);
NameTextBox.Size = new Size(243, 23);
NameTextBox.TabIndex = 0;
//
// CostTextBox
//
CostTextBox.Location = new Point(92, 56);
CostTextBox.Margin = new Padding(3, 4, 3, 4);
CostTextBox.Location = new Point(80, 42);
CostTextBox.Name = "CostTextBox";
CostTextBox.Size = new Size(135, 27);
CostTextBox.Size = new Size(119, 23);
CostTextBox.TabIndex = 1;
//
// NameLabel
//
NameLabel.AutoSize = true;
NameLabel.Location = new Point(8, 27);
NameLabel.Location = new Point(7, 20);
NameLabel.Name = "NameLabel";
NameLabel.Size = new Size(77, 20);
NameLabel.Size = new Size(59, 15);
NameLabel.TabIndex = 2;
NameLabel.Text = "Название";
//
// CostLabel
//
CostLabel.AutoSize = true;
CostLabel.Location = new Point(8, 65);
CostLabel.Location = new Point(7, 49);
CostLabel.Name = "CostLabel";
CostLabel.Size = new Size(45, 20);
CostLabel.Size = new Size(35, 15);
CostLabel.TabIndex = 3;
CostLabel.Text = "Цена";
//
// CancelButton
//
CancelButton.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
CancelButton.Location = new Point(282, 91);
CancelButton.Margin = new Padding(3, 4, 3, 4);
CancelButton.Location = new Point(247, 68);
CancelButton.Name = "CancelButton";
CancelButton.Size = new Size(86, 31);
CancelButton.Size = new Size(75, 23);
CancelButton.TabIndex = 4;
CancelButton.Text = "Отмена";
CancelButton.UseVisualStyleBackColor = true;
@ -85,10 +82,9 @@
// SaveButton
//
SaveButton.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
SaveButton.Location = new Point(189, 91);
SaveButton.Margin = new Padding(3, 4, 3, 4);
SaveButton.Location = new Point(165, 68);
SaveButton.Name = "SaveButton";
SaveButton.Size = new Size(86, 31);
SaveButton.Size = new Size(75, 23);
SaveButton.TabIndex = 5;
SaveButton.Text = "Сохранить";
SaveButton.UseVisualStyleBackColor = true;
@ -96,19 +92,18 @@
//
// ComponentForm
//
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
AutoSizeMode = AutoSizeMode.GrowAndShrink;
ClientSize = new Size(381, 129);
ClientSize = new Size(333, 97);
Controls.Add(SaveButton);
Controls.Add(CancelButton);
Controls.Add(CostLabel);
Controls.Add(NameLabel);
Controls.Add(CostTextBox);
Controls.Add(NameTextBox);
Margin = new Padding(3, 4, 3, 4);
Name = "ComponentForm";
Text = "Компонент";
Text = "ComponentForm";
Outdated
Review

Заголовок формы оформлен неверно

Заголовок формы оформлен неверно
Load += ComponentForm_Load;
ResumeLayout(false);
PerformLayout();

View File

@ -95,7 +95,7 @@
Controls.Add(AddButton);
Controls.Add(DataGridView);
Name = "ComponentsForm";
Text = "Компоненты";
Text = "ComponentsForm";
Load += ComponentsForm_Load;
((System.ComponentModel.ISupportInitialize)DataGridView).EndInit();
ResumeLayout(false);

View File

@ -39,44 +39,41 @@
// ComponentLabel
//
ComponentLabel.AutoSize = true;
ComponentLabel.Location = new Point(14, 12);
ComponentLabel.Location = new Point(12, 9);
ComponentLabel.Name = "ComponentLabel";
ComponentLabel.Size = new Size(88, 20);
ComponentLabel.Size = new Size(69, 15);
ComponentLabel.TabIndex = 0;
ComponentLabel.Text = "Компонент";
//
// CountLabel
//
CountLabel.AutoSize = true;
CountLabel.Location = new Point(14, 53);
CountLabel.Location = new Point(12, 40);
CountLabel.Name = "CountLabel";
CountLabel.Size = new Size(90, 20);
CountLabel.Size = new Size(72, 15);
CountLabel.TabIndex = 1;
CountLabel.Text = "Количество";
//
// CountTextBox
//
CountTextBox.Location = new Point(99, 49);
CountTextBox.Margin = new Padding(3, 4, 3, 4);
CountTextBox.Location = new Point(87, 37);
CountTextBox.Name = "CountTextBox";
CountTextBox.Size = new Size(333, 27);
CountTextBox.Size = new Size(292, 23);
CountTextBox.TabIndex = 2;
//
// ComboBox
//
ComboBox.FormattingEnabled = true;
ComboBox.Location = new Point(99, 8);
ComboBox.Margin = new Padding(3, 4, 3, 4);
ComboBox.Location = new Point(87, 6);
ComboBox.Name = "ComboBox";
ComboBox.Size = new Size(333, 28);
ComboBox.Size = new Size(292, 23);
ComboBox.TabIndex = 3;
//
// SaveButton
//
SaveButton.Location = new Point(249, 88);
SaveButton.Margin = new Padding(3, 4, 3, 4);
SaveButton.Location = new Point(218, 66);
SaveButton.Name = "SaveButton";
SaveButton.Size = new Size(86, 31);
SaveButton.Size = new Size(75, 23);
SaveButton.TabIndex = 4;
SaveButton.Text = "Сохранить";
SaveButton.UseVisualStyleBackColor = true;
@ -84,10 +81,9 @@
//
// CancelButton
//
CancelButton.Location = new Point(342, 88);
CancelButton.Margin = new Padding(3, 4, 3, 4);
CancelButton.Location = new Point(299, 66);
CancelButton.Name = "CancelButton";
CancelButton.Size = new Size(86, 31);
CancelButton.Size = new Size(75, 23);
CancelButton.TabIndex = 5;
CancelButton.Text = "Отмена";
CancelButton.UseVisualStyleBackColor = true;
@ -95,18 +91,17 @@
//
// IceCreamComponentForm
//
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(447, 128);
ClientSize = new Size(391, 96);
Controls.Add(CancelButton);
Controls.Add(SaveButton);
Controls.Add(ComboBox);
Controls.Add(CountTextBox);
Controls.Add(CountLabel);
Controls.Add(ComponentLabel);
Margin = new Padding(3, 4, 3, 4);
Name = "IceCreamComponentForm";
Text = "Компонент мороженного";
Text = "IceCreamComponentForm";
ResumeLayout(false);
PerformLayout();
}

View File

@ -198,7 +198,7 @@
Controls.Add(PriceLabel);
Controls.Add(NameLabel);
Name = "IceCreamForm";
Text = "Мороженное";
Text = "IceCreamForm";
Load += IceCreamForm_Load;
ComponentsGroupBox.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)DataGridView).EndInit();