280 lines
11 KiB
C#
280 lines
11 KiB
C#
|
|
|
|
namespace CanFly
|
|
{
|
|
partial class FrmMain
|
|
{
|
|
/// <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()
|
|
{
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
|
|
panel1 = new Panel();
|
|
canvas = new Canvas.UI.FlyCanvas();
|
|
statusStrip1 = new StatusStrip();
|
|
lblStatus = new ToolStripStatusLabel();
|
|
flowLayoutPanel1 = new FlowLayoutPanel();
|
|
btnLoadImage = new Button();
|
|
btnCreateCircle = new Button();
|
|
btnCreateRect = new Button();
|
|
btnStopDraw = new Button();
|
|
btnTestOutsideDraw = new Button();
|
|
btnTestClearDraw = new Button();
|
|
btnTestCircleMeasure = new Button();
|
|
btnTest = new Button();
|
|
splitContainer = new SplitContainer();
|
|
panelGuide = new Panel();
|
|
btnRotateTest = new Button();
|
|
panel1.SuspendLayout();
|
|
statusStrip1.SuspendLayout();
|
|
flowLayoutPanel1.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)splitContainer).BeginInit();
|
|
splitContainer.Panel1.SuspendLayout();
|
|
splitContainer.Panel2.SuspendLayout();
|
|
splitContainer.SuspendLayout();
|
|
SuspendLayout();
|
|
//
|
|
// panel1
|
|
//
|
|
panel1.BorderStyle = BorderStyle.FixedSingle;
|
|
panel1.Controls.Add(canvas);
|
|
panel1.Controls.Add(statusStrip1);
|
|
panel1.Dock = DockStyle.Fill;
|
|
panel1.Location = new Point(0, 0);
|
|
panel1.Name = "panel1";
|
|
panel1.Size = new Size(947, 791);
|
|
panel1.TabIndex = 1;
|
|
//
|
|
// canvas
|
|
//
|
|
canvas.AllowMultiSelect = false;
|
|
canvas.CreateMode = Canvas.Shape.ShapeTypeEnum.Polygon;
|
|
canvas.Dock = DockStyle.Fill;
|
|
canvas.Enabled = false;
|
|
canvas.FillDrawing = false;
|
|
canvas.Location = new Point(0, 0);
|
|
canvas.Margin = new Padding(2);
|
|
canvas.Name = "canvas";
|
|
canvas.OutsideShapes = (List<Canvas.Shape.FlyShape>)resources.GetObject("canvas.OutsideShapes");
|
|
canvas.Scale = 1F;
|
|
canvas.Shapes = (List<Canvas.Shape.FlyShape>)resources.GetObject("canvas.Shapes");
|
|
canvas.Size = new Size(945, 767);
|
|
canvas.TabIndex = 2;
|
|
//
|
|
// statusStrip1
|
|
//
|
|
statusStrip1.Items.AddRange(new ToolStripItem[] { lblStatus });
|
|
statusStrip1.Location = new Point(0, 767);
|
|
statusStrip1.Name = "statusStrip1";
|
|
statusStrip1.Size = new Size(945, 22);
|
|
statusStrip1.TabIndex = 1;
|
|
statusStrip1.Text = "statusStrip1";
|
|
//
|
|
// lblStatus
|
|
//
|
|
lblStatus.Name = "lblStatus";
|
|
lblStatus.Size = new Size(44, 17);
|
|
lblStatus.Text = " ";
|
|
//
|
|
// flowLayoutPanel1
|
|
//
|
|
flowLayoutPanel1.BorderStyle = BorderStyle.FixedSingle;
|
|
flowLayoutPanel1.Controls.Add(btnLoadImage);
|
|
flowLayoutPanel1.Controls.Add(btnCreateCircle);
|
|
flowLayoutPanel1.Controls.Add(btnCreateRect);
|
|
flowLayoutPanel1.Controls.Add(btnStopDraw);
|
|
flowLayoutPanel1.Controls.Add(btnTestOutsideDraw);
|
|
flowLayoutPanel1.Controls.Add(btnTestClearDraw);
|
|
flowLayoutPanel1.Controls.Add(btnTestCircleMeasure);
|
|
flowLayoutPanel1.Controls.Add(btnTest);
|
|
flowLayoutPanel1.Controls.Add(btnRotateTest);
|
|
flowLayoutPanel1.Dock = DockStyle.Top;
|
|
flowLayoutPanel1.Location = new Point(0, 0);
|
|
flowLayoutPanel1.Name = "flowLayoutPanel1";
|
|
flowLayoutPanel1.Size = new Size(1185, 40);
|
|
flowLayoutPanel1.TabIndex = 2;
|
|
//
|
|
// btnLoadImage
|
|
//
|
|
btnLoadImage.Location = new Point(3, 3);
|
|
btnLoadImage.Name = "btnLoadImage";
|
|
btnLoadImage.Size = new Size(75, 30);
|
|
btnLoadImage.TabIndex = 0;
|
|
btnLoadImage.Text = "加载图像";
|
|
btnLoadImage.UseVisualStyleBackColor = true;
|
|
btnLoadImage.Click += btnLoadImage_Click;
|
|
//
|
|
// btnCreateCircle
|
|
//
|
|
btnCreateCircle.Enabled = false;
|
|
btnCreateCircle.Location = new Point(84, 3);
|
|
btnCreateCircle.Name = "btnCreateCircle";
|
|
btnCreateCircle.Size = new Size(75, 30);
|
|
btnCreateCircle.TabIndex = 1;
|
|
btnCreateCircle.Text = "绘制圆形";
|
|
btnCreateCircle.UseVisualStyleBackColor = true;
|
|
btnCreateCircle.Click += btnCreateCircle_Click;
|
|
//
|
|
// btnCreateRect
|
|
//
|
|
btnCreateRect.Location = new Point(165, 3);
|
|
btnCreateRect.Name = "btnCreateRect";
|
|
btnCreateRect.Size = new Size(75, 30);
|
|
btnCreateRect.TabIndex = 6;
|
|
btnCreateRect.Text = "绘制矩形";
|
|
btnCreateRect.UseVisualStyleBackColor = true;
|
|
btnCreateRect.Click += btnCreateRect_Click;
|
|
//
|
|
// btnStopDraw
|
|
//
|
|
btnStopDraw.Enabled = false;
|
|
btnStopDraw.Location = new Point(246, 3);
|
|
btnStopDraw.Name = "btnStopDraw";
|
|
btnStopDraw.Size = new Size(75, 30);
|
|
btnStopDraw.TabIndex = 2;
|
|
btnStopDraw.Text = "停止绘制";
|
|
btnStopDraw.UseVisualStyleBackColor = true;
|
|
btnStopDraw.Click += btnStopDraw_Click;
|
|
//
|
|
// btnTestOutsideDraw
|
|
//
|
|
btnTestOutsideDraw.Location = new Point(327, 3);
|
|
btnTestOutsideDraw.Name = "btnTestOutsideDraw";
|
|
btnTestOutsideDraw.Size = new Size(75, 30);
|
|
btnTestOutsideDraw.TabIndex = 3;
|
|
btnTestOutsideDraw.Text = "测试绘图";
|
|
btnTestOutsideDraw.UseVisualStyleBackColor = true;
|
|
btnTestOutsideDraw.Click += btnTestOutsideDraw_Click;
|
|
//
|
|
// btnTestClearDraw
|
|
//
|
|
btnTestClearDraw.Location = new Point(408, 3);
|
|
btnTestClearDraw.Name = "btnTestClearDraw";
|
|
btnTestClearDraw.Size = new Size(75, 30);
|
|
btnTestClearDraw.TabIndex = 4;
|
|
btnTestClearDraw.Text = "清除绘图";
|
|
btnTestClearDraw.UseVisualStyleBackColor = true;
|
|
btnTestClearDraw.Click += btnTestClearDraw_Click;
|
|
//
|
|
// btnTestCircleMeasure
|
|
//
|
|
btnTestCircleMeasure.Location = new Point(489, 3);
|
|
btnTestCircleMeasure.Name = "btnTestCircleMeasure";
|
|
btnTestCircleMeasure.Size = new Size(89, 30);
|
|
btnTestCircleMeasure.TabIndex = 5;
|
|
btnTestCircleMeasure.Text = "测试圆形算法";
|
|
btnTestCircleMeasure.UseVisualStyleBackColor = true;
|
|
btnTestCircleMeasure.Click += btnTestCircleMeasure_Click;
|
|
//
|
|
// btnTest
|
|
//
|
|
btnTest.Location = new Point(584, 3);
|
|
btnTest.Name = "btnTest";
|
|
btnTest.Size = new Size(89, 30);
|
|
btnTest.TabIndex = 7;
|
|
btnTest.Text = "测试";
|
|
btnTest.UseVisualStyleBackColor = true;
|
|
btnTest.Click += btnTest_Click;
|
|
//
|
|
// splitContainer
|
|
//
|
|
splitContainer.Dock = DockStyle.Fill;
|
|
splitContainer.Location = new Point(0, 40);
|
|
splitContainer.Name = "splitContainer";
|
|
//
|
|
// splitContainer.Panel1
|
|
//
|
|
splitContainer.Panel1.Controls.Add(panelGuide);
|
|
splitContainer.Panel1MinSize = 150;
|
|
//
|
|
// splitContainer.Panel2
|
|
//
|
|
splitContainer.Panel2.Controls.Add(panel1);
|
|
splitContainer.Size = new Size(1185, 791);
|
|
splitContainer.SplitterDistance = 234;
|
|
splitContainer.TabIndex = 3;
|
|
//
|
|
// panelGuide
|
|
//
|
|
panelGuide.BorderStyle = BorderStyle.FixedSingle;
|
|
panelGuide.Dock = DockStyle.Fill;
|
|
panelGuide.Location = new Point(0, 0);
|
|
panelGuide.Name = "panelGuide";
|
|
panelGuide.Size = new Size(234, 791);
|
|
panelGuide.TabIndex = 0;
|
|
//
|
|
// btnRotateTest
|
|
//
|
|
btnRotateTest.Location = new Point(679, 3);
|
|
btnRotateTest.Name = "btnRotateTest";
|
|
btnRotateTest.Size = new Size(89, 30);
|
|
btnRotateTest.TabIndex = 8;
|
|
btnRotateTest.Text = "测试旋转";
|
|
btnRotateTest.UseVisualStyleBackColor = true;
|
|
btnRotateTest.Click += btnRotateTest_Click;
|
|
//
|
|
// FrmMain
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 17F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(1185, 831);
|
|
Controls.Add(splitContainer);
|
|
Controls.Add(flowLayoutPanel1);
|
|
Name = "FrmMain";
|
|
Text = "Form1";
|
|
WindowState = FormWindowState.Maximized;
|
|
Load += FrmMain_Load;
|
|
panel1.ResumeLayout(false);
|
|
panel1.PerformLayout();
|
|
statusStrip1.ResumeLayout(false);
|
|
statusStrip1.PerformLayout();
|
|
flowLayoutPanel1.ResumeLayout(false);
|
|
splitContainer.Panel1.ResumeLayout(false);
|
|
splitContainer.Panel2.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)splitContainer).EndInit();
|
|
splitContainer.ResumeLayout(false);
|
|
ResumeLayout(false);
|
|
}
|
|
|
|
#endregion
|
|
private Panel panel1;
|
|
private FlowLayoutPanel flowLayoutPanel1;
|
|
private SplitContainer splitContainer;
|
|
private Panel panelGuide;
|
|
private Button btnLoadImage;
|
|
private Button btnCreateCircle;
|
|
private Button btnStopDraw;
|
|
private StatusStrip statusStrip1;
|
|
private Canvas.UI.FlyCanvas canvas;
|
|
private ToolStripStatusLabel lblStatus;
|
|
private Button btnTestOutsideDraw;
|
|
private Button btnTestClearDraw;
|
|
private Button btnTestCircleMeasure;
|
|
private Button btnCreateRect;
|
|
private Button btnTest;
|
|
private Button btnRotateTest;
|
|
}
|
|
}
|