2023-10-31 12:26:25 +04:00
|
|
|
|
namespace ProjectTank
|
|
|
|
|
{
|
|
|
|
|
partial class FormTankCollection
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Required designer variable.
|
|
|
|
|
/// </summary>
|
|
|
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Clean up any resources being used.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
|
|
|
protected override void Dispose(bool disposing)
|
|
|
|
|
{
|
|
|
|
|
if (disposing && (components != null))
|
|
|
|
|
{
|
|
|
|
|
components.Dispose();
|
|
|
|
|
}
|
|
|
|
|
base.Dispose(disposing);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Required method for Designer support - do not modify
|
|
|
|
|
/// the contents of this method with the code editor.
|
|
|
|
|
/// </summary>
|
|
|
|
|
private void InitializeComponent()
|
|
|
|
|
{
|
|
|
|
|
pictureBoxCollection = new PictureBox();
|
2023-11-18 16:18:44 +04:00
|
|
|
|
refreshObjectsButton = new Button();
|
|
|
|
|
deleteTankButton = new Button();
|
|
|
|
|
addTankButton = new Button();
|
2023-10-31 12:26:25 +04:00
|
|
|
|
maskedTextBoxNumber = new TextBox();
|
2023-12-02 17:11:04 +04:00
|
|
|
|
label2 = new Label();
|
2023-10-31 12:39:26 +04:00
|
|
|
|
textBoxStorageName = new TextBox();
|
2023-11-18 16:18:44 +04:00
|
|
|
|
addObjectButton = new Button();
|
2023-10-31 12:39:26 +04:00
|
|
|
|
listBoxStorages = new ListBox();
|
2023-11-18 16:18:44 +04:00
|
|
|
|
deleteObjectButton = new Button();
|
2023-12-02 17:11:04 +04:00
|
|
|
|
groupBox1 = new GroupBox();
|
2023-12-16 23:50:00 +04:00
|
|
|
|
sortByColorButton = new Button();
|
|
|
|
|
sortByTypeButton = new Button();
|
2023-11-18 17:07:10 +04:00
|
|
|
|
menuStrip = new MenuStrip();
|
|
|
|
|
fileToolStripMenuItem = new ToolStripMenuItem();
|
|
|
|
|
loadToolStripMenuItem = new ToolStripMenuItem();
|
|
|
|
|
saveToolStripMenuItem = new ToolStripMenuItem();
|
|
|
|
|
openFileDialog = new OpenFileDialog();
|
|
|
|
|
saveFileDialog = new SaveFileDialog();
|
2023-10-31 12:26:25 +04:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)pictureBoxCollection).BeginInit();
|
2023-12-02 17:11:04 +04:00
|
|
|
|
groupBox1.SuspendLayout();
|
2023-11-18 17:07:10 +04:00
|
|
|
|
menuStrip.SuspendLayout();
|
2023-10-31 12:26:25 +04:00
|
|
|
|
SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// pictureBoxCollection
|
|
|
|
|
//
|
2023-11-18 17:07:10 +04:00
|
|
|
|
pictureBoxCollection.Location = new Point(6, 32);
|
2023-10-31 12:26:25 +04:00
|
|
|
|
pictureBoxCollection.Name = "pictureBoxCollection";
|
|
|
|
|
pictureBoxCollection.Size = new Size(760, 475);
|
|
|
|
|
pictureBoxCollection.TabIndex = 0;
|
|
|
|
|
pictureBoxCollection.TabStop = false;
|
|
|
|
|
//
|
2023-11-18 16:18:44 +04:00
|
|
|
|
// refreshObjectsButton
|
2023-10-31 12:26:25 +04:00
|
|
|
|
//
|
2023-12-16 23:50:00 +04:00
|
|
|
|
refreshObjectsButton.Location = new Point(6, 440);
|
2023-11-18 16:18:44 +04:00
|
|
|
|
refreshObjectsButton.Name = "refreshObjectsButton";
|
|
|
|
|
refreshObjectsButton.Size = new Size(139, 29);
|
|
|
|
|
refreshObjectsButton.TabIndex = 4;
|
|
|
|
|
refreshObjectsButton.Text = "Обн. коллекцию";
|
|
|
|
|
refreshObjectsButton.UseVisualStyleBackColor = true;
|
|
|
|
|
refreshObjectsButton.Click += ButtonRefreshCollection_Click;
|
2023-10-31 12:26:25 +04:00
|
|
|
|
//
|
2023-11-18 16:18:44 +04:00
|
|
|
|
// deleteTankButton
|
2023-10-31 12:26:25 +04:00
|
|
|
|
//
|
2023-12-16 23:50:00 +04:00
|
|
|
|
deleteTankButton.Location = new Point(6, 404);
|
2023-11-18 16:18:44 +04:00
|
|
|
|
deleteTankButton.Name = "deleteTankButton";
|
|
|
|
|
deleteTankButton.Size = new Size(139, 29);
|
|
|
|
|
deleteTankButton.TabIndex = 5;
|
|
|
|
|
deleteTankButton.Text = "Удалить танк";
|
|
|
|
|
deleteTankButton.UseVisualStyleBackColor = true;
|
|
|
|
|
deleteTankButton.Click += ButtonRemoveTank_Click;
|
2023-10-31 12:26:25 +04:00
|
|
|
|
//
|
2023-11-18 16:18:44 +04:00
|
|
|
|
// addTankButton
|
2023-10-31 12:26:25 +04:00
|
|
|
|
//
|
2023-12-16 23:50:00 +04:00
|
|
|
|
addTankButton.Location = new Point(6, 338);
|
2023-11-18 16:18:44 +04:00
|
|
|
|
addTankButton.Name = "addTankButton";
|
|
|
|
|
addTankButton.Size = new Size(139, 29);
|
|
|
|
|
addTankButton.TabIndex = 6;
|
|
|
|
|
addTankButton.Text = "Добавить танк";
|
|
|
|
|
addTankButton.UseVisualStyleBackColor = true;
|
|
|
|
|
addTankButton.Click += ButtonAddTank_Click;
|
2023-10-31 12:26:25 +04:00
|
|
|
|
//
|
|
|
|
|
// maskedTextBoxNumber
|
|
|
|
|
//
|
2023-12-16 23:50:00 +04:00
|
|
|
|
maskedTextBoxNumber.Location = new Point(6, 373);
|
2023-10-31 12:26:25 +04:00
|
|
|
|
maskedTextBoxNumber.Name = "maskedTextBoxNumber";
|
|
|
|
|
maskedTextBoxNumber.Size = new Size(139, 27);
|
|
|
|
|
maskedTextBoxNumber.TabIndex = 7;
|
|
|
|
|
//
|
2023-12-02 17:11:04 +04:00
|
|
|
|
// label2
|
2023-10-31 12:39:26 +04:00
|
|
|
|
//
|
2023-12-02 17:11:04 +04:00
|
|
|
|
label2.AutoSize = true;
|
|
|
|
|
label2.Location = new Point(6, 30);
|
|
|
|
|
label2.Name = "label2";
|
|
|
|
|
label2.Size = new Size(66, 20);
|
|
|
|
|
label2.TabIndex = 8;
|
|
|
|
|
label2.Text = "Наборы";
|
2023-10-31 12:39:26 +04:00
|
|
|
|
//
|
|
|
|
|
// textBoxStorageName
|
|
|
|
|
//
|
2023-12-16 23:50:00 +04:00
|
|
|
|
textBoxStorageName.Location = new Point(6, 59);
|
2023-10-31 12:39:26 +04:00
|
|
|
|
textBoxStorageName.Name = "textBoxStorageName";
|
|
|
|
|
textBoxStorageName.Size = new Size(139, 27);
|
|
|
|
|
textBoxStorageName.TabIndex = 9;
|
|
|
|
|
//
|
2023-11-18 16:18:44 +04:00
|
|
|
|
// addObjectButton
|
2023-10-31 12:39:26 +04:00
|
|
|
|
//
|
2023-12-16 23:50:00 +04:00
|
|
|
|
addObjectButton.Location = new Point(6, 92);
|
2023-11-18 16:18:44 +04:00
|
|
|
|
addObjectButton.Name = "addObjectButton";
|
|
|
|
|
addObjectButton.Size = new Size(139, 29);
|
|
|
|
|
addObjectButton.TabIndex = 10;
|
|
|
|
|
addObjectButton.Text = "Добавить набор";
|
|
|
|
|
addObjectButton.UseVisualStyleBackColor = true;
|
|
|
|
|
addObjectButton.Click += ButtonAddObject_Click;
|
2023-10-31 12:39:26 +04:00
|
|
|
|
//
|
|
|
|
|
// listBoxStorages
|
|
|
|
|
//
|
|
|
|
|
listBoxStorages.FormattingEnabled = true;
|
|
|
|
|
listBoxStorages.ItemHeight = 20;
|
2023-12-16 23:50:00 +04:00
|
|
|
|
listBoxStorages.Location = new Point(6, 131);
|
2023-10-31 12:39:26 +04:00
|
|
|
|
listBoxStorages.Name = "listBoxStorages";
|
|
|
|
|
listBoxStorages.Size = new Size(139, 84);
|
|
|
|
|
listBoxStorages.TabIndex = 11;
|
|
|
|
|
listBoxStorages.SelectedIndexChanged += ListBoxObjects_SelectedIndexChanged;
|
|
|
|
|
//
|
2023-11-18 16:18:44 +04:00
|
|
|
|
// deleteObjectButton
|
2023-10-31 12:39:26 +04:00
|
|
|
|
//
|
2023-12-16 23:50:00 +04:00
|
|
|
|
deleteObjectButton.Location = new Point(6, 222);
|
2023-11-18 16:18:44 +04:00
|
|
|
|
deleteObjectButton.Name = "deleteObjectButton";
|
|
|
|
|
deleteObjectButton.Size = new Size(139, 29);
|
|
|
|
|
deleteObjectButton.TabIndex = 12;
|
|
|
|
|
deleteObjectButton.Text = "Удалить набор";
|
|
|
|
|
deleteObjectButton.UseVisualStyleBackColor = true;
|
|
|
|
|
deleteObjectButton.Click += ButtonDelObject_Click;
|
2023-10-31 12:39:26 +04:00
|
|
|
|
//
|
2023-12-02 17:11:04 +04:00
|
|
|
|
// groupBox1
|
|
|
|
|
//
|
2023-12-16 23:50:00 +04:00
|
|
|
|
groupBox1.Controls.Add(sortByColorButton);
|
|
|
|
|
groupBox1.Controls.Add(sortByTypeButton);
|
2023-12-02 17:11:04 +04:00
|
|
|
|
groupBox1.Controls.Add(label2);
|
|
|
|
|
groupBox1.Controls.Add(refreshObjectsButton);
|
|
|
|
|
groupBox1.Controls.Add(deleteTankButton);
|
|
|
|
|
groupBox1.Controls.Add(maskedTextBoxNumber);
|
|
|
|
|
groupBox1.Controls.Add(deleteObjectButton);
|
|
|
|
|
groupBox1.Controls.Add(addTankButton);
|
|
|
|
|
groupBox1.Controls.Add(textBoxStorageName);
|
|
|
|
|
groupBox1.Controls.Add(listBoxStorages);
|
|
|
|
|
groupBox1.Controls.Add(addObjectButton);
|
|
|
|
|
groupBox1.Location = new Point(775, 32);
|
|
|
|
|
groupBox1.Name = "groupBox1";
|
|
|
|
|
groupBox1.Size = new Size(154, 472);
|
|
|
|
|
groupBox1.TabIndex = 13;
|
|
|
|
|
groupBox1.TabStop = false;
|
|
|
|
|
groupBox1.Text = "Инструменты";
|
2023-11-18 17:07:10 +04:00
|
|
|
|
//
|
2023-12-16 23:50:00 +04:00
|
|
|
|
// sortByColorButton
|
|
|
|
|
//
|
|
|
|
|
sortByColorButton.Location = new Point(6, 297);
|
|
|
|
|
sortByColorButton.Name = "sortByColorButton";
|
|
|
|
|
sortByColorButton.Size = new Size(139, 29);
|
|
|
|
|
sortByColorButton.TabIndex = 14;
|
|
|
|
|
sortByColorButton.Text = "Сорт. по цвету";
|
|
|
|
|
sortByColorButton.UseVisualStyleBackColor = true;
|
|
|
|
|
sortByColorButton.Click += ButtonSortByColor_Click;
|
|
|
|
|
//
|
|
|
|
|
// sortByTypeButton
|
|
|
|
|
//
|
|
|
|
|
sortByTypeButton.Location = new Point(6, 262);
|
|
|
|
|
sortByTypeButton.Name = "sortByTypeButton";
|
|
|
|
|
sortByTypeButton.Size = new Size(139, 29);
|
|
|
|
|
sortByTypeButton.TabIndex = 13;
|
|
|
|
|
sortByTypeButton.Text = "Сорт. по типу";
|
|
|
|
|
sortByTypeButton.UseVisualStyleBackColor = true;
|
|
|
|
|
sortByTypeButton.Click += ButtonSortByType_Click;
|
|
|
|
|
//
|
2023-11-18 17:07:10 +04:00
|
|
|
|
// menuStrip
|
|
|
|
|
//
|
|
|
|
|
menuStrip.ImageScalingSize = new Size(20, 20);
|
|
|
|
|
menuStrip.Items.AddRange(new ToolStripItem[] { fileToolStripMenuItem });
|
|
|
|
|
menuStrip.Location = new Point(0, 0);
|
|
|
|
|
menuStrip.Name = "menuStrip";
|
|
|
|
|
menuStrip.Size = new Size(935, 28);
|
|
|
|
|
menuStrip.TabIndex = 14;
|
|
|
|
|
menuStrip.Text = "menuStrip1";
|
|
|
|
|
//
|
|
|
|
|
// fileToolStripMenuItem
|
|
|
|
|
//
|
|
|
|
|
fileToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { loadToolStripMenuItem, saveToolStripMenuItem });
|
|
|
|
|
fileToolStripMenuItem.Name = "fileToolStripMenuItem";
|
|
|
|
|
fileToolStripMenuItem.Size = new Size(59, 24);
|
|
|
|
|
fileToolStripMenuItem.Text = "Файл";
|
|
|
|
|
//
|
|
|
|
|
// loadToolStripMenuItem
|
|
|
|
|
//
|
|
|
|
|
loadToolStripMenuItem.Name = "loadToolStripMenuItem";
|
|
|
|
|
loadToolStripMenuItem.Size = new Size(166, 26);
|
|
|
|
|
loadToolStripMenuItem.Text = "Загрузить";
|
|
|
|
|
loadToolStripMenuItem.Click += LoadToolStripMenuItem_Click;
|
|
|
|
|
//
|
|
|
|
|
// saveToolStripMenuItem
|
|
|
|
|
//
|
|
|
|
|
saveToolStripMenuItem.Name = "saveToolStripMenuItem";
|
|
|
|
|
saveToolStripMenuItem.Size = new Size(166, 26);
|
|
|
|
|
saveToolStripMenuItem.Text = "Сохранить";
|
|
|
|
|
saveToolStripMenuItem.Click += SaveToolStripMenuItem_Click;
|
|
|
|
|
//
|
|
|
|
|
// openFileDialog
|
|
|
|
|
//
|
|
|
|
|
openFileDialog.FileName = "openFileDialog";
|
|
|
|
|
openFileDialog.Filter = "txt file | *.txt";
|
|
|
|
|
//
|
|
|
|
|
// saveFileDialog
|
|
|
|
|
//
|
|
|
|
|
saveFileDialog.Filter = "txt file | *.txt";
|
|
|
|
|
//
|
2023-10-31 12:26:25 +04:00
|
|
|
|
// FormTankCollection
|
|
|
|
|
//
|
|
|
|
|
AutoScaleDimensions = new SizeF(8F, 20F);
|
|
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
2023-11-18 17:07:10 +04:00
|
|
|
|
ClientSize = new Size(935, 516);
|
2023-12-02 17:11:04 +04:00
|
|
|
|
Controls.Add(groupBox1);
|
2023-10-31 12:26:25 +04:00
|
|
|
|
Controls.Add(pictureBoxCollection);
|
2023-11-18 17:07:10 +04:00
|
|
|
|
Controls.Add(menuStrip);
|
|
|
|
|
MainMenuStrip = menuStrip;
|
2023-10-31 12:26:25 +04:00
|
|
|
|
Name = "FormTankCollection";
|
|
|
|
|
Text = "Набор танков";
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)pictureBoxCollection).EndInit();
|
2023-12-02 17:11:04 +04:00
|
|
|
|
groupBox1.ResumeLayout(false);
|
|
|
|
|
groupBox1.PerformLayout();
|
2023-11-18 17:07:10 +04:00
|
|
|
|
menuStrip.ResumeLayout(false);
|
|
|
|
|
menuStrip.PerformLayout();
|
2023-10-31 12:26:25 +04:00
|
|
|
|
ResumeLayout(false);
|
|
|
|
|
PerformLayout();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
private PictureBox pictureBoxCollection;
|
2023-11-18 16:18:44 +04:00
|
|
|
|
private Button refreshObjectsButton;
|
|
|
|
|
private Button deleteTankButton;
|
|
|
|
|
private Button addTankButton;
|
2023-10-31 12:26:25 +04:00
|
|
|
|
private TextBox maskedTextBoxNumber;
|
2023-12-02 17:11:04 +04:00
|
|
|
|
private Label label2;
|
2023-10-31 12:39:26 +04:00
|
|
|
|
private TextBox textBoxStorageName;
|
2023-11-18 16:18:44 +04:00
|
|
|
|
private Button addObjectButton;
|
2023-10-31 12:39:26 +04:00
|
|
|
|
private ListBox listBoxStorages;
|
2023-11-18 16:18:44 +04:00
|
|
|
|
private Button deleteObjectButton;
|
2023-12-02 17:11:04 +04:00
|
|
|
|
private GroupBox groupBox1;
|
2023-11-18 17:07:10 +04:00
|
|
|
|
private MenuStrip menuStrip;
|
|
|
|
|
private ToolStripMenuItem fileToolStripMenuItem;
|
|
|
|
|
private ToolStripMenuItem loadToolStripMenuItem;
|
|
|
|
|
private ToolStripMenuItem saveToolStripMenuItem;
|
|
|
|
|
private OpenFileDialog openFileDialog;
|
|
|
|
|
private SaveFileDialog saveFileDialog;
|
2023-12-16 23:50:00 +04:00
|
|
|
|
private Button sortByColorButton;
|
|
|
|
|
private Button sortByTypeButton;
|
2023-10-31 12:26:25 +04:00
|
|
|
|
}
|
|
|
|
|
}
|