551 lines
20 KiB
C#
551 lines
20 KiB
C#
namespace CanFly.UI.GuidePanel
|
||
{
|
||
partial class GuideLineCircleCtrl
|
||
{
|
||
/// <summary>
|
||
/// 必需的设计器变量
|
||
/// </summary>
|
||
private System.ComponentModel.IContainer components = null;
|
||
|
||
/// <summary>
|
||
/// 清理所有正在使用的资源
|
||
/// </summary>
|
||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false </param>
|
||
protected override void Dispose(bool disposing)
|
||
{
|
||
if (disposing && (components != null))
|
||
{
|
||
components.Dispose();
|
||
}
|
||
base.Dispose(disposing);
|
||
}
|
||
|
||
#region 组件设计器生成的代码
|
||
|
||
/// <summary>
|
||
/// 设计器支持所需的方法 - 不要修改
|
||
/// 使用代码编辑器修改此方法的内容
|
||
/// </summary>
|
||
private void InitializeComponent()
|
||
{
|
||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GuideLineCircleCtrl));
|
||
lblElapsed = new Label();
|
||
label4 = new Label();
|
||
splitContainer = new SplitContainer();
|
||
panelGuide = new Panel();
|
||
lblDistance = new Label();
|
||
label17 = new Label();
|
||
lblResult = new Label();
|
||
label15 = new Label();
|
||
btnCreateLine = new Button();
|
||
btnCreateCircle = new Button();
|
||
btnLoadImage = new Button();
|
||
label9 = new Label();
|
||
btnExecute = new Button();
|
||
label10 = new Label();
|
||
groupBox2 = new GroupBox();
|
||
NumRectWidth1 = new NumericUpDown();
|
||
label11 = new Label();
|
||
tbLineX2 = new TextBox();
|
||
label8 = new Label();
|
||
tbLineY2 = new TextBox();
|
||
label5 = new Label();
|
||
tbLineX1 = new TextBox();
|
||
tbLineY1 = new TextBox();
|
||
label6 = new Label();
|
||
label7 = new Label();
|
||
groupBox1 = new GroupBox();
|
||
tbCircleX = new TextBox();
|
||
tbCircleY = new TextBox();
|
||
tbCircleR = new TextBox();
|
||
label3 = new Label();
|
||
label2 = new Label();
|
||
label1 = new Label();
|
||
ctrlTitleBar = new CtrlTitleBar();
|
||
panel1 = new Panel();
|
||
canvas = new Canvas.UI.FlyCanvas();
|
||
statusStrip1 = new StatusStrip();
|
||
lblStatus = new ToolStripStatusLabel();
|
||
btnSave = new Button();
|
||
((System.ComponentModel.ISupportInitialize)splitContainer).BeginInit();
|
||
splitContainer.Panel1.SuspendLayout();
|
||
splitContainer.Panel2.SuspendLayout();
|
||
splitContainer.SuspendLayout();
|
||
panelGuide.SuspendLayout();
|
||
groupBox2.SuspendLayout();
|
||
((System.ComponentModel.ISupportInitialize)NumRectWidth1).BeginInit();
|
||
groupBox1.SuspendLayout();
|
||
panel1.SuspendLayout();
|
||
statusStrip1.SuspendLayout();
|
||
SuspendLayout();
|
||
//
|
||
// lblElapsed
|
||
//
|
||
lblElapsed.AutoSize = true;
|
||
lblElapsed.Location = new Point(50, 328);
|
||
lblElapsed.Name = "lblElapsed";
|
||
lblElapsed.Size = new Size(32, 17);
|
||
lblElapsed.TabIndex = 9;
|
||
lblElapsed.Text = "0ms";
|
||
//
|
||
// label4
|
||
//
|
||
label4.AutoSize = true;
|
||
label4.Location = new Point(0, 328);
|
||
label4.Name = "label4";
|
||
label4.Size = new Size(44, 17);
|
||
label4.TabIndex = 8;
|
||
label4.Text = "耗时:";
|
||
//
|
||
// splitContainer
|
||
//
|
||
splitContainer.Dock = DockStyle.Fill;
|
||
splitContainer.Location = new Point(0, 0);
|
||
splitContainer.Name = "splitContainer";
|
||
//
|
||
// splitContainer.Panel1
|
||
//
|
||
splitContainer.Panel1.Controls.Add(panelGuide);
|
||
splitContainer.Panel1MinSize = 150;
|
||
//
|
||
// splitContainer.Panel2
|
||
//
|
||
splitContainer.Panel2.Controls.Add(panel1);
|
||
splitContainer.Size = new Size(1280, 640);
|
||
splitContainer.SplitterDistance = 200;
|
||
splitContainer.TabIndex = 11;
|
||
//
|
||
// panelGuide
|
||
//
|
||
panelGuide.BorderStyle = BorderStyle.FixedSingle;
|
||
panelGuide.Controls.Add(btnSave);
|
||
panelGuide.Controls.Add(lblDistance);
|
||
panelGuide.Controls.Add(label17);
|
||
panelGuide.Controls.Add(lblResult);
|
||
panelGuide.Controls.Add(label15);
|
||
panelGuide.Controls.Add(btnCreateLine);
|
||
panelGuide.Controls.Add(btnCreateCircle);
|
||
panelGuide.Controls.Add(btnLoadImage);
|
||
panelGuide.Controls.Add(label9);
|
||
panelGuide.Controls.Add(btnExecute);
|
||
panelGuide.Controls.Add(label10);
|
||
panelGuide.Controls.Add(groupBox2);
|
||
panelGuide.Controls.Add(groupBox1);
|
||
panelGuide.Controls.Add(ctrlTitleBar);
|
||
panelGuide.Dock = DockStyle.Fill;
|
||
panelGuide.Location = new Point(0, 0);
|
||
panelGuide.Name = "panelGuide";
|
||
panelGuide.Size = new Size(200, 640);
|
||
panelGuide.TabIndex = 0;
|
||
//
|
||
// lblDistance
|
||
//
|
||
lblDistance.AutoSize = true;
|
||
lblDistance.Location = new Point(54, 505);
|
||
lblDistance.Name = "lblDistance";
|
||
lblDistance.Size = new Size(15, 17);
|
||
lblDistance.TabIndex = 29;
|
||
lblDistance.Text = "0";
|
||
//
|
||
// label17
|
||
//
|
||
label17.AutoSize = true;
|
||
label17.Location = new Point(6, 505);
|
||
label17.Name = "label17";
|
||
label17.Size = new Size(44, 17);
|
||
label17.TabIndex = 28;
|
||
label17.Text = "距离:";
|
||
//
|
||
// lblResult
|
||
//
|
||
lblResult.AutoSize = true;
|
||
lblResult.Location = new Point(54, 479);
|
||
lblResult.Name = "lblResult";
|
||
lblResult.Size = new Size(20, 17);
|
||
lblResult.TabIndex = 27;
|
||
lblResult.Text = "无";
|
||
//
|
||
// label15
|
||
//
|
||
label15.AutoSize = true;
|
||
label15.Location = new Point(6, 479);
|
||
label15.Name = "label15";
|
||
label15.Size = new Size(44, 17);
|
||
label15.TabIndex = 26;
|
||
label15.Text = "结果:";
|
||
//
|
||
// btnCreateLine
|
||
//
|
||
btnCreateLine.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||
btnCreateLine.Location = new Point(6, 406);
|
||
btnCreateLine.Name = "btnCreateLine";
|
||
btnCreateLine.Size = new Size(186, 32);
|
||
btnCreateLine.TabIndex = 20;
|
||
btnCreateLine.Text = "创建直线";
|
||
btnCreateLine.UseVisualStyleBackColor = true;
|
||
btnCreateLine.Click += btnCreateLine_Click;
|
||
//
|
||
// btnCreateCircle
|
||
//
|
||
btnCreateCircle.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||
btnCreateCircle.Location = new Point(6, 368);
|
||
btnCreateCircle.Name = "btnCreateCircle";
|
||
btnCreateCircle.Size = new Size(186, 32);
|
||
btnCreateCircle.TabIndex = 19;
|
||
btnCreateCircle.Text = "创建圆形";
|
||
btnCreateCircle.UseVisualStyleBackColor = true;
|
||
btnCreateCircle.Click += btnCreateCircle_Click;
|
||
//
|
||
// btnLoadImage
|
||
//
|
||
btnLoadImage.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||
btnLoadImage.Location = new Point(6, 330);
|
||
btnLoadImage.Name = "btnLoadImage";
|
||
btnLoadImage.Size = new Size(186, 32);
|
||
btnLoadImage.TabIndex = 18;
|
||
btnLoadImage.Text = "打开图片";
|
||
btnLoadImage.UseVisualStyleBackColor = true;
|
||
btnLoadImage.Click += btnLoadImage_Click;
|
||
//
|
||
// label9
|
||
//
|
||
label9.AutoSize = true;
|
||
label9.Location = new Point(56, 525);
|
||
label9.Name = "label9";
|
||
label9.Size = new Size(32, 17);
|
||
label9.TabIndex = 17;
|
||
label9.Text = "0ms";
|
||
//
|
||
// btnExecute
|
||
//
|
||
btnExecute.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||
btnExecute.Location = new Point(6, 444);
|
||
btnExecute.Name = "btnExecute";
|
||
btnExecute.Size = new Size(186, 32);
|
||
btnExecute.TabIndex = 15;
|
||
btnExecute.Text = "执行";
|
||
btnExecute.UseVisualStyleBackColor = true;
|
||
btnExecute.Click += btnExecute_Click;
|
||
//
|
||
// label10
|
||
//
|
||
label10.AutoSize = true;
|
||
label10.Location = new Point(6, 525);
|
||
label10.Name = "label10";
|
||
label10.Size = new Size(44, 17);
|
||
label10.TabIndex = 16;
|
||
label10.Text = "耗时:";
|
||
//
|
||
// groupBox2
|
||
//
|
||
groupBox2.Controls.Add(NumRectWidth1);
|
||
groupBox2.Controls.Add(label11);
|
||
groupBox2.Controls.Add(tbLineX2);
|
||
groupBox2.Controls.Add(label8);
|
||
groupBox2.Controls.Add(tbLineY2);
|
||
groupBox2.Controls.Add(label5);
|
||
groupBox2.Controls.Add(tbLineX1);
|
||
groupBox2.Controls.Add(tbLineY1);
|
||
groupBox2.Controls.Add(label6);
|
||
groupBox2.Controls.Add(label7);
|
||
groupBox2.Dock = DockStyle.Top;
|
||
groupBox2.Location = new Point(0, 152);
|
||
groupBox2.Name = "groupBox2";
|
||
groupBox2.Size = new Size(198, 172);
|
||
groupBox2.TabIndex = 13;
|
||
groupBox2.TabStop = false;
|
||
groupBox2.Text = "线参数";
|
||
//
|
||
// NumRectWidth1
|
||
//
|
||
NumRectWidth1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||
NumRectWidth1.Location = new Point(56, 138);
|
||
NumRectWidth1.Maximum = new decimal(new int[] { 9000, 0, 0, 0 });
|
||
NumRectWidth1.Minimum = new decimal(new int[] { 1, 0, 0, 0 });
|
||
NumRectWidth1.Name = "NumRectWidth1";
|
||
NumRectWidth1.Size = new Size(136, 23);
|
||
NumRectWidth1.TabIndex = 13;
|
||
NumRectWidth1.Value = new decimal(new int[] { 1, 0, 0, 0 });
|
||
//
|
||
// label11
|
||
//
|
||
label11.AutoSize = true;
|
||
label11.Location = new Point(6, 140);
|
||
label11.Name = "label11";
|
||
label11.Size = new Size(35, 17);
|
||
label11.TabIndex = 12;
|
||
label11.Text = "宽度:";
|
||
//
|
||
// tbLineX2
|
||
//
|
||
tbLineX2.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||
tbLineX2.Location = new Point(56, 80);
|
||
tbLineX2.Name = "tbLineX2";
|
||
tbLineX2.Size = new Size(136, 23);
|
||
tbLineX2.TabIndex = 9;
|
||
//
|
||
// label8
|
||
//
|
||
label8.AutoSize = true;
|
||
label8.Location = new Point(6, 83);
|
||
label8.Name = "label8";
|
||
label8.Size = new Size(26, 17);
|
||
label8.TabIndex = 8;
|
||
label8.Text = "X2:";
|
||
//
|
||
// tbLineY2
|
||
//
|
||
tbLineY2.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||
tbLineY2.Location = new Point(56, 109);
|
||
tbLineY2.Name = "tbLineY2";
|
||
tbLineY2.Size = new Size(136, 23);
|
||
tbLineY2.TabIndex = 7;
|
||
//
|
||
// label5
|
||
//
|
||
label5.AutoSize = true;
|
||
label5.Location = new Point(6, 112);
|
||
label5.Name = "label5";
|
||
label5.Size = new Size(25, 17);
|
||
label5.TabIndex = 6;
|
||
label5.Text = "Y2:";
|
||
//
|
||
// tbLineX1
|
||
//
|
||
tbLineX1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||
tbLineX1.Location = new Point(56, 22);
|
||
tbLineX1.Name = "tbLineX1";
|
||
tbLineX1.Size = new Size(136, 23);
|
||
tbLineX1.TabIndex = 5;
|
||
//
|
||
// tbLineY1
|
||
//
|
||
tbLineY1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||
tbLineY1.Location = new Point(56, 51);
|
||
tbLineY1.Name = "tbLineY1";
|
||
tbLineY1.Size = new Size(136, 23);
|
||
tbLineY1.TabIndex = 4;
|
||
//
|
||
// label6
|
||
//
|
||
label6.AutoSize = true;
|
||
label6.Location = new Point(6, 54);
|
||
label6.Name = "label6";
|
||
label6.Size = new Size(25, 17);
|
||
label6.TabIndex = 1;
|
||
label6.Text = "Y1:";
|
||
//
|
||
// label7
|
||
//
|
||
label7.AutoSize = true;
|
||
label7.Location = new Point(6, 25);
|
||
label7.Name = "label7";
|
||
label7.Size = new Size(26, 17);
|
||
label7.TabIndex = 0;
|
||
label7.Text = "X1:";
|
||
//
|
||
// groupBox1
|
||
//
|
||
groupBox1.Controls.Add(tbCircleX);
|
||
groupBox1.Controls.Add(tbCircleY);
|
||
groupBox1.Controls.Add(tbCircleR);
|
||
groupBox1.Controls.Add(label3);
|
||
groupBox1.Controls.Add(label2);
|
||
groupBox1.Controls.Add(label1);
|
||
groupBox1.Dock = DockStyle.Top;
|
||
groupBox1.Location = new Point(0, 36);
|
||
groupBox1.Name = "groupBox1";
|
||
groupBox1.Size = new Size(198, 116);
|
||
groupBox1.TabIndex = 12;
|
||
groupBox1.TabStop = false;
|
||
groupBox1.Text = "圆参数";
|
||
//
|
||
// tbCircleX
|
||
//
|
||
tbCircleX.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||
tbCircleX.Location = new Point(56, 22);
|
||
tbCircleX.Name = "tbCircleX";
|
||
tbCircleX.Size = new Size(136, 23);
|
||
tbCircleX.TabIndex = 5;
|
||
//
|
||
// tbCircleY
|
||
//
|
||
tbCircleY.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||
tbCircleY.Location = new Point(56, 51);
|
||
tbCircleY.Name = "tbCircleY";
|
||
tbCircleY.Size = new Size(136, 23);
|
||
tbCircleY.TabIndex = 4;
|
||
//
|
||
// tbCircleR
|
||
//
|
||
tbCircleR.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||
tbCircleR.Location = new Point(56, 80);
|
||
tbCircleR.Name = "tbCircleR";
|
||
tbCircleR.Size = new Size(136, 23);
|
||
tbCircleR.TabIndex = 3;
|
||
//
|
||
// label3
|
||
//
|
||
label3.AutoSize = true;
|
||
label3.Location = new Point(3, 83);
|
||
label3.Name = "label3";
|
||
label3.Size = new Size(44, 17);
|
||
label3.TabIndex = 2;
|
||
label3.Text = "半径:";
|
||
//
|
||
// label2
|
||
//
|
||
label2.AutoSize = true;
|
||
label2.Location = new Point(6, 54);
|
||
label2.Name = "label2";
|
||
label2.Size = new Size(18, 17);
|
||
label2.TabIndex = 1;
|
||
label2.Text = "Y:";
|
||
//
|
||
// label1
|
||
//
|
||
label1.AutoSize = true;
|
||
label1.Location = new Point(6, 25);
|
||
label1.Name = "label1";
|
||
label1.Size = new Size(19, 17);
|
||
label1.TabIndex = 0;
|
||
label1.Text = "X:";
|
||
//
|
||
// ctrlTitleBar
|
||
//
|
||
ctrlTitleBar.Dock = DockStyle.Top;
|
||
ctrlTitleBar.Location = new Point(0, 0);
|
||
ctrlTitleBar.MinimumSize = new Size(0, 36);
|
||
ctrlTitleBar.Name = "ctrlTitleBar";
|
||
ctrlTitleBar.Padding = new Padding(3);
|
||
ctrlTitleBar.Size = new Size(198, 36);
|
||
ctrlTitleBar.TabIndex = 11;
|
||
ctrlTitleBar.Title = "线圆测量";
|
||
//
|
||
// 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(1076, 640);
|
||
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(1074, 616);
|
||
canvas.TabIndex = 2;
|
||
//
|
||
// statusStrip1
|
||
//
|
||
statusStrip1.Items.AddRange(new ToolStripItem[] { lblStatus });
|
||
statusStrip1.Location = new Point(0, 616);
|
||
statusStrip1.Name = "statusStrip1";
|
||
statusStrip1.Size = new Size(1074, 22);
|
||
statusStrip1.TabIndex = 1;
|
||
statusStrip1.Text = "statusStrip1";
|
||
//
|
||
// lblStatus
|
||
//
|
||
lblStatus.Name = "lblStatus";
|
||
lblStatus.Size = new Size(44, 17);
|
||
lblStatus.Text = " ";
|
||
//
|
||
// btnSave
|
||
//
|
||
btnSave.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||
btnSave.Location = new Point(6, 545);
|
||
btnSave.Name = "btnSave";
|
||
btnSave.Size = new Size(186, 32);
|
||
btnSave.TabIndex = 30;
|
||
btnSave.Text = "保存数据";
|
||
btnSave.UseVisualStyleBackColor = true;
|
||
btnSave.Click += btnSave_Click;
|
||
//
|
||
// GuideLineCircleCtrl
|
||
//
|
||
AutoScaleDimensions = new SizeF(7F, 17F);
|
||
AutoScaleMode = AutoScaleMode.Font;
|
||
Controls.Add(splitContainer);
|
||
Controls.Add(lblElapsed);
|
||
Controls.Add(label4);
|
||
Name = "GuideLineCircleCtrl";
|
||
Size = new Size(1280, 640);
|
||
Load += GuideLineCircleCtrl_Load;
|
||
splitContainer.Panel1.ResumeLayout(false);
|
||
splitContainer.Panel2.ResumeLayout(false);
|
||
((System.ComponentModel.ISupportInitialize)splitContainer).EndInit();
|
||
splitContainer.ResumeLayout(false);
|
||
panelGuide.ResumeLayout(false);
|
||
panelGuide.PerformLayout();
|
||
groupBox2.ResumeLayout(false);
|
||
groupBox2.PerformLayout();
|
||
((System.ComponentModel.ISupportInitialize)NumRectWidth1).EndInit();
|
||
groupBox1.ResumeLayout(false);
|
||
groupBox1.PerformLayout();
|
||
panel1.ResumeLayout(false);
|
||
panel1.PerformLayout();
|
||
statusStrip1.ResumeLayout(false);
|
||
statusStrip1.PerformLayout();
|
||
ResumeLayout(false);
|
||
PerformLayout();
|
||
}
|
||
|
||
#endregion
|
||
|
||
private Label lblElapsed;
|
||
private Label label4;
|
||
|
||
private SplitContainer splitContainer;
|
||
private Panel panelGuide;
|
||
private Panel panel1;
|
||
private Canvas.UI.FlyCanvas canvas;
|
||
private StatusStrip statusStrip1;
|
||
private ToolStripStatusLabel lblStatus;
|
||
private GroupBox groupBox2;
|
||
private TextBox tbLineX2;
|
||
private Label label8;
|
||
private TextBox tbLineY2;
|
||
private Label label5;
|
||
private TextBox tbLineX1;
|
||
private TextBox tbLineY1;
|
||
private Label label6;
|
||
private Label label7;
|
||
private GroupBox groupBox1;
|
||
private TextBox tbCircleX;
|
||
private TextBox tbCircleY;
|
||
private TextBox tbCircleR;
|
||
private Label label3;
|
||
private Label label2;
|
||
private Label label1;
|
||
private CtrlTitleBar ctrlTitleBar;
|
||
private Button btnCreateCircle;
|
||
private Button btnLoadImage;
|
||
private Label label9;
|
||
private Button btnExecute;
|
||
private Label label10;
|
||
private Button btnCreateLine;
|
||
private TextBox tbRectWidth1;
|
||
private Label label11;
|
||
private NumericUpDown NumRectWidth1;
|
||
private Label lblDistance;
|
||
private Label label17;
|
||
private Label lblResult;
|
||
private Label label15;
|
||
private Button btnSave;
|
||
}
|
||
}
|