|
|
|
|
|
using static DevExpress.Office.PInvoke.Win32;
|
|
|
|
|
|
|
|
|
|
|
|
namespace KepGridEditor
|
|
|
|
|
|
{
|
|
|
|
|
|
partial class FormTrend
|
|
|
|
|
|
{
|
|
|
|
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
|
|
|
|
|
|
|
|
protected override void Dispose(bool disposing)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (disposing && (components != null)) components.Dispose();
|
|
|
|
|
|
base.Dispose(disposing);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void InitializeComponent()
|
|
|
|
|
|
{
|
|
|
|
|
|
grpParams = new DevExpress.XtraEditors.GroupControl();
|
|
|
|
|
|
lblAlgo = new DevExpress.XtraEditors.LabelControl();
|
|
|
|
|
|
cbAlgo = new DevExpress.XtraEditors.ComboBoxEdit();
|
|
|
|
|
|
lblMode = new DevExpress.XtraEditors.LabelControl();
|
|
|
|
|
|
cbMode = new DevExpress.XtraEditors.ComboBoxEdit();
|
|
|
|
|
|
grpTrend = new DevExpress.XtraEditors.GroupControl();
|
|
|
|
|
|
labelControl1 = new DevExpress.XtraEditors.LabelControl();
|
|
|
|
|
|
updatePositionBtn = new DevExpress.XtraEditors.CheckButton();
|
|
|
|
|
|
cvBtn = new DevExpress.XtraEditors.SimpleButton();
|
|
|
|
|
|
listTrends = new DevExpress.XtraEditors.ListBoxControl();
|
|
|
|
|
|
btnAdd = new DevExpress.XtraEditors.SimpleButton();
|
|
|
|
|
|
btnDel = new DevExpress.XtraEditors.SimpleButton();
|
|
|
|
|
|
gaugeKnob = new DevExpress.XtraGauges.Win.GaugeControl();
|
|
|
|
|
|
cGauge = new DevExpress.XtraGauges.Win.Gauges.Circular.CircularGauge();
|
|
|
|
|
|
arcScale = new DevExpress.XtraGauges.Win.Gauges.Circular.ArcScaleComponent();
|
|
|
|
|
|
trackRatio = new DevExpress.XtraEditors.TrackBarControl();
|
|
|
|
|
|
lblAngleValue = new DevExpress.XtraEditors.LabelControl();
|
|
|
|
|
|
lblRatioNum = new DevExpress.XtraEditors.LabelControl();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)grpParams).BeginInit();
|
|
|
|
|
|
grpParams.SuspendLayout();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)cbAlgo.Properties).BeginInit();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)cbMode.Properties).BeginInit();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)grpTrend).BeginInit();
|
|
|
|
|
|
grpTrend.SuspendLayout();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)listTrends).BeginInit();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)cGauge).BeginInit();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)arcScale).BeginInit();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)trackRatio).BeginInit();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)trackRatio.Properties).BeginInit();
|
|
|
|
|
|
SuspendLayout();
|
|
|
|
|
|
//
|
|
|
|
|
|
// grpParams
|
|
|
|
|
|
//
|
|
|
|
|
|
grpParams.Controls.Add(lblAlgo);
|
|
|
|
|
|
grpParams.Controls.Add(cbAlgo);
|
|
|
|
|
|
grpParams.Controls.Add(lblMode);
|
|
|
|
|
|
grpParams.Controls.Add(cbMode);
|
|
|
|
|
|
grpParams.Location = new System.Drawing.Point(10, 10);
|
|
|
|
|
|
grpParams.Name = "grpParams";
|
|
|
|
|
|
grpParams.Size = new System.Drawing.Size(430, 118);
|
|
|
|
|
|
grpParams.TabIndex = 0;
|
|
|
|
|
|
grpParams.Text = "参数设置";
|
|
|
|
|
|
//
|
|
|
|
|
|
// lblAlgo
|
|
|
|
|
|
//
|
|
|
|
|
|
lblAlgo.Location = new System.Drawing.Point(15, 38);
|
|
|
|
|
|
lblAlgo.Name = "lblAlgo";
|
|
|
|
|
|
lblAlgo.Size = new System.Drawing.Size(52, 14);
|
|
|
|
|
|
lblAlgo.TabIndex = 0;
|
|
|
|
|
|
lblAlgo.Text = "核心算法:";
|
|
|
|
|
|
//
|
|
|
|
|
|
// cbAlgo
|
|
|
|
|
|
//
|
|
|
|
|
|
cbAlgo.Location = new System.Drawing.Point(100, 35);
|
|
|
|
|
|
cbAlgo.Name = "cbAlgo";
|
|
|
|
|
|
cbAlgo.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
|
|
|
|
|
|
cbAlgo.Size = new System.Drawing.Size(320, 20);
|
|
|
|
|
|
cbAlgo.TabIndex = 1;
|
|
|
|
|
|
//
|
|
|
|
|
|
// lblMode
|
|
|
|
|
|
//
|
|
|
|
|
|
lblMode.Location = new System.Drawing.Point(15, 73);
|
|
|
|
|
|
lblMode.Name = "lblMode";
|
|
|
|
|
|
lblMode.Size = new System.Drawing.Size(52, 14);
|
|
|
|
|
|
lblMode.TabIndex = 2;
|
|
|
|
|
|
lblMode.Text = "融合模式:";
|
|
|
|
|
|
//
|
|
|
|
|
|
// cbMode
|
|
|
|
|
|
//
|
|
|
|
|
|
cbMode.Location = new System.Drawing.Point(100, 70);
|
|
|
|
|
|
cbMode.Name = "cbMode";
|
|
|
|
|
|
cbMode.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor;
|
|
|
|
|
|
cbMode.Size = new System.Drawing.Size(320, 20);
|
|
|
|
|
|
cbMode.TabIndex = 3;
|
|
|
|
|
|
//
|
|
|
|
|
|
// grpTrend
|
|
|
|
|
|
//
|
|
|
|
|
|
grpTrend.Controls.Add(labelControl1);
|
|
|
|
|
|
grpTrend.Controls.Add(updatePositionBtn);
|
|
|
|
|
|
grpTrend.Controls.Add(cvBtn);
|
|
|
|
|
|
grpTrend.Controls.Add(listTrends);
|
|
|
|
|
|
grpTrend.Controls.Add(btnAdd);
|
|
|
|
|
|
grpTrend.Controls.Add(btnDel);
|
|
|
|
|
|
grpTrend.Controls.Add(gaugeKnob);
|
|
|
|
|
|
grpTrend.Controls.Add(trackRatio);
|
|
|
|
|
|
grpTrend.Controls.Add(lblAngleValue);
|
|
|
|
|
|
grpTrend.Controls.Add(lblRatioNum);
|
|
|
|
|
|
grpTrend.Location = new System.Drawing.Point(10, 146);
|
|
|
|
|
|
grpTrend.Name = "grpTrend";
|
|
|
|
|
|
grpTrend.Size = new System.Drawing.Size(430, 354);
|
|
|
|
|
|
grpTrend.TabIndex = 1;
|
|
|
|
|
|
grpTrend.Text = "物源趋势控制";
|
|
|
|
|
|
//
|
|
|
|
|
|
// labelControl1
|
|
|
|
|
|
//
|
|
|
|
|
|
labelControl1.Location = new System.Drawing.Point(145, 190);
|
|
|
|
|
|
labelControl1.Name = "labelControl1";
|
|
|
|
|
|
labelControl1.Size = new System.Drawing.Size(125, 14);
|
|
|
|
|
|
labelControl1.TabIndex = 9;
|
|
|
|
|
|
labelControl1.Text = "延伸强度/各向异性比:";
|
|
|
|
|
|
//
|
|
|
|
|
|
// updatePositionBtn
|
|
|
|
|
|
//
|
|
|
|
|
|
updatePositionBtn.Location = new System.Drawing.Point(295, 145);
|
|
|
|
|
|
updatePositionBtn.Name = "updatePositionBtn";
|
|
|
|
|
|
updatePositionBtn.Size = new System.Drawing.Size(120, 30);
|
|
|
|
|
|
updatePositionBtn.TabIndex = 8;
|
|
|
|
|
|
updatePositionBtn.Text = "更新位置";
|
|
|
|
|
|
updatePositionBtn.CheckedChanged += updatePositionBtn_CheckedChanged;
|
|
|
|
|
|
//
|
|
|
|
|
|
// cvBtn
|
|
|
|
|
|
//
|
|
|
|
|
|
cvBtn.Location = new System.Drawing.Point(295, 307);
|
|
|
|
|
|
cvBtn.Name = "cvBtn";
|
|
|
|
|
|
cvBtn.Size = new System.Drawing.Size(120, 30);
|
|
|
|
|
|
cvBtn.TabIndex = 7;
|
|
|
|
|
|
cvBtn.Text = "推荐方向CV";
|
|
|
|
|
|
//
|
|
|
|
|
|
// listTrends
|
|
|
|
|
|
//
|
|
|
|
|
|
listTrends.Location = new System.Drawing.Point(15, 35);
|
|
|
|
|
|
listTrends.Name = "listTrends";
|
|
|
|
|
|
listTrends.Size = new System.Drawing.Size(400, 100);
|
|
|
|
|
|
listTrends.TabIndex = 0;
|
|
|
|
|
|
//
|
|
|
|
|
|
// btnAdd
|
|
|
|
|
|
//
|
|
|
|
|
|
btnAdd.Location = new System.Drawing.Point(15, 145);
|
|
|
|
|
|
btnAdd.Name = "btnAdd";
|
|
|
|
|
|
btnAdd.Size = new System.Drawing.Size(120, 30);
|
|
|
|
|
|
btnAdd.TabIndex = 1;
|
|
|
|
|
|
btnAdd.Text = "+ 添加";
|
|
|
|
|
|
//
|
|
|
|
|
|
// btnDel
|
|
|
|
|
|
//
|
|
|
|
|
|
btnDel.Location = new System.Drawing.Point(145, 145);
|
|
|
|
|
|
btnDel.Name = "btnDel";
|
|
|
|
|
|
btnDel.Size = new System.Drawing.Size(120, 30);
|
|
|
|
|
|
btnDel.TabIndex = 2;
|
|
|
|
|
|
btnDel.Text = "- 删除";
|
|
|
|
|
|
//
|
|
|
|
|
|
// gaugeKnob
|
|
|
|
|
|
//
|
|
|
|
|
|
gaugeKnob.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
|
|
|
|
|
|
gaugeKnob.Gauges.AddRange(new DevExpress.XtraGauges.Base.IGauge[] { cGauge });
|
|
|
|
|
|
gaugeKnob.Location = new System.Drawing.Point(15, 190);
|
|
|
|
|
|
gaugeKnob.Name = "gaugeKnob";
|
|
|
|
|
|
gaugeKnob.Size = new System.Drawing.Size(120, 120);
|
|
|
|
|
|
gaugeKnob.TabIndex = 3;
|
|
|
|
|
|
//
|
|
|
|
|
|
// cGauge
|
|
|
|
|
|
//
|
|
|
|
|
|
cGauge.Bounds = new System.Drawing.Rectangle(6, 6, 108, 108);
|
|
|
|
|
|
cGauge.Name = "cGauge";
|
|
|
|
|
|
cGauge.Scales.AddRange(new DevExpress.XtraGauges.Win.Gauges.Circular.ArcScaleComponent[] { arcScale });
|
|
|
|
|
|
//
|
|
|
|
|
|
// arcScale
|
|
|
|
|
|
//
|
|
|
|
|
|
arcScale.AppearanceMajorTickmark.BorderBrush = new DevExpress.XtraGauges.Core.Drawing.SolidBrushObject("Color:White");
|
|
|
|
|
|
arcScale.AppearanceMajorTickmark.ContentBrush = new DevExpress.XtraGauges.Core.Drawing.SolidBrushObject("Color:White");
|
|
|
|
|
|
arcScale.AppearanceMinorTickmark.BorderBrush = new DevExpress.XtraGauges.Core.Drawing.SolidBrushObject("Color:White");
|
|
|
|
|
|
arcScale.AppearanceMinorTickmark.ContentBrush = new DevExpress.XtraGauges.Core.Drawing.SolidBrushObject("Color:White");
|
|
|
|
|
|
arcScale.Center = new DevExpress.XtraGauges.Core.Base.PointF2D(0F, 0F);
|
|
|
|
|
|
arcScale.Name = "arcScale";
|
|
|
|
|
|
//
|
|
|
|
|
|
// trackRatio
|
|
|
|
|
|
//
|
|
|
|
|
|
trackRatio.EditValue = 10;
|
|
|
|
|
|
trackRatio.Location = new System.Drawing.Point(141, 210);
|
|
|
|
|
|
trackRatio.Name = "trackRatio";
|
|
|
|
|
|
trackRatio.Properties.Maximum = 100;
|
|
|
|
|
|
trackRatio.Properties.Minimum = 10;
|
|
|
|
|
|
trackRatio.Size = new System.Drawing.Size(261, 45);
|
|
|
|
|
|
trackRatio.TabIndex = 4;
|
|
|
|
|
|
trackRatio.Value = 10;
|
|
|
|
|
|
//
|
|
|
|
|
|
// lblAngleValue
|
|
|
|
|
|
//
|
|
|
|
|
|
lblAngleValue.Appearance.ForeColor = System.Drawing.Color.Blue;
|
|
|
|
|
|
lblAngleValue.Appearance.Options.UseForeColor = true;
|
|
|
|
|
|
lblAngleValue.Location = new System.Drawing.Point(55, 315);
|
|
|
|
|
|
lblAngleValue.Name = "lblAngleValue";
|
|
|
|
|
|
lblAngleValue.Size = new System.Drawing.Size(27, 14);
|
|
|
|
|
|
lblAngleValue.TabIndex = 5;
|
|
|
|
|
|
lblAngleValue.Text = "155°";
|
|
|
|
|
|
//
|
|
|
|
|
|
// lblRatioNum
|
|
|
|
|
|
//
|
|
|
|
|
|
lblRatioNum.Appearance.ForeColor = System.Drawing.Color.DarkRed;
|
|
|
|
|
|
lblRatioNum.Appearance.Options.UseForeColor = true;
|
|
|
|
|
|
lblRatioNum.Location = new System.Drawing.Point(247, 261);
|
|
|
|
|
|
lblRatioNum.Name = "lblRatioNum";
|
|
|
|
|
|
lblRatioNum.Size = new System.Drawing.Size(18, 14);
|
|
|
|
|
|
lblRatioNum.TabIndex = 6;
|
|
|
|
|
|
lblRatioNum.Text = "1.0";
|
|
|
|
|
|
//
|
|
|
|
|
|
// FormTrend
|
|
|
|
|
|
//
|
|
|
|
|
|
ClientSize = new System.Drawing.Size(450, 513);
|
|
|
|
|
|
Controls.Add(grpParams);
|
|
|
|
|
|
Controls.Add(grpTrend);
|
|
|
|
|
|
Name = "FormTrend";
|
|
|
|
|
|
Text = "物源控制";
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)grpParams).EndInit();
|
|
|
|
|
|
grpParams.ResumeLayout(false);
|
|
|
|
|
|
grpParams.PerformLayout();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)cbAlgo.Properties).EndInit();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)cbMode.Properties).EndInit();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)grpTrend).EndInit();
|
|
|
|
|
|
grpTrend.ResumeLayout(false);
|
|
|
|
|
|
grpTrend.PerformLayout();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)listTrends).EndInit();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)cGauge).EndInit();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)arcScale).EndInit();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)trackRatio.Properties).EndInit();
|
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)trackRatio).EndInit();
|
|
|
|
|
|
ResumeLayout(false);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 变量声明 (绝对定位不再需要 LayoutControl 相关对象)
|
|
|
|
|
|
private DevExpress.XtraEditors.GroupControl grpParams, grpTrend;
|
|
|
|
|
|
private DevExpress.XtraEditors.LabelControl lblAlgo, lblMode;
|
|
|
|
|
|
private DevExpress.XtraEditors.ComboBoxEdit cbAlgo, cbMode;
|
|
|
|
|
|
private DevExpress.XtraEditors.ListBoxControl listTrends;
|
|
|
|
|
|
private DevExpress.XtraEditors.SimpleButton btnAdd, btnDel;
|
|
|
|
|
|
private DevExpress.XtraGauges.Win.GaugeControl gaugeKnob;
|
|
|
|
|
|
private DevExpress.XtraGauges.Win.Gauges.Circular.CircularGauge cGauge;
|
|
|
|
|
|
private DevExpress.XtraGauges.Win.Gauges.Circular.ArcScaleComponent arcScale;
|
|
|
|
|
|
//private DevExpress.XtraGauges.Win.Gauges.Circular.ArcScaleNeedleComponent arcNeedle;
|
|
|
|
|
|
private DevExpress.XtraEditors.TrackBarControl trackRatio;
|
|
|
|
|
|
private DevExpress.XtraEditors.LabelControl lblAngleValue, lblRatioNum;
|
|
|
|
|
|
private DevExpress.XtraEditors.CheckButton updatePositionBtn;
|
|
|
|
|
|
private DevExpress.XtraEditors.SimpleButton cvBtn;
|
|
|
|
|
|
private DevExpress.XtraEditors.LabelControl labelControl1;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|