2023-10-17 13:49:31 +04:00
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace ElectricLocomotive;
|
|
|
|
|
|
|
|
|
|
partial class FormLocomotivCollection {
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Required designer variable.
|
|
|
|
|
/// </summary>
|
|
|
|
|
private 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() {
|
|
|
|
|
toolsBox = new GroupBox();
|
2023-10-31 13:25:13 +04:00
|
|
|
|
collectionGroupBoxes = new GroupBox();
|
|
|
|
|
storageListBox = new ListBox();
|
|
|
|
|
delStorageButton = new Button();
|
|
|
|
|
addStorageButton = new Button();
|
|
|
|
|
storageIndexInput = new TextBox();
|
2023-10-17 13:49:31 +04:00
|
|
|
|
refreshCollection = new Button();
|
|
|
|
|
deleteLoco = new Button();
|
2023-10-31 13:25:13 +04:00
|
|
|
|
locoIndexInput = new TextBox();
|
2023-10-17 13:49:31 +04:00
|
|
|
|
addLocomotiv = new Button();
|
|
|
|
|
collectionPictureBox = new PictureBox();
|
2023-11-28 12:26:51 +04:00
|
|
|
|
menuStrip1 = new MenuStrip();
|
|
|
|
|
toolStripMenuItem = new ToolStripMenuItem();
|
|
|
|
|
SaveToolStripMenuItem = new ToolStripMenuItem();
|
|
|
|
|
LoadToolStripMenuItem = new ToolStripMenuItem();
|
|
|
|
|
loadFileDialog = new OpenFileDialog();
|
|
|
|
|
saveFileDialog = new SaveFileDialog();
|
2023-12-12 13:58:32 +04:00
|
|
|
|
ButtonSortByColor = new Button();
|
|
|
|
|
ButtonSortByType = new Button();
|
2023-10-17 13:49:31 +04:00
|
|
|
|
toolsBox.SuspendLayout();
|
2023-10-31 13:25:13 +04:00
|
|
|
|
collectionGroupBoxes.SuspendLayout();
|
2023-10-17 13:49:31 +04:00
|
|
|
|
((ISupportInitialize)collectionPictureBox).BeginInit();
|
2023-11-28 12:26:51 +04:00
|
|
|
|
menuStrip1.SuspendLayout();
|
2023-10-17 13:49:31 +04:00
|
|
|
|
SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// toolsBox
|
|
|
|
|
//
|
2023-12-12 13:58:32 +04:00
|
|
|
|
toolsBox.Controls.Add(ButtonSortByType);
|
|
|
|
|
toolsBox.Controls.Add(ButtonSortByColor);
|
2023-10-31 13:25:13 +04:00
|
|
|
|
toolsBox.Controls.Add(collectionGroupBoxes);
|
2023-10-17 13:49:31 +04:00
|
|
|
|
toolsBox.Controls.Add(refreshCollection);
|
|
|
|
|
toolsBox.Controls.Add(deleteLoco);
|
2023-10-31 13:25:13 +04:00
|
|
|
|
toolsBox.Controls.Add(locoIndexInput);
|
2023-10-17 13:49:31 +04:00
|
|
|
|
toolsBox.Controls.Add(addLocomotiv);
|
|
|
|
|
toolsBox.Location = new Point(944, 12);
|
|
|
|
|
toolsBox.Name = "toolsBox";
|
|
|
|
|
toolsBox.Size = new Size(309, 707);
|
|
|
|
|
toolsBox.TabIndex = 0;
|
|
|
|
|
toolsBox.TabStop = false;
|
|
|
|
|
toolsBox.Text = "Инструменты";
|
|
|
|
|
//
|
2023-10-31 13:25:13 +04:00
|
|
|
|
// collectionGroupBoxes
|
|
|
|
|
//
|
|
|
|
|
collectionGroupBoxes.Controls.Add(storageListBox);
|
|
|
|
|
collectionGroupBoxes.Controls.Add(delStorageButton);
|
|
|
|
|
collectionGroupBoxes.Controls.Add(addStorageButton);
|
|
|
|
|
collectionGroupBoxes.Controls.Add(storageIndexInput);
|
|
|
|
|
collectionGroupBoxes.Location = new Point(7, 38);
|
|
|
|
|
collectionGroupBoxes.Name = "collectionGroupBoxes";
|
|
|
|
|
collectionGroupBoxes.Size = new Size(296, 325);
|
|
|
|
|
collectionGroupBoxes.TabIndex = 5;
|
|
|
|
|
collectionGroupBoxes.TabStop = false;
|
|
|
|
|
collectionGroupBoxes.Text = "Наборы";
|
|
|
|
|
//
|
|
|
|
|
// storageListBox
|
|
|
|
|
//
|
|
|
|
|
storageListBox.FormattingEnabled = true;
|
|
|
|
|
storageListBox.ItemHeight = 20;
|
|
|
|
|
storageListBox.Location = new Point(14, 139);
|
|
|
|
|
storageListBox.Name = "storageListBox";
|
|
|
|
|
storageListBox.Size = new Size(271, 124);
|
|
|
|
|
storageListBox.TabIndex = 7;
|
|
|
|
|
storageListBox.SelectedIndexChanged += storagesListBox_SelectedIndexChanged;
|
|
|
|
|
//
|
|
|
|
|
// delStorageButton
|
|
|
|
|
//
|
|
|
|
|
delStorageButton.Location = new Point(14, 278);
|
|
|
|
|
delStorageButton.Name = "delStorageButton";
|
|
|
|
|
delStorageButton.Size = new Size(271, 32);
|
|
|
|
|
delStorageButton.TabIndex = 6;
|
|
|
|
|
delStorageButton.Text = "Удалить набор";
|
|
|
|
|
delStorageButton.UseVisualStyleBackColor = true;
|
|
|
|
|
delStorageButton.Click += delStorageButton_Click;
|
|
|
|
|
//
|
|
|
|
|
// addStorageButton
|
|
|
|
|
//
|
|
|
|
|
addStorageButton.Location = new Point(14, 87);
|
|
|
|
|
addStorageButton.Name = "addStorageButton";
|
|
|
|
|
addStorageButton.Size = new Size(271, 31);
|
|
|
|
|
addStorageButton.TabIndex = 5;
|
|
|
|
|
addStorageButton.Text = "Добавить набор";
|
|
|
|
|
addStorageButton.UseVisualStyleBackColor = true;
|
|
|
|
|
addStorageButton.Click += addStorageButton_Click;
|
|
|
|
|
//
|
|
|
|
|
// storageIndexInput
|
|
|
|
|
//
|
|
|
|
|
storageIndexInput.Location = new Point(14, 41);
|
|
|
|
|
storageIndexInput.Name = "storageIndexInput";
|
|
|
|
|
storageIndexInput.Size = new Size(271, 27);
|
|
|
|
|
storageIndexInput.TabIndex = 4;
|
|
|
|
|
//
|
2023-10-17 13:49:31 +04:00
|
|
|
|
// refreshCollection
|
|
|
|
|
//
|
2023-10-31 13:25:13 +04:00
|
|
|
|
refreshCollection.Location = new Point(21, 642);
|
2023-10-17 13:49:31 +04:00
|
|
|
|
refreshCollection.Name = "refreshCollection";
|
|
|
|
|
refreshCollection.Size = new Size(271, 59);
|
|
|
|
|
refreshCollection.TabIndex = 3;
|
|
|
|
|
refreshCollection.Text = "Обновить коллекцию";
|
|
|
|
|
refreshCollection.UseVisualStyleBackColor = true;
|
|
|
|
|
refreshCollection.Click += refreshCollection_Click;
|
|
|
|
|
//
|
|
|
|
|
// deleteLoco
|
|
|
|
|
//
|
2023-12-12 13:58:32 +04:00
|
|
|
|
deleteLoco.Location = new Point(21, 568);
|
2023-10-17 13:49:31 +04:00
|
|
|
|
deleteLoco.Name = "deleteLoco";
|
|
|
|
|
deleteLoco.Size = new Size(271, 59);
|
|
|
|
|
deleteLoco.TabIndex = 2;
|
|
|
|
|
deleteLoco.Text = "Удалить электровоз";
|
|
|
|
|
deleteLoco.UseVisualStyleBackColor = true;
|
|
|
|
|
deleteLoco.Click += deleteLoco_Click;
|
|
|
|
|
//
|
2023-10-31 13:25:13 +04:00
|
|
|
|
// locoIndexInput
|
2023-10-17 13:49:31 +04:00
|
|
|
|
//
|
2023-12-12 13:58:32 +04:00
|
|
|
|
locoIndexInput.Location = new Point(54, 526);
|
2023-10-31 13:25:13 +04:00
|
|
|
|
locoIndexInput.Name = "locoIndexInput";
|
|
|
|
|
locoIndexInput.Size = new Size(214, 27);
|
|
|
|
|
locoIndexInput.TabIndex = 1;
|
2023-10-17 13:49:31 +04:00
|
|
|
|
//
|
|
|
|
|
// addLocomotiv
|
|
|
|
|
//
|
2023-12-12 13:58:32 +04:00
|
|
|
|
addLocomotiv.Location = new Point(21, 461);
|
2023-10-17 13:49:31 +04:00
|
|
|
|
addLocomotiv.Name = "addLocomotiv";
|
|
|
|
|
addLocomotiv.Size = new Size(271, 59);
|
|
|
|
|
addLocomotiv.TabIndex = 0;
|
|
|
|
|
addLocomotiv.Text = "Добавить электровоз";
|
|
|
|
|
addLocomotiv.UseVisualStyleBackColor = true;
|
|
|
|
|
addLocomotiv.Click += addLocomotiv_Click;
|
|
|
|
|
//
|
|
|
|
|
// collectionPictureBox
|
|
|
|
|
//
|
2023-11-28 12:26:51 +04:00
|
|
|
|
collectionPictureBox.Location = new Point(12, 38);
|
2023-10-17 13:49:31 +04:00
|
|
|
|
collectionPictureBox.Name = "collectionPictureBox";
|
2023-11-28 12:26:51 +04:00
|
|
|
|
collectionPictureBox.Size = new Size(933, 681);
|
2023-10-17 13:49:31 +04:00
|
|
|
|
collectionPictureBox.TabIndex = 1;
|
|
|
|
|
collectionPictureBox.TabStop = false;
|
|
|
|
|
//
|
2023-11-28 12:26:51 +04:00
|
|
|
|
// menuStrip1
|
|
|
|
|
//
|
|
|
|
|
menuStrip1.ImageScalingSize = new Size(20, 20);
|
|
|
|
|
menuStrip1.Items.AddRange(new ToolStripItem[] { toolStripMenuItem });
|
|
|
|
|
menuStrip1.Location = new Point(0, 0);
|
|
|
|
|
menuStrip1.Name = "menuStrip1";
|
|
|
|
|
menuStrip1.Size = new Size(1265, 28);
|
|
|
|
|
menuStrip1.TabIndex = 3;
|
|
|
|
|
menuStrip1.Text = "menuStrip1";
|
|
|
|
|
//
|
|
|
|
|
// toolStripMenuItem
|
|
|
|
|
//
|
|
|
|
|
toolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { SaveToolStripMenuItem, LoadToolStripMenuItem });
|
|
|
|
|
toolStripMenuItem.Name = "toolStripMenuItem";
|
|
|
|
|
toolStripMenuItem.Size = new Size(59, 24);
|
|
|
|
|
toolStripMenuItem.Text = "Файл";
|
|
|
|
|
//
|
|
|
|
|
// SaveToolStripMenuItem
|
|
|
|
|
//
|
|
|
|
|
SaveToolStripMenuItem.Name = "SaveToolStripMenuItem";
|
|
|
|
|
SaveToolStripMenuItem.Size = new Size(166, 26);
|
|
|
|
|
SaveToolStripMenuItem.Text = "Сохранить";
|
|
|
|
|
SaveToolStripMenuItem.Click += SaveToolStripMenuItem_Click;
|
|
|
|
|
//
|
|
|
|
|
// LoadToolStripMenuItem
|
|
|
|
|
//
|
|
|
|
|
LoadToolStripMenuItem.Name = "LoadToolStripMenuItem";
|
|
|
|
|
LoadToolStripMenuItem.Size = new Size(166, 26);
|
|
|
|
|
LoadToolStripMenuItem.Text = "Загрузить";
|
|
|
|
|
LoadToolStripMenuItem.Click += LoadToolStripMenuItem_Click;
|
|
|
|
|
//
|
|
|
|
|
// loadFileDialog
|
|
|
|
|
//
|
|
|
|
|
loadFileDialog.FileName = "openFileDialog4";
|
|
|
|
|
loadFileDialog.Filter = "txt file | *.txt";
|
|
|
|
|
//
|
|
|
|
|
// saveFileDialog
|
|
|
|
|
//
|
|
|
|
|
saveFileDialog.Filter = "txt file | *.txt";
|
|
|
|
|
//
|
2023-12-12 13:58:32 +04:00
|
|
|
|
// ButtonSortByColor
|
|
|
|
|
//
|
|
|
|
|
ButtonSortByColor.Location = new Point(21, 369);
|
|
|
|
|
ButtonSortByColor.Name = "ButtonSortByColor";
|
|
|
|
|
ButtonSortByColor.Size = new Size(271, 32);
|
|
|
|
|
ButtonSortByColor.TabIndex = 7;
|
|
|
|
|
ButtonSortByColor.Text = "Сортировать по Цвету";
|
|
|
|
|
ButtonSortByColor.UseVisualStyleBackColor = true;
|
|
|
|
|
ButtonSortByColor.Click += ButtonSortByColor_Click;
|
|
|
|
|
//
|
|
|
|
|
// ButtonSortByType
|
|
|
|
|
//
|
|
|
|
|
ButtonSortByType.Location = new Point(21, 407);
|
|
|
|
|
ButtonSortByType.Name = "ButtonSortByType";
|
|
|
|
|
ButtonSortByType.Size = new Size(271, 32);
|
|
|
|
|
ButtonSortByType.TabIndex = 8;
|
|
|
|
|
ButtonSortByType.Text = "Сортировать по Типу";
|
|
|
|
|
ButtonSortByType.UseVisualStyleBackColor = true;
|
|
|
|
|
ButtonSortByType.Click += ButtonSortByType_Click;
|
|
|
|
|
//
|
2023-10-17 13:49:31 +04:00
|
|
|
|
// FormLocomotivCollection
|
|
|
|
|
//
|
|
|
|
|
AutoScaleDimensions = new SizeF(8F, 20F);
|
|
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
|
|
|
ClientSize = new Size(1265, 731);
|
|
|
|
|
Controls.Add(collectionPictureBox);
|
|
|
|
|
Controls.Add(toolsBox);
|
2023-11-28 12:26:51 +04:00
|
|
|
|
Controls.Add(menuStrip1);
|
|
|
|
|
MainMenuStrip = menuStrip1;
|
2023-10-17 13:49:31 +04:00
|
|
|
|
Name = "FormLocomotivCollection";
|
|
|
|
|
Text = "Набор локомотивов";
|
|
|
|
|
toolsBox.ResumeLayout(false);
|
|
|
|
|
toolsBox.PerformLayout();
|
2023-10-31 13:25:13 +04:00
|
|
|
|
collectionGroupBoxes.ResumeLayout(false);
|
|
|
|
|
collectionGroupBoxes.PerformLayout();
|
2023-10-17 13:49:31 +04:00
|
|
|
|
((ISupportInitialize)collectionPictureBox).EndInit();
|
2023-11-28 12:26:51 +04:00
|
|
|
|
menuStrip1.ResumeLayout(false);
|
|
|
|
|
menuStrip1.PerformLayout();
|
2023-10-17 13:49:31 +04:00
|
|
|
|
ResumeLayout(false);
|
2023-11-28 12:26:51 +04:00
|
|
|
|
PerformLayout();
|
2023-10-17 13:49:31 +04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
private GroupBox toolsBox;
|
2023-10-31 13:25:13 +04:00
|
|
|
|
private TextBox locoIndexInput;
|
2023-10-17 13:49:31 +04:00
|
|
|
|
private Button addLocomotiv;
|
|
|
|
|
private PictureBox collectionPictureBox;
|
|
|
|
|
private Button refreshCollection;
|
|
|
|
|
private Button deleteLoco;
|
2023-10-31 13:25:13 +04:00
|
|
|
|
private GroupBox collectionGroupBoxes;
|
|
|
|
|
private Button delStorageButton;
|
|
|
|
|
private Button addStorageButton;
|
|
|
|
|
private TextBox storageIndexInput;
|
|
|
|
|
private ListBox storageListBox;
|
2023-11-28 12:26:51 +04:00
|
|
|
|
private MenuStrip menuStrip1;
|
|
|
|
|
private ToolStripMenuItem toolStripMenuItem;
|
|
|
|
|
private ToolStripMenuItem SaveToolStripMenuItem;
|
|
|
|
|
private ToolStripMenuItem LoadToolStripMenuItem;
|
|
|
|
|
private OpenFileDialog loadFileDialog;
|
|
|
|
|
private SaveFileDialog saveFileDialog;
|
2023-12-12 13:58:32 +04:00
|
|
|
|
private Button ButtonSortByType;
|
|
|
|
|
private Button ButtonSortByColor;
|
2023-10-17 13:49:31 +04:00
|
|
|
|
}
|