2024-04-16 08:45:59 +04:00
|
|
|
|
using System.Drawing.Printing;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
using static System.Net.Mime.MediaTypeNames;
|
|
|
|
|
using System.Xml.Linq;
|
|
|
|
|
|
|
|
|
|
namespace CruiserMech
|
2024-03-03 16:11:54 +04:00
|
|
|
|
{
|
|
|
|
|
partial class DrawingCanvas
|
|
|
|
|
{
|
|
|
|
|
/// <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()
|
|
|
|
|
{
|
|
|
|
|
pictureBox1 = new PictureBox();
|
|
|
|
|
CreateButton = new Button();
|
2024-04-16 08:45:59 +04:00
|
|
|
|
CreateButton2 = new Button();
|
2024-03-03 16:11:54 +04:00
|
|
|
|
buttonUp = new Button();
|
|
|
|
|
buttonLeft = new Button();
|
|
|
|
|
buttonDown = new Button();
|
|
|
|
|
buttonRight = new Button();
|
2024-04-16 08:45:59 +04:00
|
|
|
|
ButtonActivate = new Button();
|
|
|
|
|
comboBox = new ComboBox();
|
|
|
|
|
Activate = new Button();
|
2024-03-03 16:11:54 +04:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
|
|
|
|
|
SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// pictureBox1
|
|
|
|
|
//
|
|
|
|
|
pictureBox1.Dock = DockStyle.Fill;
|
|
|
|
|
pictureBox1.Location = new Point(0, 0);
|
2024-04-16 08:45:59 +04:00
|
|
|
|
pictureBox1.Margin = new Padding(6);
|
2024-03-03 16:11:54 +04:00
|
|
|
|
pictureBox1.Name = "pictureBox1";
|
2024-04-16 08:45:59 +04:00
|
|
|
|
pictureBox1.Size = new Size(1018, 604);
|
2024-03-03 16:11:54 +04:00
|
|
|
|
pictureBox1.TabIndex = 0;
|
|
|
|
|
pictureBox1.TabStop = false;
|
|
|
|
|
//
|
|
|
|
|
// CreateButton
|
|
|
|
|
//
|
|
|
|
|
CreateButton.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
2024-04-16 08:45:59 +04:00
|
|
|
|
CreateButton.Location = new Point(22, 465);
|
|
|
|
|
CreateButton.Margin = new Padding(6);
|
2024-03-03 16:11:54 +04:00
|
|
|
|
CreateButton.Name = "CreateButton";
|
2024-04-16 08:45:59 +04:00
|
|
|
|
CreateButton.Size = new Size(139, 113);
|
2024-03-03 16:11:54 +04:00
|
|
|
|
CreateButton.TabIndex = 1;
|
|
|
|
|
CreateButton.Text = "Create object";
|
|
|
|
|
CreateButton.UseVisualStyleBackColor = true;
|
|
|
|
|
CreateButton.Click += buttonCr_Click;
|
|
|
|
|
//
|
2024-04-16 08:45:59 +04:00
|
|
|
|
// CreateButton2
|
|
|
|
|
//
|
|
|
|
|
CreateButton2.Location = new Point(22, 26);
|
|
|
|
|
CreateButton2.Margin = new Padding(6);
|
|
|
|
|
CreateButton2.Name = "CreateButton2";
|
|
|
|
|
CreateButton2.Size = new Size(139, 113);
|
|
|
|
|
CreateButton2.TabIndex = 2;
|
|
|
|
|
CreateButton2.Text = "Cr Updated Object";
|
|
|
|
|
CreateButton2.UseVisualStyleBackColor = true;
|
|
|
|
|
CreateButton2.Click += buttonCr2_Click;
|
|
|
|
|
//
|
2024-03-03 16:11:54 +04:00
|
|
|
|
// buttonUp
|
|
|
|
|
//
|
|
|
|
|
buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
|
|
|
buttonUp.BackgroundImage = Properties.Resources.up_arrow_res;
|
|
|
|
|
buttonUp.BackgroundImageLayout = ImageLayout.Stretch;
|
2024-04-16 08:45:59 +04:00
|
|
|
|
buttonUp.Location = new Point(817, 371);
|
|
|
|
|
buttonUp.Margin = new Padding(6);
|
2024-03-03 16:11:54 +04:00
|
|
|
|
buttonUp.Name = "buttonUp";
|
2024-04-16 08:45:59 +04:00
|
|
|
|
buttonUp.Size = new Size(84, 96);
|
|
|
|
|
buttonUp.TabIndex = 3;
|
2024-03-03 16:11:54 +04:00
|
|
|
|
buttonUp.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonUp.Click += ButtonMove_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonLeft
|
|
|
|
|
//
|
|
|
|
|
buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
|
|
|
buttonLeft.BackgroundImage = Properties.Resources.left_arrow_res;
|
|
|
|
|
buttonLeft.BackgroundImageLayout = ImageLayout.Stretch;
|
2024-04-16 08:45:59 +04:00
|
|
|
|
buttonLeft.Location = new Point(722, 480);
|
|
|
|
|
buttonLeft.Margin = new Padding(6);
|
2024-03-03 16:11:54 +04:00
|
|
|
|
buttonLeft.Name = "buttonLeft";
|
2024-04-16 08:45:59 +04:00
|
|
|
|
buttonLeft.Size = new Size(84, 96);
|
|
|
|
|
buttonLeft.TabIndex = 4;
|
2024-03-03 16:11:54 +04:00
|
|
|
|
buttonLeft.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonLeft.Click += ButtonMove_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonDown
|
|
|
|
|
//
|
|
|
|
|
buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
|
|
|
buttonDown.BackgroundImage = Properties.Resources.down_arrow_res;
|
|
|
|
|
buttonDown.BackgroundImageLayout = ImageLayout.Stretch;
|
2024-04-16 08:45:59 +04:00
|
|
|
|
buttonDown.Location = new Point(817, 480);
|
|
|
|
|
buttonDown.Margin = new Padding(6);
|
2024-03-03 16:11:54 +04:00
|
|
|
|
buttonDown.Name = "buttonDown";
|
2024-04-16 08:45:59 +04:00
|
|
|
|
buttonDown.Size = new Size(84, 96);
|
|
|
|
|
buttonDown.TabIndex = 5;
|
2024-03-03 16:11:54 +04:00
|
|
|
|
buttonDown.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonDown.Click += ButtonMove_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonRight
|
|
|
|
|
//
|
|
|
|
|
buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
|
|
|
|
buttonRight.BackgroundImage = Properties.Resources.right_arrow_res;
|
|
|
|
|
buttonRight.BackgroundImageLayout = ImageLayout.Stretch;
|
2024-04-16 08:45:59 +04:00
|
|
|
|
buttonRight.Location = new Point(912, 480);
|
|
|
|
|
buttonRight.Margin = new Padding(6);
|
2024-03-03 16:11:54 +04:00
|
|
|
|
buttonRight.Name = "buttonRight";
|
2024-04-16 08:45:59 +04:00
|
|
|
|
buttonRight.Size = new Size(84, 96);
|
|
|
|
|
buttonRight.TabIndex = 6;
|
2024-03-03 16:11:54 +04:00
|
|
|
|
buttonRight.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonRight.Click += ButtonMove_Click;
|
|
|
|
|
//
|
2024-04-16 08:45:59 +04:00
|
|
|
|
// ListComboBox
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// ButtonActivate
|
|
|
|
|
//
|
|
|
|
|
ButtonActivate.Anchor = AnchorStyles.Right;
|
|
|
|
|
ButtonActivate.Location = new Point(22, 149);
|
|
|
|
|
ButtonActivate.Margin = new Padding(6);
|
|
|
|
|
ButtonActivate.Name = "ButtonActivate";
|
|
|
|
|
ButtonActivate.Size = new Size(84, 96);
|
|
|
|
|
ButtonActivate.TabIndex = 8;
|
|
|
|
|
ButtonActivate.UseVisualStyleBackColor = true;
|
|
|
|
|
ButtonActivate.Click += comboBox_Activate;
|
|
|
|
|
//
|
|
|
|
|
// comboBox1
|
|
|
|
|
//
|
|
|
|
|
comboBox.FormattingEnabled = true;
|
|
|
|
|
comboBox.Items.AddRange(new object[] { "Center", "Boarder" });
|
|
|
|
|
comboBox.Location = new Point(188, 26);
|
|
|
|
|
comboBox.Name = "Directions";
|
|
|
|
|
comboBox.Size = new Size(203, 40);
|
|
|
|
|
comboBox.TabIndex = 9;
|
|
|
|
|
//
|
|
|
|
|
// Activate
|
|
|
|
|
//
|
|
|
|
|
Activate.Location = new Point(188, 93);
|
|
|
|
|
Activate.Name = "Activate";
|
|
|
|
|
Activate.Size = new Size(203, 46);
|
|
|
|
|
Activate.TabIndex = 10;
|
|
|
|
|
Activate.Text = "ActivateStep";
|
|
|
|
|
Activate.UseVisualStyleBackColor = true;
|
|
|
|
|
Activate.Click += comboBox_Activate;
|
|
|
|
|
//
|
2024-03-03 16:11:54 +04:00
|
|
|
|
// DrawingCanvas
|
|
|
|
|
//
|
2024-04-16 08:45:59 +04:00
|
|
|
|
AutoScaleDimensions = new SizeF(13F, 32F);
|
2024-03-03 16:11:54 +04:00
|
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
|
|
|
AutoValidate = AutoValidate.EnableAllowFocusChange;
|
|
|
|
|
BackColor = Color.CornflowerBlue;
|
2024-04-16 08:45:59 +04:00
|
|
|
|
ClientSize = new Size(1018, 604);
|
|
|
|
|
Controls.Add(Activate);
|
|
|
|
|
Controls.Add(comboBox);
|
2024-03-03 16:11:54 +04:00
|
|
|
|
Controls.Add(buttonRight);
|
|
|
|
|
Controls.Add(buttonDown);
|
|
|
|
|
Controls.Add(buttonLeft);
|
|
|
|
|
Controls.Add(buttonUp);
|
|
|
|
|
Controls.Add(CreateButton);
|
2024-04-16 08:45:59 +04:00
|
|
|
|
Controls.Add(CreateButton2);
|
2024-03-03 16:11:54 +04:00
|
|
|
|
Controls.Add(pictureBox1);
|
2024-04-16 08:45:59 +04:00
|
|
|
|
Controls.Add(ButtonActivate);
|
|
|
|
|
Margin = new Padding(4, 2, 4, 2);
|
2024-03-03 16:11:54 +04:00
|
|
|
|
Name = "DrawingCanvas";
|
|
|
|
|
StartPosition = FormStartPosition.Manual;
|
|
|
|
|
Text = "DrawingCanvas";
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
|
|
|
|
|
ResumeLayout(false);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
private PictureBox pictureBox1;
|
|
|
|
|
private Button CreateButton;
|
2024-04-16 08:45:59 +04:00
|
|
|
|
private Button CreateButton2;
|
2024-03-03 16:11:54 +04:00
|
|
|
|
private Button buttonUp;
|
|
|
|
|
private Button buttonLeft;
|
|
|
|
|
private Button buttonDown;
|
|
|
|
|
private Button buttonRight;
|
2024-04-16 08:45:59 +04:00
|
|
|
|
private Button ButtonActivate;
|
|
|
|
|
private ComboBox comboBox;
|
|
|
|
|
private Button Activate;
|
2024-03-03 16:11:54 +04:00
|
|
|
|
}
|
|
|
|
|
}
|