421 lines
16 KiB
C#
421 lines
16 KiB
C#
namespace DroneSimulator
|
|
{
|
|
partial class Form_Main
|
|
{
|
|
/// <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()
|
|
{
|
|
components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form_Main));
|
|
menuStrip_Menu = new MenuStrip();
|
|
fileToolStripMenuItem = new ToolStripMenuItem();
|
|
exitToolStripMenuItem = new ToolStripMenuItem();
|
|
groupBox_Screen = new GroupBox();
|
|
pictureBox_2D = new PictureBox();
|
|
tabControl_Menu = new TabControl();
|
|
tabPage_Main = new TabPage();
|
|
groupBox_Visual = new GroupBox();
|
|
button_Visual_Start = new Button();
|
|
numericUpDown_Visual_Port = new NumericUpDown();
|
|
label_Visual_Port = new Label();
|
|
groupBox_Clients = new GroupBox();
|
|
numericUpDown_Clients_Limit = new NumericUpDown();
|
|
label_Clients_Limit = new Label();
|
|
label_Clients_Num = new Label();
|
|
label_Clients_Count = new Label();
|
|
button_Client_Start = new Button();
|
|
numericUpDown_Clients_Port = new NumericUpDown();
|
|
label_Clients_Port = new Label();
|
|
tabPage_Model = new TabPage();
|
|
tabPage_Area = new TabPage();
|
|
groupBox_Navi = new GroupBox();
|
|
panel1 = new Panel();
|
|
button_Drone_Color = new Button();
|
|
comboBox_Drone_Rotor = new ComboBox();
|
|
comboBox_Drone = new ComboBox();
|
|
timer_Test = new System.Windows.Forms.Timer(components);
|
|
menuStrip_Menu.SuspendLayout();
|
|
groupBox_Screen.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)pictureBox_2D).BeginInit();
|
|
tabControl_Menu.SuspendLayout();
|
|
tabPage_Main.SuspendLayout();
|
|
groupBox_Visual.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)numericUpDown_Visual_Port).BeginInit();
|
|
groupBox_Clients.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)numericUpDown_Clients_Limit).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)numericUpDown_Clients_Port).BeginInit();
|
|
groupBox_Navi.SuspendLayout();
|
|
panel1.SuspendLayout();
|
|
SuspendLayout();
|
|
//
|
|
// menuStrip_Menu
|
|
//
|
|
menuStrip_Menu.Items.AddRange(new ToolStripItem[] { fileToolStripMenuItem });
|
|
menuStrip_Menu.Location = new Point(0, 0);
|
|
menuStrip_Menu.Name = "menuStrip_Menu";
|
|
menuStrip_Menu.Size = new Size(884, 24);
|
|
menuStrip_Menu.TabIndex = 0;
|
|
menuStrip_Menu.Text = "menuStrip1";
|
|
//
|
|
// fileToolStripMenuItem
|
|
//
|
|
fileToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { exitToolStripMenuItem });
|
|
fileToolStripMenuItem.Name = "fileToolStripMenuItem";
|
|
fileToolStripMenuItem.Size = new Size(37, 20);
|
|
fileToolStripMenuItem.Tag = "#file";
|
|
fileToolStripMenuItem.Text = "File";
|
|
//
|
|
// exitToolStripMenuItem
|
|
//
|
|
exitToolStripMenuItem.Name = "exitToolStripMenuItem";
|
|
exitToolStripMenuItem.Size = new Size(93, 22);
|
|
exitToolStripMenuItem.Tag = "#exit";
|
|
exitToolStripMenuItem.Text = "Exit";
|
|
exitToolStripMenuItem.Click += exitToolStripMenuItem_Click;
|
|
//
|
|
// groupBox_Screen
|
|
//
|
|
groupBox_Screen.Controls.Add(pictureBox_2D);
|
|
groupBox_Screen.Dock = DockStyle.Fill;
|
|
groupBox_Screen.Location = new Point(218, 24);
|
|
groupBox_Screen.Name = "groupBox_Screen";
|
|
groupBox_Screen.Size = new Size(466, 437);
|
|
groupBox_Screen.TabIndex = 1;
|
|
groupBox_Screen.TabStop = false;
|
|
//
|
|
// pictureBox_2D
|
|
//
|
|
pictureBox_2D.BackColor = Color.Gainsboro;
|
|
pictureBox_2D.Dock = DockStyle.Fill;
|
|
pictureBox_2D.Location = new Point(3, 19);
|
|
pictureBox_2D.Name = "pictureBox_2D";
|
|
pictureBox_2D.Size = new Size(460, 415);
|
|
pictureBox_2D.SizeMode = PictureBoxSizeMode.Zoom;
|
|
pictureBox_2D.TabIndex = 0;
|
|
pictureBox_2D.TabStop = false;
|
|
//
|
|
// tabControl_Menu
|
|
//
|
|
tabControl_Menu.Controls.Add(tabPage_Main);
|
|
tabControl_Menu.Controls.Add(tabPage_Model);
|
|
tabControl_Menu.Controls.Add(tabPage_Area);
|
|
tabControl_Menu.Dock = DockStyle.Left;
|
|
tabControl_Menu.Location = new Point(0, 24);
|
|
tabControl_Menu.Name = "tabControl_Menu";
|
|
tabControl_Menu.SelectedIndex = 0;
|
|
tabControl_Menu.Size = new Size(218, 437);
|
|
tabControl_Menu.TabIndex = 2;
|
|
//
|
|
// tabPage_Main
|
|
//
|
|
tabPage_Main.Controls.Add(groupBox_Visual);
|
|
tabPage_Main.Controls.Add(groupBox_Clients);
|
|
tabPage_Main.Location = new Point(4, 24);
|
|
tabPage_Main.Name = "tabPage_Main";
|
|
tabPage_Main.Padding = new Padding(3);
|
|
tabPage_Main.Size = new Size(210, 409);
|
|
tabPage_Main.TabIndex = 0;
|
|
tabPage_Main.Tag = "#main";
|
|
tabPage_Main.Text = "Main";
|
|
tabPage_Main.UseVisualStyleBackColor = true;
|
|
//
|
|
// groupBox_Visual
|
|
//
|
|
groupBox_Visual.Controls.Add(button_Visual_Start);
|
|
groupBox_Visual.Controls.Add(numericUpDown_Visual_Port);
|
|
groupBox_Visual.Controls.Add(label_Visual_Port);
|
|
groupBox_Visual.Dock = DockStyle.Top;
|
|
groupBox_Visual.Location = new Point(3, 83);
|
|
groupBox_Visual.Name = "groupBox_Visual";
|
|
groupBox_Visual.Size = new Size(204, 62);
|
|
groupBox_Visual.TabIndex = 2;
|
|
groupBox_Visual.TabStop = false;
|
|
groupBox_Visual.Tag = "#visual";
|
|
groupBox_Visual.Text = "Visual";
|
|
//
|
|
// button_Visual_Start
|
|
//
|
|
button_Visual_Start.Location = new Point(112, 22);
|
|
button_Visual_Start.Name = "button_Visual_Start";
|
|
button_Visual_Start.Size = new Size(86, 23);
|
|
button_Visual_Start.TabIndex = 9;
|
|
button_Visual_Start.Tag = "#visual_start";
|
|
button_Visual_Start.Text = "Start";
|
|
button_Visual_Start.UseVisualStyleBackColor = true;
|
|
//
|
|
// numericUpDown_Visual_Port
|
|
//
|
|
numericUpDown_Visual_Port.Location = new Point(44, 24);
|
|
numericUpDown_Visual_Port.Maximum = new decimal(new int[] { 65000, 0, 0, 0 });
|
|
numericUpDown_Visual_Port.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
|
|
numericUpDown_Visual_Port.Name = "numericUpDown_Visual_Port";
|
|
numericUpDown_Visual_Port.Size = new Size(62, 23);
|
|
numericUpDown_Visual_Port.TabIndex = 8;
|
|
numericUpDown_Visual_Port.Value = new decimal(new int[] { 1002, 0, 0, 0 });
|
|
//
|
|
// label_Visual_Port
|
|
//
|
|
label_Visual_Port.AutoSize = true;
|
|
label_Visual_Port.Location = new Point(6, 26);
|
|
label_Visual_Port.Name = "label_Visual_Port";
|
|
label_Visual_Port.Size = new Size(32, 15);
|
|
label_Visual_Port.TabIndex = 7;
|
|
label_Visual_Port.Tag = "#visual_port";
|
|
label_Visual_Port.Text = "Port:";
|
|
//
|
|
// groupBox_Clients
|
|
//
|
|
groupBox_Clients.Controls.Add(numericUpDown_Clients_Limit);
|
|
groupBox_Clients.Controls.Add(label_Clients_Limit);
|
|
groupBox_Clients.Controls.Add(label_Clients_Num);
|
|
groupBox_Clients.Controls.Add(label_Clients_Count);
|
|
groupBox_Clients.Controls.Add(button_Client_Start);
|
|
groupBox_Clients.Controls.Add(numericUpDown_Clients_Port);
|
|
groupBox_Clients.Controls.Add(label_Clients_Port);
|
|
groupBox_Clients.Dock = DockStyle.Top;
|
|
groupBox_Clients.Location = new Point(3, 3);
|
|
groupBox_Clients.Name = "groupBox_Clients";
|
|
groupBox_Clients.Size = new Size(204, 80);
|
|
groupBox_Clients.TabIndex = 1;
|
|
groupBox_Clients.TabStop = false;
|
|
groupBox_Clients.Tag = "#clients";
|
|
groupBox_Clients.Text = "Clients";
|
|
//
|
|
// numericUpDown_Clients_Limit
|
|
//
|
|
numericUpDown_Clients_Limit.Location = new Point(44, 48);
|
|
numericUpDown_Clients_Limit.Maximum = new decimal(new int[] { 10, 0, 0, 0 });
|
|
numericUpDown_Clients_Limit.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
|
|
numericUpDown_Clients_Limit.Name = "numericUpDown_Clients_Limit";
|
|
numericUpDown_Clients_Limit.Size = new Size(42, 23);
|
|
numericUpDown_Clients_Limit.TabIndex = 6;
|
|
numericUpDown_Clients_Limit.Value = new decimal(new int[] { 1, 0, 0, 0 });
|
|
//
|
|
// label_Clients_Limit
|
|
//
|
|
label_Clients_Limit.AutoSize = true;
|
|
label_Clients_Limit.Location = new Point(6, 50);
|
|
label_Clients_Limit.Name = "label_Clients_Limit";
|
|
label_Clients_Limit.Size = new Size(37, 15);
|
|
label_Clients_Limit.TabIndex = 5;
|
|
label_Clients_Limit.Tag = "#clients_limit";
|
|
label_Clients_Limit.Text = "Limit:";
|
|
//
|
|
// label_Clients_Num
|
|
//
|
|
label_Clients_Num.AutoSize = true;
|
|
label_Clients_Num.Location = new Point(161, 50);
|
|
label_Clients_Num.Name = "label_Clients_Num";
|
|
label_Clients_Num.Size = new Size(13, 15);
|
|
label_Clients_Num.TabIndex = 4;
|
|
label_Clients_Num.Text = "0";
|
|
//
|
|
// label_Clients_Count
|
|
//
|
|
label_Clients_Count.AutoSize = true;
|
|
label_Clients_Count.Location = new Point(112, 50);
|
|
label_Clients_Count.Name = "label_Clients_Count";
|
|
label_Clients_Count.Size = new Size(43, 15);
|
|
label_Clients_Count.TabIndex = 3;
|
|
label_Clients_Count.Tag = "#clients_count";
|
|
label_Clients_Count.Text = "Count:";
|
|
//
|
|
// button_Client_Start
|
|
//
|
|
button_Client_Start.BackColor = Color.Transparent;
|
|
button_Client_Start.Location = new Point(112, 15);
|
|
button_Client_Start.Name = "button_Client_Start";
|
|
button_Client_Start.Size = new Size(86, 23);
|
|
button_Client_Start.TabIndex = 2;
|
|
button_Client_Start.Tag = "";
|
|
button_Client_Start.Text = "Start";
|
|
button_Client_Start.UseVisualStyleBackColor = false;
|
|
button_Client_Start.Click += button_Client_Start_Click;
|
|
//
|
|
// numericUpDown_Clients_Port
|
|
//
|
|
numericUpDown_Clients_Port.Location = new Point(44, 17);
|
|
numericUpDown_Clients_Port.Maximum = new decimal(new int[] { 65000, 0, 0, 0 });
|
|
numericUpDown_Clients_Port.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
|
|
numericUpDown_Clients_Port.Name = "numericUpDown_Clients_Port";
|
|
numericUpDown_Clients_Port.Size = new Size(62, 23);
|
|
numericUpDown_Clients_Port.TabIndex = 1;
|
|
numericUpDown_Clients_Port.Value = new decimal(new int[] { 1001, 0, 0, 0 });
|
|
//
|
|
// label_Clients_Port
|
|
//
|
|
label_Clients_Port.AutoSize = true;
|
|
label_Clients_Port.Location = new Point(6, 19);
|
|
label_Clients_Port.Name = "label_Clients_Port";
|
|
label_Clients_Port.Size = new Size(32, 15);
|
|
label_Clients_Port.TabIndex = 0;
|
|
label_Clients_Port.Tag = "#clients_port";
|
|
label_Clients_Port.Text = "Port:";
|
|
//
|
|
// tabPage_Model
|
|
//
|
|
tabPage_Model.Location = new Point(4, 24);
|
|
tabPage_Model.Name = "tabPage_Model";
|
|
tabPage_Model.Padding = new Padding(3);
|
|
tabPage_Model.Size = new Size(210, 409);
|
|
tabPage_Model.TabIndex = 1;
|
|
tabPage_Model.Tag = "#model";
|
|
tabPage_Model.Text = "Model";
|
|
tabPage_Model.UseVisualStyleBackColor = true;
|
|
//
|
|
// tabPage_Area
|
|
//
|
|
tabPage_Area.Location = new Point(4, 24);
|
|
tabPage_Area.Name = "tabPage_Area";
|
|
tabPage_Area.Size = new Size(210, 409);
|
|
tabPage_Area.TabIndex = 2;
|
|
tabPage_Area.Tag = "#area";
|
|
tabPage_Area.Text = "Area";
|
|
tabPage_Area.UseVisualStyleBackColor = true;
|
|
//
|
|
// groupBox_Navi
|
|
//
|
|
groupBox_Navi.Controls.Add(panel1);
|
|
groupBox_Navi.Controls.Add(comboBox_Drone);
|
|
groupBox_Navi.Dock = DockStyle.Right;
|
|
groupBox_Navi.Location = new Point(684, 24);
|
|
groupBox_Navi.Name = "groupBox_Navi";
|
|
groupBox_Navi.Size = new Size(200, 437);
|
|
groupBox_Navi.TabIndex = 3;
|
|
groupBox_Navi.TabStop = false;
|
|
groupBox_Navi.Tag = "#navigation";
|
|
groupBox_Navi.Text = "Navigation";
|
|
//
|
|
// panel1
|
|
//
|
|
panel1.Controls.Add(button_Drone_Color);
|
|
panel1.Controls.Add(comboBox_Drone_Rotor);
|
|
panel1.Dock = DockStyle.Fill;
|
|
panel1.Location = new Point(3, 42);
|
|
panel1.Name = "panel1";
|
|
panel1.Size = new Size(194, 392);
|
|
panel1.TabIndex = 3;
|
|
//
|
|
// button_Drone_Color
|
|
//
|
|
button_Drone_Color.BackColor = Color.Tomato;
|
|
button_Drone_Color.Location = new Point(13, 6);
|
|
button_Drone_Color.Name = "button_Drone_Color";
|
|
button_Drone_Color.Size = new Size(45, 23);
|
|
button_Drone_Color.TabIndex = 1;
|
|
button_Drone_Color.UseVisualStyleBackColor = false;
|
|
//
|
|
// comboBox_Drone_Rotor
|
|
//
|
|
comboBox_Drone_Rotor.FormattingEnabled = true;
|
|
comboBox_Drone_Rotor.Items.AddRange(new object[] { "4-Rotor", "6-Rotor", "8-Rotor" });
|
|
comboBox_Drone_Rotor.Location = new Point(114, 6);
|
|
comboBox_Drone_Rotor.Name = "comboBox_Drone_Rotor";
|
|
comboBox_Drone_Rotor.Size = new Size(71, 23);
|
|
comboBox_Drone_Rotor.TabIndex = 2;
|
|
comboBox_Drone_Rotor.Text = "4-Rotor";
|
|
//
|
|
// comboBox_Drone
|
|
//
|
|
comboBox_Drone.Dock = DockStyle.Top;
|
|
comboBox_Drone.FormattingEnabled = true;
|
|
comboBox_Drone.Location = new Point(3, 19);
|
|
comboBox_Drone.Name = "comboBox_Drone";
|
|
comboBox_Drone.Size = new Size(194, 23);
|
|
comboBox_Drone.TabIndex = 0;
|
|
//
|
|
// timer_Test
|
|
//
|
|
timer_Test.Enabled = true;
|
|
timer_Test.Interval = 10;
|
|
timer_Test.Tick += timer_Test_Tick;
|
|
//
|
|
// Form_Main
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(884, 461);
|
|
Controls.Add(groupBox_Screen);
|
|
Controls.Add(groupBox_Navi);
|
|
Controls.Add(tabControl_Menu);
|
|
Controls.Add(menuStrip_Menu);
|
|
Icon = (Icon)resources.GetObject("$this.Icon");
|
|
MainMenuStrip = menuStrip_Menu;
|
|
MinimumSize = new Size(900, 500);
|
|
Name = "Form_Main";
|
|
Text = "Drone Simulator V1.0";
|
|
FormClosing += Form_Main_FormClosing;
|
|
menuStrip_Menu.ResumeLayout(false);
|
|
menuStrip_Menu.PerformLayout();
|
|
groupBox_Screen.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)pictureBox_2D).EndInit();
|
|
tabControl_Menu.ResumeLayout(false);
|
|
tabPage_Main.ResumeLayout(false);
|
|
groupBox_Visual.ResumeLayout(false);
|
|
groupBox_Visual.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)numericUpDown_Visual_Port).EndInit();
|
|
groupBox_Clients.ResumeLayout(false);
|
|
groupBox_Clients.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)numericUpDown_Clients_Limit).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)numericUpDown_Clients_Port).EndInit();
|
|
groupBox_Navi.ResumeLayout(false);
|
|
panel1.ResumeLayout(false);
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private MenuStrip menuStrip_Menu;
|
|
private ToolStripMenuItem fileToolStripMenuItem;
|
|
private GroupBox groupBox_Screen;
|
|
private TabControl tabControl_Menu;
|
|
private TabPage tabPage_Main;
|
|
private TabPage tabPage_Model;
|
|
private Label label_Clients_Port;
|
|
private GroupBox groupBox_Clients;
|
|
private NumericUpDown numericUpDown_Clients_Port;
|
|
private Label label_Clients_Num;
|
|
private Label label_Clients_Count;
|
|
private Button button_Client_Start;
|
|
private NumericUpDown numericUpDown_Clients_Limit;
|
|
private Label label_Clients_Limit;
|
|
private GroupBox groupBox_Visual;
|
|
private Button button_Visual_Start;
|
|
private NumericUpDown numericUpDown_Visual_Port;
|
|
private Label label_Visual_Port;
|
|
private PictureBox pictureBox_2D;
|
|
private GroupBox groupBox_Navi;
|
|
private ComboBox comboBox_Drone;
|
|
private TabPage tabPage_Area;
|
|
private Button button_Drone_Color;
|
|
private ComboBox comboBox_Drone_Rotor;
|
|
private Panel panel1;
|
|
private ToolStripMenuItem exitToolStripMenuItem;
|
|
private System.Windows.Forms.Timer timer_Test;
|
|
}
|
|
}
|