Сдал лаб04
This commit is contained in:
parent
5b9808c540
commit
47d58a0cd5
@ -29,6 +29,13 @@
|
|||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
groupBoxTools = new GroupBox();
|
groupBoxTools = new GroupBox();
|
||||||
|
panelCompanyTools = new Panel();
|
||||||
|
buttonAddBasicSeaplane = new Button();
|
||||||
|
buttonAddSeaplane = new Button();
|
||||||
|
buttonRefresh = new Button();
|
||||||
|
maskedTextBox = new MaskedTextBox();
|
||||||
|
buttonGoToCheck = new Button();
|
||||||
|
buttonDelSeaplane = new Button();
|
||||||
buttonCreateCompany = new Button();
|
buttonCreateCompany = new Button();
|
||||||
panelStorage = new Panel();
|
panelStorage = new Panel();
|
||||||
buttonCollectionDel = new Button();
|
buttonCollectionDel = new Button();
|
||||||
@ -38,19 +45,12 @@
|
|||||||
radioButtonMassive = new RadioButton();
|
radioButtonMassive = new RadioButton();
|
||||||
textBoxCollectionName = new TextBox();
|
textBoxCollectionName = new TextBox();
|
||||||
labelCollectionName = new Label();
|
labelCollectionName = new Label();
|
||||||
buttonRefresh = new Button();
|
|
||||||
buttonGoToCheck = new Button();
|
|
||||||
buttonDelSeaplane = new Button();
|
|
||||||
maskedTextBox = new MaskedTextBox();
|
|
||||||
buttonAddSeaplane = new Button();
|
|
||||||
buttonAddBasicSeaplane = new Button();
|
|
||||||
СomboBoxSelectorCompany = new ComboBox();
|
СomboBoxSelectorCompany = new ComboBox();
|
||||||
pictureBox = new PictureBox();
|
pictureBox = new PictureBox();
|
||||||
panelCompanyTools = new Panel();
|
|
||||||
groupBoxTools.SuspendLayout();
|
groupBoxTools.SuspendLayout();
|
||||||
|
panelCompanyTools.SuspendLayout();
|
||||||
panelStorage.SuspendLayout();
|
panelStorage.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)pictureBox).BeginInit();
|
((System.ComponentModel.ISupportInitialize)pictureBox).BeginInit();
|
||||||
panelCompanyTools.SuspendLayout();
|
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
// groupBoxTools
|
// groupBoxTools
|
||||||
@ -67,6 +67,89 @@
|
|||||||
groupBoxTools.TabStop = false;
|
groupBoxTools.TabStop = false;
|
||||||
groupBoxTools.Text = "Инструменты";
|
groupBoxTools.Text = "Инструменты";
|
||||||
//
|
//
|
||||||
|
// panelCompanyTools
|
||||||
|
//
|
||||||
|
panelCompanyTools.Controls.Add(buttonAddBasicSeaplane);
|
||||||
|
panelCompanyTools.Controls.Add(buttonAddSeaplane);
|
||||||
|
panelCompanyTools.Controls.Add(buttonRefresh);
|
||||||
|
panelCompanyTools.Controls.Add(maskedTextBox);
|
||||||
|
panelCompanyTools.Controls.Add(buttonGoToCheck);
|
||||||
|
panelCompanyTools.Controls.Add(buttonDelSeaplane);
|
||||||
|
panelCompanyTools.Dock = DockStyle.Bottom;
|
||||||
|
panelCompanyTools.Location = new Point(3, 366);
|
||||||
|
panelCompanyTools.Name = "panelCompanyTools";
|
||||||
|
panelCompanyTools.Size = new Size(174, 245);
|
||||||
|
panelCompanyTools.TabIndex = 9;
|
||||||
|
//
|
||||||
|
// buttonAddBasicSeaplane
|
||||||
|
//
|
||||||
|
buttonAddBasicSeaplane.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||||||
|
buttonAddBasicSeaplane.FlatStyle = FlatStyle.Flat;
|
||||||
|
buttonAddBasicSeaplane.Location = new Point(0, 12);
|
||||||
|
buttonAddBasicSeaplane.Name = "buttonAddBasicSeaplane";
|
||||||
|
buttonAddBasicSeaplane.Size = new Size(174, 30);
|
||||||
|
buttonAddBasicSeaplane.TabIndex = 1;
|
||||||
|
buttonAddBasicSeaplane.Text = "Добавление самолета";
|
||||||
|
buttonAddBasicSeaplane.UseVisualStyleBackColor = true;
|
||||||
|
buttonAddBasicSeaplane.Click += ButtonAddBasicSeaplane_Click;
|
||||||
|
//
|
||||||
|
// buttonAddSeaplane
|
||||||
|
//
|
||||||
|
buttonAddSeaplane.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||||||
|
buttonAddSeaplane.FlatStyle = FlatStyle.Flat;
|
||||||
|
buttonAddSeaplane.Location = new Point(0, 48);
|
||||||
|
buttonAddSeaplane.Name = "buttonAddSeaplane";
|
||||||
|
buttonAddSeaplane.Size = new Size(174, 43);
|
||||||
|
buttonAddSeaplane.TabIndex = 2;
|
||||||
|
buttonAddSeaplane.Text = "Добавление гидросамолета";
|
||||||
|
buttonAddSeaplane.UseVisualStyleBackColor = true;
|
||||||
|
buttonAddSeaplane.Click += ButtonAddSeaplane_Click;
|
||||||
|
//
|
||||||
|
// buttonRefresh
|
||||||
|
//
|
||||||
|
buttonRefresh.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||||||
|
buttonRefresh.FlatStyle = FlatStyle.Flat;
|
||||||
|
buttonRefresh.Location = new Point(0, 197);
|
||||||
|
buttonRefresh.Name = "buttonRefresh";
|
||||||
|
buttonRefresh.Size = new Size(174, 31);
|
||||||
|
buttonRefresh.TabIndex = 6;
|
||||||
|
buttonRefresh.Text = "Обновить";
|
||||||
|
buttonRefresh.UseVisualStyleBackColor = true;
|
||||||
|
buttonRefresh.Click += ButtonRefresh_Click;
|
||||||
|
//
|
||||||
|
// maskedTextBox
|
||||||
|
//
|
||||||
|
maskedTextBox.Location = new Point(0, 97);
|
||||||
|
maskedTextBox.Mask = "00";
|
||||||
|
maskedTextBox.Name = "maskedTextBox";
|
||||||
|
maskedTextBox.Size = new Size(174, 23);
|
||||||
|
maskedTextBox.TabIndex = 3;
|
||||||
|
maskedTextBox.ValidatingType = typeof(int);
|
||||||
|
//
|
||||||
|
// buttonGoToCheck
|
||||||
|
//
|
||||||
|
buttonGoToCheck.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||||||
|
buttonGoToCheck.FlatStyle = FlatStyle.Flat;
|
||||||
|
buttonGoToCheck.Location = new Point(0, 162);
|
||||||
|
buttonGoToCheck.Name = "buttonGoToCheck";
|
||||||
|
buttonGoToCheck.Size = new Size(174, 29);
|
||||||
|
buttonGoToCheck.TabIndex = 5;
|
||||||
|
buttonGoToCheck.Text = "Передать на тесты";
|
||||||
|
buttonGoToCheck.UseVisualStyleBackColor = true;
|
||||||
|
buttonGoToCheck.Click += ButtonGoToCheck_Click;
|
||||||
|
//
|
||||||
|
// buttonDelSeaplane
|
||||||
|
//
|
||||||
|
buttonDelSeaplane.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||||||
|
buttonDelSeaplane.FlatStyle = FlatStyle.Flat;
|
||||||
|
buttonDelSeaplane.Location = new Point(0, 126);
|
||||||
|
buttonDelSeaplane.Name = "buttonDelSeaplane";
|
||||||
|
buttonDelSeaplane.Size = new Size(174, 30);
|
||||||
|
buttonDelSeaplane.TabIndex = 4;
|
||||||
|
buttonDelSeaplane.Text = "Удалить самолет";
|
||||||
|
buttonDelSeaplane.UseVisualStyleBackColor = true;
|
||||||
|
buttonDelSeaplane.Click += ButtonnDelSeaplane_Click;
|
||||||
|
//
|
||||||
// buttonCreateCompany
|
// buttonCreateCompany
|
||||||
//
|
//
|
||||||
buttonCreateCompany.Location = new Point(3, 334);
|
buttonCreateCompany.Location = new Point(3, 334);
|
||||||
@ -159,76 +242,6 @@
|
|||||||
labelCollectionName.TabIndex = 0;
|
labelCollectionName.TabIndex = 0;
|
||||||
labelCollectionName.Text = "Название коллекции:";
|
labelCollectionName.Text = "Название коллекции:";
|
||||||
//
|
//
|
||||||
// buttonRefresh
|
|
||||||
//
|
|
||||||
buttonRefresh.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
||||||
buttonRefresh.FlatStyle = FlatStyle.Flat;
|
|
||||||
buttonRefresh.Location = new Point(0, 197);
|
|
||||||
buttonRefresh.Name = "buttonRefresh";
|
|
||||||
buttonRefresh.Size = new Size(174, 31);
|
|
||||||
buttonRefresh.TabIndex = 6;
|
|
||||||
buttonRefresh.Text = "Обновить";
|
|
||||||
buttonRefresh.UseVisualStyleBackColor = true;
|
|
||||||
buttonRefresh.Click += ButtonRefresh_Click;
|
|
||||||
//
|
|
||||||
// buttonGoToCheck
|
|
||||||
//
|
|
||||||
buttonGoToCheck.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
||||||
buttonGoToCheck.FlatStyle = FlatStyle.Flat;
|
|
||||||
buttonGoToCheck.Location = new Point(0, 162);
|
|
||||||
buttonGoToCheck.Name = "buttonGoToCheck";
|
|
||||||
buttonGoToCheck.Size = new Size(174, 29);
|
|
||||||
buttonGoToCheck.TabIndex = 5;
|
|
||||||
buttonGoToCheck.Text = "Передать на тесты";
|
|
||||||
buttonGoToCheck.UseVisualStyleBackColor = true;
|
|
||||||
buttonGoToCheck.Click += ButtonGoToCheck_Click;
|
|
||||||
//
|
|
||||||
// buttonDelSeaplane
|
|
||||||
//
|
|
||||||
buttonDelSeaplane.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
||||||
buttonDelSeaplane.FlatStyle = FlatStyle.Flat;
|
|
||||||
buttonDelSeaplane.Location = new Point(0, 126);
|
|
||||||
buttonDelSeaplane.Name = "buttonDelSeaplane";
|
|
||||||
buttonDelSeaplane.Size = new Size(174, 30);
|
|
||||||
buttonDelSeaplane.TabIndex = 4;
|
|
||||||
buttonDelSeaplane.Text = "Удалить самолет";
|
|
||||||
buttonDelSeaplane.UseVisualStyleBackColor = true;
|
|
||||||
buttonDelSeaplane.Click += ButtonnDelSeaplane_Click;
|
|
||||||
//
|
|
||||||
// maskedTextBox
|
|
||||||
//
|
|
||||||
maskedTextBox.Enabled = false;
|
|
||||||
maskedTextBox.Location = new Point(0, 97);
|
|
||||||
maskedTextBox.Mask = "00";
|
|
||||||
maskedTextBox.Name = "maskedTextBox";
|
|
||||||
maskedTextBox.Size = new Size(174, 23);
|
|
||||||
maskedTextBox.TabIndex = 3;
|
|
||||||
maskedTextBox.ValidatingType = typeof(int);
|
|
||||||
//
|
|
||||||
// buttonAddSeaplane
|
|
||||||
//
|
|
||||||
buttonAddSeaplane.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
||||||
buttonAddSeaplane.FlatStyle = FlatStyle.Flat;
|
|
||||||
buttonAddSeaplane.Location = new Point(0, 48);
|
|
||||||
buttonAddSeaplane.Name = "buttonAddSeaplane";
|
|
||||||
buttonAddSeaplane.Size = new Size(174, 43);
|
|
||||||
buttonAddSeaplane.TabIndex = 2;
|
|
||||||
buttonAddSeaplane.Text = "Добавление гидросамолета";
|
|
||||||
buttonAddSeaplane.UseVisualStyleBackColor = true;
|
|
||||||
buttonAddSeaplane.Click += ButtonAddSeaplane_Click;
|
|
||||||
//
|
|
||||||
// buttonAddBasicSeaplane
|
|
||||||
//
|
|
||||||
buttonAddBasicSeaplane.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
||||||
buttonAddBasicSeaplane.FlatStyle = FlatStyle.Flat;
|
|
||||||
buttonAddBasicSeaplane.Location = new Point(0, 12);
|
|
||||||
buttonAddBasicSeaplane.Name = "buttonAddBasicSeaplane";
|
|
||||||
buttonAddBasicSeaplane.Size = new Size(174, 30);
|
|
||||||
buttonAddBasicSeaplane.TabIndex = 1;
|
|
||||||
buttonAddBasicSeaplane.Text = "Добавление самолета";
|
|
||||||
buttonAddBasicSeaplane.UseVisualStyleBackColor = true;
|
|
||||||
buttonAddBasicSeaplane.Click += ButtonAddBasicSeaplane_Click;
|
|
||||||
//
|
|
||||||
// СomboBoxSelectorCompany
|
// СomboBoxSelectorCompany
|
||||||
//
|
//
|
||||||
СomboBoxSelectorCompany.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
СomboBoxSelectorCompany.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||||||
@ -249,20 +262,6 @@
|
|||||||
pictureBox.TabIndex = 1;
|
pictureBox.TabIndex = 1;
|
||||||
pictureBox.TabStop = false;
|
pictureBox.TabStop = false;
|
||||||
//
|
//
|
||||||
// panelCompanyTools
|
|
||||||
//
|
|
||||||
panelCompanyTools.Controls.Add(buttonAddBasicSeaplane);
|
|
||||||
panelCompanyTools.Controls.Add(buttonAddSeaplane);
|
|
||||||
panelCompanyTools.Controls.Add(buttonRefresh);
|
|
||||||
panelCompanyTools.Controls.Add(maskedTextBox);
|
|
||||||
panelCompanyTools.Controls.Add(buttonGoToCheck);
|
|
||||||
panelCompanyTools.Controls.Add(buttonDelSeaplane);
|
|
||||||
panelCompanyTools.Dock = DockStyle.Bottom;
|
|
||||||
panelCompanyTools.Location = new Point(3, 374);
|
|
||||||
panelCompanyTools.Name = "panelCompanyTools";
|
|
||||||
panelCompanyTools.Size = new Size(174, 237);
|
|
||||||
panelCompanyTools.TabIndex = 9;
|
|
||||||
//
|
|
||||||
// FormPlaneCollection
|
// FormPlaneCollection
|
||||||
//
|
//
|
||||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||||
@ -273,11 +272,11 @@
|
|||||||
Name = "FormPlaneCollection";
|
Name = "FormPlaneCollection";
|
||||||
Text = "Коллекция самолетов";
|
Text = "Коллекция самолетов";
|
||||||
groupBoxTools.ResumeLayout(false);
|
groupBoxTools.ResumeLayout(false);
|
||||||
|
panelCompanyTools.ResumeLayout(false);
|
||||||
|
panelCompanyTools.PerformLayout();
|
||||||
panelStorage.ResumeLayout(false);
|
panelStorage.ResumeLayout(false);
|
||||||
panelStorage.PerformLayout();
|
panelStorage.PerformLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)pictureBox).EndInit();
|
((System.ComponentModel.ISupportInitialize)pictureBox).EndInit();
|
||||||
panelCompanyTools.ResumeLayout(false);
|
|
||||||
panelCompanyTools.PerformLayout();
|
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -278,4 +278,6 @@ public partial class FormPlaneCollection : Form
|
|||||||
RerfreshListBoxItems();
|
RerfreshListBoxItems();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user