using PaintDotNet.Annotation;
using PaintDotNet.Annotation.Enum;
using PaintDotNet.Annotation.FieldView;
using PaintDotNet.DbOpreate.DbBll;
using PaintDotNet.DbOpreate.DbModel;
using System;
using System.Drawing;
using System.Windows.Forms;
namespace PaintDotNet.FieldView
{
///
/// 修改视场
///
internal class ChangeViewDialog : FloatingToolForm//PdnBaseForm
{
///
/// 主工作控件
///
private AppWorkspace appWorkspace;
///
/// 当前选中的视场
///
private DrawObject _selectedObject;
///
/// 旧中心点X坐标值
///
private int _lastCenterX;
///
/// 旧中心点Y坐标值
///
private int _lastCenterY;
///
/// 初始化标记
/// 1、用于第一次打开窗口时
/// 2、用于切换视场事件被触发时
///
private bool init = true;
double PxPerUnit => double.Parse(appWorkspace.GetPxPerUnit()[4]);
double WidthValue
{
get
{
var value = 0d;
double.TryParse(nudActualWidth.Text, out value);
return value;
}
set
{
nudActualWidth.Text = Math.Round(value > 1 ? value : 1, 2).ToString();
}
}
double HeightValue
{
get
{
var value = 0d;
double.TryParse(nudActualHeight.Text, out value);
return value;
}
set
{
nudActualHeight.Text = Math.Round(value > 1 ? value : 1, 2).ToString("f2");
}
}
double WidthPxValue
{
get
{
var value = 0d;
double.TryParse(lblPixelWidth.Text, out value);
return value;
}
set
{
lblPixelWidth.Text = Math.Round(value > 1 ? value : 1, 0).ToString();
}
}
double HeightPxValue
{
get
{
var value = 0d;
double.TryParse(lblPixelHeight.Text, out value);
return value;
}
set
{
lblPixelHeight.Text = Math.Round(value > 0 ? value : 0, 0).ToString();
}
}
int CenterX
{
get
{
var value = 0;
int.TryParse(nudCenterX.Text, out value);
return value;
}
set
{
nudCenterX.Text = value.ToString();
}
}
int CenterY
{
get
{
var value = 0;
int.TryParse(nudCenterY.Text, out value);
return value;
}
set
{
nudCenterY.Text = value.ToString();
}
}
public ChangeViewDialog(AppWorkspace appWorkspace)
{
this.appWorkspace = appWorkspace;
InitializeComponent();
InitializeLanguageText();
this._selectedObject = this.appWorkspace.ActiveDocumentWorkspace.GraphicsList.SelectDrawObject;
this.appWorkspace.ActiveDocumentWorkspace.GraphicsList.SelectChanged += this.graphicsList_SelectChanged;
this.FormClosing += (s, e) => this.appWorkspace.ActiveDocumentWorkspace.GraphicsList.SelectChanged -= this.graphicsList_SelectChanged;
InitControl();
nudActualWidth.MouseWheel += NudActualWidth_MouseWheel;
nudActualHeight.MouseWheel += NudActualHeight_MouseWheel;
nudCenterX.MouseWheel += nudCenterX_MouseWheel;
nudCenterY.MouseWheel += nudCenterY_MouseWheel;
}
///
/// 初始化控件及其值
///
private void InitControl()
{
if (_selectedObject != null)
{
if (this.appWorkspace.ActiveDocumentWorkspace.xmlSaveModel != null)
{
this.label2.Text = PdnResources.GetString("Menu.LabelAction.DrawGainNumber.Text") + ":" + this.appWorkspace.ActiveDocumentWorkspace.xmlSaveModel.gain_multiple;
}
else
{
this.label2.Text = PdnResources.GetString("Menu.ationrulcurrentlydefaultvalueis.Text");
}
DrawToolType type = _selectedObject.drawToolType;
InitializeText(type);
InitializeHide(type);
InitializeValues(type);
EndSizeChange();
init = false;
}
}
private void InitializeText(DrawToolType type)
{
this.lblWidth.Text = PdnResources.GetString("Menu.width.text");
this.lblWidthPx.Text = PdnResources.GetString("Menu.width.text");
this.lblHeight.Text = PdnResources.GetString("Menu.height.text");
this.lblHeightPx.Text = PdnResources.GetString("Menu.height.text");
label4.Text = "μm";
switch (type)
{
case DrawToolType.ViewOval:
this.label1.Text = PdnResources.GetString("Menu.ViewSetting.OvalView.Text");
this.lblWidth.Text = PdnResources.GetString("Menu.horizontalaxis.Text");
this.lblWidthPx.Text = PdnResources.GetString("Menu.horizontalaxis.Text");
this.lblHeight.Text = PdnResources.GetString("Menu.verticalaxis.Text");
this.lblHeightPx.Text = PdnResources.GetString("Menu.verticalaxis.Text");
break;
case DrawToolType.ViewCircle:
this.label1.Text = PdnResources.GetString("Menu.ViewSetting.RoundView.Text");
this.lblHeight.Text = PdnResources.GetString("Menu.area.text");
this.lblWidth.Text = PdnResources.GetString("Menu.diameter.text");
this.lblWidthPx.Text = PdnResources.GetString("Menu.diameter.text");
this.lblHeightPx.Text = PdnResources.GetString("Menu.height.text");
label4.Text = "μm²";
break;
case DrawToolType.ViewRectangleEx:
this.label1.Text = PdnResources.GetString("Menu.ViewSetting.RectangleExView.Text");
break;
case DrawToolType.ViewPolygon:
this.label1.Text = PdnResources.GetString("Menu.ViewSetting.PolygonView.Text");
break;
case DrawToolType.ViewRectangle:
this.label1.Text = PdnResources.GetString("Menu.ViewSetting.RectangleView.Text");
break;
case DrawToolType.ViewTriangle:
this.label1.Text = PdnResources.GetString("Menu.ViewSetting.TriangleView.Text");
this.lblWidth.Text = PdnResources.GetString("Menu.Horizontalsidelength.Text");
this.lblWidthPx.Text = PdnResources.GetString("Menu.Horizontalsidelength.Text");
this.lblHeight.Text = PdnResources.GetString("Menu.Verticalsidelength.Text");
this.lblHeightPx.Text = PdnResources.GetString("Menu.Verticalsidelength.Text");
break;
case DrawToolType.ViewTriangleEx:
this.label1.Text = PdnResources.GetString("Menu.ViewSetting.TriangleExView.Text");
break;
case DrawToolType.ViewSquare:
this.label1.Text = PdnResources.GetString("Menu.ViewSetting.SquareView.Text");
this.lblWidth.Text = PdnResources.GetString("Menu.Generalanalysis.Processmparison.Sidelength.text");
this.lblHeight.Text = PdnResources.GetString("Menu.area.text");
lblWidthPx.Text = PdnResources.GetString("Menu.Generalanalysis.Processmparison.Sidelength.text");
label4.Text = "μm²";
break;
}
}
private void InitializeValues(DrawToolType type)
{
WidthValue = _selectedObject.Width * PxPerUnit;
HeightValue = _selectedObject.Height * PxPerUnit;
WidthPxValue = _selectedObject.Width;
HeightPxValue = _selectedObject.Height;
switch (type)
{
case DrawToolType.ViewCircle:
HeightValue = GetCircleArea();
break;
case DrawToolType.ViewSquare:
HeightValue = GetSquareArea();
break;
}
}
private void InitializeHide(DrawToolType type)
{
lblHeightPx.Visible = true;
lblPixelHeight.Visible = true;
lblPixelHeightUnit.Visible = true;
nudActualWidth.Enabled = true;
nudActualWidth.Enabled = true;
switch (type)
{
case DrawToolType.ViewSquare:
case DrawToolType.ViewCircle:
lblHeightPx.Visible = false;
lblPixelHeight.Visible = false;
lblPixelHeightUnit.Visible = false;
break;
case DrawToolType.ViewRectangleEx:
case DrawToolType.ViewTriangleEx:
case DrawToolType.ViewPolygon:
nudActualWidth.Enabled = false;
nudActualHeight.Enabled = false;
break;
}
}
double GetCircleArea()
{
var value = _selectedObject.Width * PxPerUnit;
value = value * value / 4 * Math.PI;
return value;
}
double GetSquareArea()
{
var value = _selectedObject.Width * PxPerUnit;
value = value * value;
return value;
}
private void disabledControl()
{
this.nudActualHeight.Enabled = false;
this.nudActualWidth.Enabled = false;
this.nudCenterX.Enabled = false;
this.nudCenterY.Enabled = false;
}
private void enabledControl(DrawToolType drawToolType)
{
//如果是多边形或者任意三角形,没有边长什么的,所以不允许编辑
if (drawToolType != DrawToolType.ViewPolygon && drawToolType != DrawToolType.ViewTriangleEx)
{
this.nudActualHeight.Enabled = true;
this.nudActualWidth.Enabled = true;
}
this.nudCenterX.Enabled = true;
this.nudCenterY.Enabled = true;
}
///
/// 视场对象改变事件
///
///
///
private void graphicsList_SelectChanged(object sender, EventArgs e)
{
this._selectedObject = this.appWorkspace.ActiveDocumentWorkspace.GraphicsList.SelectDrawObject;
if (_selectedObject == null || _selectedObject.objectType != DrawClass.View)
{
disabledControl();
}
else
{
enabledControl(_selectedObject.drawToolType);
init = true;
this._selectedObject.PropertyChanged -= this.selectedObject_PropertyChanged;
InitControl();
this._selectedObject.PropertyChanged += this.selectedObject_PropertyChanged;
}
}
///
/// 选中的视场的属性改变事件
///
///
///
private void selectedObject_PropertyChanged(object sender, EventArgs e)
{
InitControl();
}
bool CheckFloat(TextBox input, KeyPressEventArgs e)
{
if (e.KeyChar == (char)Keys.Delete)
{
if (input.Text.Contains("."))
return true;
}
else if (!char.IsDigit(e.KeyChar) && (e.KeyChar != (char)Keys.Enter) && (e.KeyChar != (char)Keys.Back)) // 非数字键, 放弃该输入
{
return true;
}
return false;
}
private void NudActualWidth_MouseWheel(object sender, MouseEventArgs e)
{
WidthValue += e.Delta > 0 ? 1 : -1;
ActualWidthChanged();
}
private void nudActualWidth_KeyPress(object sender, KeyPressEventArgs e)
{
TextBox input = sender as TextBox;
var r = CheckFloat(input, e);
if (r) { e.Handled = true; return; }
if (e.KeyChar == (char)Keys.Enter)
{
ActualWidthChanged();
}
}
private void ActualWidthChanged()
{
double value = WidthValue;
value = value / PxPerUnit;
_selectedObject.Width = value;
WidthPxValue = value;
if (_selectedObject.drawToolType == DrawToolType.ViewCircle) HeightValue = GetCircleArea();
if (_selectedObject.drawToolType == DrawToolType.ViewSquare) HeightValue = GetSquareArea();
EndSizeChange();
}
private void NudActualHeight_MouseWheel(object sender, MouseEventArgs e)
{
HeightValue += e.Delta > 0 ? 1 : -1;
ActualHeigthChanged();
}
private void nudActualHeight_KeyPress(object sender, KeyPressEventArgs e)
{
TextBox input = sender as TextBox;
var r = CheckFloat(input, e);
if (r) { e.Handled = true; return; }
if (e.KeyChar == (char)Keys.Enter)
{
ActualHeigthChanged();
}
}
///
/// 高度 或 面积 修改
///
private void ActualHeigthChanged()
{
double value = HeightValue;
if (_selectedObject.drawToolType == DrawToolType.ViewCircle)
{
value = WidthValue = Math.Sqrt(value / Math.PI) * 2;
WidthValue = value;
_selectedObject.Width = value / PxPerUnit;
WidthPxValue = value / PxPerUnit;
}
else if (_selectedObject.drawToolType == DrawToolType.ViewSquare)
{
value = Math.Sqrt(value);
WidthValue = value;
_selectedObject.Width = value / PxPerUnit;
WidthPxValue = value / PxPerUnit;
}
else
{
value = value / PxPerUnit;
_selectedObject.Height = value;
HeightPxValue = value;
}
EndSizeChange();
}
bool CheckInt(TextBox input, KeyPressEventArgs e)
{
if (!char.IsDigit(e.KeyChar) && (e.KeyChar != (char)Keys.Enter) && (e.KeyChar != (char)Keys.Back)) // 非数字键, 放弃该输入
{
return true;
}
return false;
}
private void nudCenterX_KeyPress(object sender, KeyPressEventArgs e)
{
TextBox input = sender as TextBox;
var r = CheckInt(input, e);
if (r) { e.Handled = true; return; }
if (e.KeyChar == (char)Keys.Enter)
{
DrawObjectMove();
}
}
private void nudCenterX_MouseWheel(object sender, MouseEventArgs e)
{
CenterX += e.Delta > 0 ? 1 : -1;
DrawObjectMove();
}
private void nudCenterY_MouseWheel(object sender, MouseEventArgs e)
{
CenterY += e.Delta > 0 ? 1 : -1;
DrawObjectMove();
}
void DrawObjectMove()
{
if (_selectedObject == null) return;
if (this._lastCenterY != CenterY)
{
int deltaY = CenterY - this._lastCenterY;
this._selectedObject.Move(0, deltaY);
this._lastCenterY = CenterY;
}
if (this._lastCenterX != CenterX)
{
int deltaX = CenterX - this._lastCenterX;
this._selectedObject.Move(deltaX, 0);
this._lastCenterX = CenterX;
}
this._selectedObject.Normalize();
this.appWorkspace.ActiveDocumentWorkspace.Refresh();
}
private void EndSizeChange()
{
this.appWorkspace.ActiveDocumentWorkspace.Refresh();
int centerX = (int)(_selectedObject.Rectangle.X + Math.Abs(_selectedObject.Rectangle.Width / 2));
int centerY = (int)(_selectedObject.Rectangle.Y + Math.Abs(_selectedObject.Rectangle.Height / 2));
this._lastCenterX = centerX;
this._lastCenterY = centerY;
CenterX = centerX;
CenterY = centerY;
}
private void InitializeLanguageText()
{
// this.unit = PdnResources.GetString("Menu.Micron.text");
this.groupBox2.Text = PdnResources.GetString("Menu.view.text");
this.groupBox3.Text = PdnResources.GetString("Menu.Ruler.text");
this.groupBox4.Text = PdnResources.GetString("Menu.Edit.ActualSize.Text");
this.groupBox5.Text = PdnResources.GetString("Menu.viewsetting.Modifyview.Visualsize.text");
this.groupBox6.Text = PdnResources.GetString("Menu.position.text");
this.label5.Text = PdnResources.GetString("Menu.viewsetting.Modifyview.Centerpoint.text") + "Y";
this.Text = PdnResources.GetString("Menu.ViewSetting.ModifyFieldOfView.Text");
this.label6.Text = PdnResources.GetString("Menu.viewsetting.Modifyview.Centerpoint.text") + "X";
}
private void InitializeComponent()
{
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.label1 = new System.Windows.Forms.Label();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.label2 = new System.Windows.Forms.Label();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.nudActualWidth = new System.Windows.Forms.TextBox();
this.nudActualHeight = new System.Windows.Forms.TextBox();
this.lblWidth = new System.Windows.Forms.Label();
this.lblHeight = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.lblHeightPx = new System.Windows.Forms.Label();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.lblPixelWidth = new System.Windows.Forms.Label();
this.lblPixelHeight = new System.Windows.Forms.Label();
this.lblWidthPx = new System.Windows.Forms.Label();
this.lblPixelHeightUnit = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.nudCenterY = new System.Windows.Forms.TextBox();
this.nudCenterX = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox5.SuspendLayout();
this.groupBox6.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// groupBox2
//
this.groupBox2.Controls.Add(this.label1);
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox2.Location = new System.Drawing.Point(3, 3);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(424, 46);
this.groupBox2.TabIndex = 2;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "视场";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(7, 22);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 0;
this.label1.Text = "label1";
//
// groupBox3
//
this.groupBox3.Controls.Add(this.label2);
this.groupBox3.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox3.Location = new System.Drawing.Point(3, 55);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(424, 46);
this.groupBox3.TabIndex = 3;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "标尺";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(9, 21);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(41, 12);
this.label2.TabIndex = 0;
this.label2.Text = "label2";
//
// groupBox4
//
this.groupBox4.Controls.Add(this.nudActualWidth);
this.groupBox4.Controls.Add(this.nudActualHeight);
this.groupBox4.Controls.Add(this.lblWidth);
this.groupBox4.Controls.Add(this.lblHeight);
this.groupBox4.Controls.Add(this.label3);
this.groupBox4.Controls.Add(this.label4);
this.groupBox4.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox4.Location = new System.Drawing.Point(3, 107);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(424, 46);
this.groupBox4.TabIndex = 4;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "实际大小";
//
// nudActualWidth
//
this.nudActualWidth.Location = new System.Drawing.Point(60, 22);
this.nudActualWidth.Name = "nudActualWidth";
this.nudActualWidth.Size = new System.Drawing.Size(111, 21);
this.nudActualWidth.TabIndex = 10;
this.nudActualWidth.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.nudActualWidth.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.nudActualWidth_KeyPress);
//
// nudActualHeight
//
this.nudActualHeight.Location = new System.Drawing.Point(275, 22);
this.nudActualHeight.Name = "nudActualHeight";
this.nudActualHeight.Size = new System.Drawing.Size(111, 21);
this.nudActualHeight.TabIndex = 9;
this.nudActualHeight.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.nudActualHeight.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.nudActualHeight_KeyPress);
//
// lblWidth
//
this.lblWidth.AutoSize = true;
this.lblWidth.Location = new System.Drawing.Point(9, 26);
this.lblWidth.Name = "lblWidth";
this.lblWidth.Size = new System.Drawing.Size(29, 12);
this.lblWidth.TabIndex = 7;
this.lblWidth.Text = "宽度";
//
// lblHeight
//
this.lblHeight.AutoSize = true;
this.lblHeight.Location = new System.Drawing.Point(222, 26);
this.lblHeight.Name = "lblHeight";
this.lblHeight.Size = new System.Drawing.Size(29, 12);
this.lblHeight.TabIndex = 9;
this.lblHeight.Text = "高度";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(174, 28);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(23, 12);
this.label3.TabIndex = 11;
this.label3.Text = "μm";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(388, 28);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(29, 12);
this.label4.TabIndex = 12;
this.label4.Text = "μm²";
//
// lblHeightPx
//
this.lblHeightPx.AutoSize = true;
this.lblHeightPx.Location = new System.Drawing.Point(222, 25);
this.lblHeightPx.Name = "lblHeightPx";
this.lblHeightPx.Size = new System.Drawing.Size(41, 12);
this.lblHeightPx.TabIndex = 0;
this.lblHeightPx.Text = "Height";
//
// groupBox5
//
this.groupBox5.Controls.Add(this.lblPixelWidth);
this.groupBox5.Controls.Add(this.lblPixelHeight);
this.groupBox5.Controls.Add(this.lblWidthPx);
this.groupBox5.Controls.Add(this.lblHeightPx);
this.groupBox5.Controls.Add(this.lblPixelHeightUnit);
this.groupBox5.Controls.Add(this.label7);
this.groupBox5.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox5.Location = new System.Drawing.Point(3, 159);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(424, 46);
this.groupBox5.TabIndex = 5;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "视觉大小";
//
// lblPixelWidth
//
this.lblPixelWidth.Location = new System.Drawing.Point(60, 25);
this.lblPixelWidth.Name = "lblPixelWidth";
this.lblPixelWidth.Size = new System.Drawing.Size(111, 10);
this.lblPixelWidth.TabIndex = 13;
this.lblPixelWidth.Text = "133";
this.lblPixelWidth.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// lblPixelHeight
//
this.lblPixelHeight.Location = new System.Drawing.Point(273, 25);
this.lblPixelHeight.Name = "lblPixelHeight";
this.lblPixelHeight.Size = new System.Drawing.Size(113, 12);
this.lblPixelHeight.TabIndex = 12;
this.lblPixelHeight.Text = "sdfasdf";
this.lblPixelHeight.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// lblWidthPx
//
this.lblWidthPx.AutoSize = true;
this.lblWidthPx.Location = new System.Drawing.Point(9, 25);
this.lblWidthPx.Name = "lblWidthPx";
this.lblWidthPx.Size = new System.Drawing.Size(29, 12);
this.lblWidthPx.TabIndex = 11;
this.lblWidthPx.Text = "宽度";
//
// lblPixelHeightUnit
//
this.lblPixelHeightUnit.AutoSize = true;
this.lblPixelHeightUnit.Location = new System.Drawing.Point(388, 25);
this.lblPixelHeightUnit.Name = "lblPixelHeightUnit";
this.lblPixelHeightUnit.Size = new System.Drawing.Size(17, 12);
this.lblPixelHeightUnit.TabIndex = 13;
this.lblPixelHeightUnit.Text = "px";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(174, 25);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(17, 12);
this.label7.TabIndex = 13;
this.label7.Text = "px";
//
// groupBox6
//
this.groupBox6.Controls.Add(this.nudCenterY);
this.groupBox6.Controls.Add(this.nudCenterX);
this.groupBox6.Controls.Add(this.label5);
this.groupBox6.Controls.Add(this.label6);
this.groupBox6.Controls.Add(this.label9);
this.groupBox6.Controls.Add(this.label10);
this.groupBox6.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox6.Location = new System.Drawing.Point(3, 211);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(424, 49);
this.groupBox6.TabIndex = 6;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "位置";
//
// nudCenterY
//
this.nudCenterY.Location = new System.Drawing.Point(275, 23);
this.nudCenterY.Name = "nudCenterY";
this.nudCenterY.Size = new System.Drawing.Size(111, 21);
this.nudCenterY.TabIndex = 12;
this.nudCenterY.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.nudCenterY.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.nudCenterX_KeyPress);
//
// nudCenterX
//
this.nudCenterX.Location = new System.Drawing.Point(60, 23);
this.nudCenterX.Name = "nudCenterX";
this.nudCenterX.Size = new System.Drawing.Size(111, 21);
this.nudCenterX.TabIndex = 11;
this.nudCenterX.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
this.nudCenterX.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.nudCenterX_KeyPress);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(222, 27);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(47, 12);
this.label5.TabIndex = 11;
this.label5.Text = "中心点Y";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(7, 27);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(47, 12);
this.label6.TabIndex = 9;
this.label6.Text = "中心点X";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(388, 29);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(17, 12);
this.label9.TabIndex = 13;
this.label9.Text = "px";
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(174, 29);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(17, 12);
this.label10.TabIndex = 13;
this.label10.Text = "px";
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 1;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Controls.Add(this.groupBox2, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.groupBox6, 0, 4);
this.tableLayoutPanel1.Controls.Add(this.groupBox3, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.groupBox5, 0, 3);
this.tableLayoutPanel1.Controls.Add(this.groupBox4, 0, 2);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(8, 8);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 5;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(430, 263);
this.tableLayoutPanel1.TabIndex = 7;
//
// ChangeViewDialog
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.ClientSize = new System.Drawing.Size(446, 279);
this.Controls.Add(this.tableLayoutPanel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximumSize = new System.Drawing.Size(462, 318);
this.MinimumSize = new System.Drawing.Size(462, 318);
this.Name = "ChangeViewDialog";
this.Padding = new System.Windows.Forms.Padding(8);
this.Text = "修改视场";
this.Controls.SetChildIndex(this.tableLayoutPanel1, 0);
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.groupBox4.ResumeLayout(false);
this.groupBox4.PerformLayout();
this.groupBox5.ResumeLayout(false);
this.groupBox5.PerformLayout();
this.groupBox6.ResumeLayout(false);
this.groupBox6.PerformLayout();
this.tableLayoutPanel1.ResumeLayout(false);
this.ResumeLayout(false);
}
#region 控件
private GroupBox groupBox2;
private Label label1;
private GroupBox groupBox3;
private GroupBox groupBox4;
private GroupBox groupBox5;
private GroupBox groupBox6;
private Label label2;
private Label lblHeightPx;
private Label lblWidth;
private Label label5;
private Label label6;
private Label lblWidthPx;
private Label lblHeight;
private TextBox nudActualHeight;
private TextBox nudActualWidth;
private TextBox nudCenterX;
private TextBox nudCenterY;
private Label lblPixelWidth;
private Label lblPixelHeight;
private TableLayoutPanel tableLayoutPanel1;
private Label label3;
private Label label4;
private Label lblPixelHeightUnit;
private Label label7;
private Label label9;
private Label label10;
#endregion
}
}