initial commit
This commit is contained in:
81
Handler/Project/Setting/CounterSetting.cs
Normal file
81
Handler/Project/Setting/CounterSetting.cs
Normal file
@@ -0,0 +1,81 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
using AR;
|
||||
|
||||
namespace Project
|
||||
{
|
||||
public class CounterSetting : arUtil.Setting
|
||||
{
|
||||
public int seq { get; set; }
|
||||
public string DateStr { get; set; }
|
||||
|
||||
|
||||
|
||||
public void ClearP()
|
||||
{
|
||||
CountV0 = CountV1 = CountV2 = CountE = CountP0 = CountP1 = CountP2 = CountPrintL = CountPrintR = 0;
|
||||
PUB.log.Add("Count(Port) Clear");
|
||||
this.Save();
|
||||
}
|
||||
|
||||
public void ClearDay()
|
||||
{
|
||||
DateStr = string.Empty;
|
||||
CountDP0 = CountDP1 = CountDP2 = CountDP3 = CountDP4 = 0;
|
||||
PUB.log.Add("Count(Day) Clear");
|
||||
this.Save();
|
||||
}
|
||||
|
||||
public int CountD
|
||||
{
|
||||
get
|
||||
{
|
||||
return CountDP0 + CountDP1 + CountDP2 + CountDP3 + CountDP4;
|
||||
}
|
||||
}
|
||||
public int Count
|
||||
{
|
||||
get
|
||||
{
|
||||
return CountP0 + CountP1 + CountP2 + CountPrintL + CountPrintR;
|
||||
}
|
||||
}
|
||||
|
||||
public int CountDP0 { get; set; }
|
||||
public int CountDP1 { get; set; }
|
||||
public int CountDP2 { get; set; }
|
||||
public int CountDP3 { get; set; }
|
||||
public int CountDP4 { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
//메인카운터
|
||||
public int CountP0 { get; set; }
|
||||
public int CountP1 { get; set; }
|
||||
public int CountP2 { get; set; }
|
||||
public int CountPrintL { get; set; }
|
||||
public int CountPrintR { get; set; }
|
||||
public int CountE { get; set; }
|
||||
public int CountV0 { get; set; }
|
||||
public int CountV1 { get; set; }
|
||||
public int CountV2 { get; set; }
|
||||
|
||||
|
||||
public CounterSetting()
|
||||
{
|
||||
this.filename = AR.UTIL.CurrentPath + "counter.xml";
|
||||
}
|
||||
public override void AfterLoad()
|
||||
{
|
||||
//if (CountReset == null) CountReset = DateTime.Parse("1982-11-23");
|
||||
}
|
||||
public override void AfterSave()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
263
Handler/Project/Setting/System_MotParameter.cs
Normal file
263
Handler/Project/Setting/System_MotParameter.cs
Normal file
@@ -0,0 +1,263 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
|
||||
|
||||
namespace Project
|
||||
{
|
||||
public class System_MotParameter
|
||||
{
|
||||
|
||||
string filename;
|
||||
public DSSetup.MotionParamDataTable dt;
|
||||
public int MotaxisCount
|
||||
{
|
||||
get
|
||||
{
|
||||
if (this.dt.Rows.Count < 1) return 0;
|
||||
var maxid = this.dt.Max(t => t.idx);
|
||||
return maxid + 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
double[] _maxspeed;
|
||||
public double MaxSpeed(int idx)
|
||||
{
|
||||
var dr = dt.Where(t => t.idx == idx).FirstOrDefault();
|
||||
if (dr == null) return 0;
|
||||
else return dr.MaxSpeed;
|
||||
}
|
||||
public double[] GetMaxSpeed
|
||||
{
|
||||
get
|
||||
{
|
||||
if (MotaxisCount < 1) return null;
|
||||
|
||||
if (_maxspeed == null || _maxspeed.Length != MotaxisCount)
|
||||
{
|
||||
_maxspeed = new double[MotaxisCount];
|
||||
for (int i = 0; i < MotaxisCount; i++)
|
||||
{
|
||||
_maxspeed[i] = MaxSpeed(i);
|
||||
}
|
||||
}
|
||||
|
||||
return _maxspeed;
|
||||
}
|
||||
}
|
||||
|
||||
public void ClearCache()
|
||||
{
|
||||
_maxspeed = null;
|
||||
_maxacc = null;
|
||||
}
|
||||
|
||||
double[] _maxacc;
|
||||
|
||||
public double MaxAcc(int idx)
|
||||
{
|
||||
var dr = dt.Where(t => t.idx == idx).FirstOrDefault();
|
||||
if (dr == null) return 0;
|
||||
else return dr.MaxAcc;
|
||||
}
|
||||
|
||||
public double[] GetMaxAcc
|
||||
{
|
||||
get
|
||||
{
|
||||
if (MotaxisCount < 1) return null;
|
||||
|
||||
if (_maxacc == null || _maxacc.Length != MotaxisCount)
|
||||
{
|
||||
_maxacc = new double[MotaxisCount];
|
||||
for (int i = 0; i < MotaxisCount; i++)
|
||||
{
|
||||
_maxacc[i] = MaxAcc(i);
|
||||
}
|
||||
}
|
||||
return _maxacc;
|
||||
}
|
||||
}
|
||||
|
||||
public double HomeSpeedHigh(int idx)
|
||||
{
|
||||
var dr = dt.Where(t => t.idx == idx).FirstOrDefault();
|
||||
if (dr == null) return 30;
|
||||
else return dr.HomeHigh;
|
||||
}
|
||||
public double[] GetHomeSpeedHigh
|
||||
{
|
||||
get
|
||||
{
|
||||
if (MotaxisCount < 1) return null;
|
||||
var retval = new double[MotaxisCount];
|
||||
for (int i = 0; i < MotaxisCount; i++)
|
||||
{
|
||||
retval[i] = HomeSpeedHigh(i);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
public double HomeSpeedLow(int idx)
|
||||
{
|
||||
var dr = dt.Where(t => t.idx == idx).FirstOrDefault();
|
||||
if (dr == null) return 10;
|
||||
else return dr.HomeLow;
|
||||
}
|
||||
public double[] GetHomeSpeedLow
|
||||
{
|
||||
get
|
||||
{
|
||||
if (MotaxisCount < 1) return null;
|
||||
var retval = new double[MotaxisCount];
|
||||
for (int i = 0; i < MotaxisCount; i++)
|
||||
{
|
||||
retval[i] = HomeSpeedLow(i);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
public double HomeSpeedAcc(int idx)
|
||||
{
|
||||
var dr = dt.Where(t => t.idx == idx).FirstOrDefault();
|
||||
if (dr == null) return 50;
|
||||
else return dr.HomeAcc;
|
||||
}
|
||||
public double[] GetHomeSpeedAcc
|
||||
{
|
||||
get
|
||||
{
|
||||
if (MotaxisCount < 1) return null;
|
||||
var retval = new double[MotaxisCount];
|
||||
for (int i = 0; i < MotaxisCount; i++)
|
||||
{
|
||||
retval[i] = HomeSpeedAcc(i);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
public Boolean UseEStopSignal(int idx)
|
||||
{
|
||||
var dr = dt.Where(t => t.idx == idx).FirstOrDefault();
|
||||
if (dr == null) return false;
|
||||
else return dr.UseEStop;
|
||||
}
|
||||
|
||||
public Boolean UseOriginSignal(int idx)
|
||||
{
|
||||
var dr = dt.Where(t => t.idx == idx).FirstOrDefault();
|
||||
if (dr == null) return false;
|
||||
else return dr.UseOrigin;
|
||||
}
|
||||
|
||||
public Boolean UseAxis(int idx)
|
||||
{
|
||||
var dr = dt.Where(t => t.idx == idx).FirstOrDefault();
|
||||
if (dr == null) return false;
|
||||
else return dr.Enable;
|
||||
}
|
||||
public double SWLimit(int idx)
|
||||
{
|
||||
var dr = dt.Where(t => t.idx == idx).FirstOrDefault();
|
||||
if (dr == null) return 0;
|
||||
else return dr.SWLimitP;
|
||||
}
|
||||
|
||||
public double HomeSpeedDcc(int idx)
|
||||
{
|
||||
var dr = dt.Where(t => t.idx == idx).FirstOrDefault();
|
||||
if (dr == null) return 50;
|
||||
else return dr.HomeDcc;
|
||||
}
|
||||
|
||||
|
||||
public float INPAccurary(int idx)
|
||||
{
|
||||
var dr = dt.Where(t => t.idx == idx).FirstOrDefault();
|
||||
if (dr == null) return 0.1f;
|
||||
else return dr.InpositionAccr;
|
||||
}
|
||||
|
||||
public double[] GetHomeSpeedDcc
|
||||
{
|
||||
get
|
||||
{
|
||||
if (MotaxisCount < 1) return null;
|
||||
var retval = new double[MotaxisCount];
|
||||
for (int i = 0; i < MotaxisCount; i++)
|
||||
{
|
||||
retval[i] = HomeSpeedDcc(i);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
public Boolean[] GetUseAxis
|
||||
{
|
||||
get
|
||||
{
|
||||
if (MotaxisCount < 1) return null;
|
||||
var retval = new bool[MotaxisCount];
|
||||
for (int i = 0; i < MotaxisCount; i++)
|
||||
{
|
||||
retval[i] = UseAxis(i);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
public Boolean[] GetUseOrigin
|
||||
{
|
||||
get
|
||||
{
|
||||
if (MotaxisCount < 1) return null;
|
||||
var retval = new bool[MotaxisCount];
|
||||
for (int i = 0; i < MotaxisCount; i++)
|
||||
{
|
||||
retval[i] = UseOriginSignal(i);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
|
||||
public Boolean[] GetUseEStop
|
||||
{
|
||||
get
|
||||
{
|
||||
if (MotaxisCount < 1) return null;
|
||||
var retval = new bool[MotaxisCount];
|
||||
for (int i = 0; i < MotaxisCount; i++)
|
||||
{
|
||||
retval[i] = UseEStopSignal(i);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
public System_MotParameter(string filename)
|
||||
{
|
||||
this.filename = filename;
|
||||
//if (string.IsNullOrEmpty(filename)
|
||||
//this.filename = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "system_mot.xml");
|
||||
dt = new DSSetup.MotionParamDataTable();
|
||||
}
|
||||
public void Save(DSSetup.MotionParamDataTable dt)
|
||||
{
|
||||
this.dt.Clear();
|
||||
this.dt.Merge(dt);
|
||||
this.dt.AcceptChanges();
|
||||
if (string.IsNullOrEmpty(this.filename) == false)
|
||||
this.dt.WriteXml(this.filename);
|
||||
}
|
||||
public void Load()
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.filename) == false)
|
||||
{
|
||||
dt.Clear();
|
||||
if (System.IO.File.Exists(this.filename))
|
||||
dt.ReadXml(this.filename);
|
||||
dt.AcceptChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
64
Handler/Project/Setting/System_Setting.cs
Normal file
64
Handler/Project/Setting/System_Setting.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
using AR;
|
||||
|
||||
namespace Project
|
||||
{
|
||||
|
||||
public class SystemSetting : arUtil.Setting
|
||||
{
|
||||
public int SaftySensor_Threshold { get; set; }
|
||||
|
||||
#region "System Setting"
|
||||
public int MotaxisCount { get; set; }
|
||||
#endregion
|
||||
|
||||
#region "Signal Reverse"
|
||||
|
||||
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_Emgergency { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_ButtonAir { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_DoorF { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_DoorR { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_AirCheck { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_PortLimitUp { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_PortLimitDn { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_PortDetect0Up { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_PortDetect1Up { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_PortDetect2Up { get; set; }
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_PickerSafe { get; set; }
|
||||
|
||||
[Category("Signal Reverse")]
|
||||
public Boolean ReverseSIG_ExtConvReady { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
public SystemSetting()
|
||||
{
|
||||
this.filename = UTIL.CurrentPath + "system.xml";
|
||||
}
|
||||
public override void AfterLoad()
|
||||
{
|
||||
MotaxisCount = 7;
|
||||
}
|
||||
public override void AfterSave()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
72
Handler/Project/Setting/UserSetting.cs
Normal file
72
Handler/Project/Setting/UserSetting.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
using AR;
|
||||
|
||||
|
||||
namespace Project
|
||||
{
|
||||
public class UserSetting : arUtil.Setting
|
||||
{
|
||||
public Boolean Option_QtyUpdate1 { get; set; }
|
||||
public Boolean Option_PartUpdate { get; set; }
|
||||
public Boolean Option_printforce1 { get; set; }
|
||||
public Boolean Option_Confirm1 { get; set; }
|
||||
public Boolean Option_AutoConfirm { get; set; }
|
||||
public Boolean Option_vname { get; set; }
|
||||
public Boolean Option_FixPrint1 { get; set; }
|
||||
public string Option_PrintPos1 { get; set; }
|
||||
public Boolean Option_SidConv { get; set; }
|
||||
|
||||
//public Boolean Option_QtyUpdate3 { get; set; }
|
||||
//public Boolean Option_printforce3 { get; set; }
|
||||
//public Boolean Option_Confirm3 { get; set; }
|
||||
//public Boolean Option_FixPrint3 { get; set; }
|
||||
//public string Option_PrintPos3 { get; set; }
|
||||
|
||||
public string LastJobUnP11 { get; set; }
|
||||
public string LastJobUnP12 { get; set; }
|
||||
public string LastJobUnP21 { get; set; }
|
||||
public string LastJobUnP22 { get; set; }
|
||||
public string LastJobUnP31 { get; set; }
|
||||
public string LastJobUnP32 { get; set; }
|
||||
public string LastJobUnP41 { get; set; }
|
||||
public string LastJobUnP42 { get; set; }
|
||||
|
||||
|
||||
public string LastLot { get; set; }
|
||||
public string LastAltag { get; set; }
|
||||
public string LastModelM { get; set; }
|
||||
public string LastModelV { get; set; }
|
||||
|
||||
public string LastMC { get; set; }
|
||||
|
||||
public int jobtype { get; set; }
|
||||
public int scantype { get; set; }
|
||||
public bool useConv { get; set; }
|
||||
public UserSetting()
|
||||
{
|
||||
this.filename = AppDomain.CurrentDomain.BaseDirectory + "UserSet.xml";
|
||||
}
|
||||
|
||||
public override void AfterLoad()
|
||||
{
|
||||
|
||||
if (PUB.uSetting.LastJobUnP11.isEmpty()) PUB.uSetting.LastJobUnP11 = "AUTO";
|
||||
if (PUB.uSetting.LastJobUnP12.isEmpty()) PUB.uSetting.LastJobUnP12 = "AUTO";
|
||||
if (PUB.uSetting.LastJobUnP21.isEmpty()) PUB.uSetting.LastJobUnP21 = "AUTO";
|
||||
if (PUB.uSetting.LastJobUnP22.isEmpty()) PUB.uSetting.LastJobUnP22 = "AUTO";
|
||||
if (PUB.uSetting.LastJobUnP31.isEmpty()) PUB.uSetting.LastJobUnP31 = "AUTO";
|
||||
if (PUB.uSetting.LastJobUnP32.isEmpty()) PUB.uSetting.LastJobUnP32 = "AUTO";
|
||||
if (PUB.uSetting.LastJobUnP41.isEmpty()) PUB.uSetting.LastJobUnP41 = "AUTO";
|
||||
if (PUB.uSetting.LastJobUnP42.isEmpty()) PUB.uSetting.LastJobUnP42 = "AUTO";
|
||||
|
||||
}
|
||||
public override void AfterSave()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
660
Handler/Project/Setting/fSetting.Designer.cs
generated
Normal file
660
Handler/Project/Setting/fSetting.Designer.cs
generated
Normal file
@@ -0,0 +1,660 @@
|
||||
namespace Project
|
||||
{
|
||||
partial class fSetting
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fSetting));
|
||||
this.btSave = new System.Windows.Forms.Button();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
|
||||
this.tabControl1 = new System.Windows.Forms.TabControl();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.btSystemBypass = new System.Windows.Forms.Button();
|
||||
this.button7 = new System.Windows.Forms.Button();
|
||||
this.btbuzAfterFinish = new System.Windows.Forms.Button();
|
||||
this.button13 = new System.Windows.Forms.Button();
|
||||
this.button14 = new System.Windows.Forms.Button();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.btmag2 = new System.Windows.Forms.Button();
|
||||
this.btRoomLamp = new System.Windows.Forms.Button();
|
||||
this.button6 = new System.Windows.Forms.Button();
|
||||
this.btPickerVac = new System.Windows.Forms.Button();
|
||||
this.btPort1 = new System.Windows.Forms.Button();
|
||||
this.btmag1 = new System.Windows.Forms.Button();
|
||||
this.btTWLamp = new System.Windows.Forms.Button();
|
||||
this.btBuz = new System.Windows.Forms.Button();
|
||||
this.btmag0 = new System.Windows.Forms.Button();
|
||||
this.button5 = new System.Windows.Forms.Button();
|
||||
this.btPort0 = new System.Windows.Forms.Button();
|
||||
this.btPort2 = new System.Windows.Forms.Button();
|
||||
this.btLeftVac = new System.Windows.Forms.Button();
|
||||
this.btPrintR = new System.Windows.Forms.Button();
|
||||
this.btPrintL = new System.Windows.Forms.Button();
|
||||
this.btRightVac = new System.Windows.Forms.Button();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.btDetectPrintR = new System.Windows.Forms.Button();
|
||||
this.btDetectPrintL = new System.Windows.Forms.Button();
|
||||
this.btCartDetR = new System.Windows.Forms.Button();
|
||||
this.btCartDetL = new System.Windows.Forms.Button();
|
||||
this.btCartDetC = new System.Windows.Forms.Button();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.tabPage4 = new System.Windows.Forms.TabPage();
|
||||
this.btDefIO = new System.Windows.Forms.Button();
|
||||
this.btDefError = new System.Windows.Forms.Button();
|
||||
this.btOpenZPL = new System.Windows.Forms.Button();
|
||||
this.bsLang = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.dataSet1 = new Project.DataSet1();
|
||||
this.bsRecipient = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.bsMailForm = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components);
|
||||
this.panel1.SuspendLayout();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.tabPage2.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
this.tabPage4.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsLang)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataSet1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsRecipient)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsMailForm)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// btSave
|
||||
//
|
||||
this.btSave.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btSave.Location = new System.Drawing.Point(5, 5);
|
||||
this.btSave.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.btSave.Name = "btSave";
|
||||
this.btSave.Size = new System.Drawing.Size(604, 53);
|
||||
this.btSave.TabIndex = 0;
|
||||
this.btSave.Text = "Save(&S)";
|
||||
this.btSave.UseVisualStyleBackColor = true;
|
||||
this.btSave.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.btSave);
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.panel1.Location = new System.Drawing.Point(0, 623);
|
||||
this.panel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.panel1.Size = new System.Drawing.Size(614, 63);
|
||||
this.panel1.TabIndex = 1;
|
||||
//
|
||||
// propertyGrid1
|
||||
//
|
||||
this.propertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.propertyGrid1.Font = new System.Drawing.Font("맑은 고딕", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.propertyGrid1.LineColor = System.Drawing.SystemColors.ControlDark;
|
||||
this.propertyGrid1.Location = new System.Drawing.Point(3, 3);
|
||||
this.propertyGrid1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.propertyGrid1.Name = "propertyGrid1";
|
||||
this.propertyGrid1.Size = new System.Drawing.Size(600, 584);
|
||||
this.propertyGrid1.TabIndex = 1;
|
||||
//
|
||||
// tabControl1
|
||||
//
|
||||
this.tabControl1.Controls.Add(this.tabPage2);
|
||||
this.tabControl1.Controls.Add(this.tabPage1);
|
||||
this.tabControl1.Controls.Add(this.tabPage4);
|
||||
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tabControl1.Location = new System.Drawing.Point(0, 0);
|
||||
this.tabControl1.Name = "tabControl1";
|
||||
this.tabControl1.SelectedIndex = 0;
|
||||
this.tabControl1.Size = new System.Drawing.Size(614, 623);
|
||||
this.tabControl1.TabIndex = 2;
|
||||
this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Controls.Add(this.groupBox1);
|
||||
this.tabPage2.Controls.Add(this.groupBox2);
|
||||
this.tabPage2.Font = new System.Drawing.Font("맑은 고딕", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.tabPage2.Location = new System.Drawing.Point(4, 29);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(5);
|
||||
this.tabPage2.Size = new System.Drawing.Size(606, 590);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Text = "Quick Settings";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.btSystemBypass);
|
||||
this.groupBox1.Controls.Add(this.button7);
|
||||
this.groupBox1.Controls.Add(this.btbuzAfterFinish);
|
||||
this.groupBox1.Controls.Add(this.button13);
|
||||
this.groupBox1.Controls.Add(this.button14);
|
||||
this.groupBox1.Controls.Add(this.button3);
|
||||
this.groupBox1.Controls.Add(this.btmag2);
|
||||
this.groupBox1.Controls.Add(this.btRoomLamp);
|
||||
this.groupBox1.Controls.Add(this.button6);
|
||||
this.groupBox1.Controls.Add(this.btPickerVac);
|
||||
this.groupBox1.Controls.Add(this.btPort1);
|
||||
this.groupBox1.Controls.Add(this.btmag1);
|
||||
this.groupBox1.Controls.Add(this.btTWLamp);
|
||||
this.groupBox1.Controls.Add(this.btBuz);
|
||||
this.groupBox1.Controls.Add(this.btmag0);
|
||||
this.groupBox1.Controls.Add(this.button5);
|
||||
this.groupBox1.Controls.Add(this.btPort0);
|
||||
this.groupBox1.Controls.Add(this.btPort2);
|
||||
this.groupBox1.Controls.Add(this.btLeftVac);
|
||||
this.groupBox1.Controls.Add(this.btPrintR);
|
||||
this.groupBox1.Controls.Add(this.btPrintL);
|
||||
this.groupBox1.Controls.Add(this.btRightVac);
|
||||
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox1.Font = new System.Drawing.Font("맑은 고딕", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.groupBox1.Location = new System.Drawing.Point(5, 5);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(596, 409);
|
||||
this.groupBox1.TabIndex = 1;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Function Control";
|
||||
//
|
||||
// btSystemBypass
|
||||
//
|
||||
this.btSystemBypass.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.btSystemBypass.Location = new System.Drawing.Point(53, 349);
|
||||
this.btSystemBypass.Name = "btSystemBypass";
|
||||
this.btSystemBypass.Size = new System.Drawing.Size(479, 42);
|
||||
this.btSystemBypass.TabIndex = 49;
|
||||
this.btSystemBypass.Text = "SYSTEM BYPASS";
|
||||
this.btSystemBypass.UseVisualStyleBackColor = true;
|
||||
this.btSystemBypass.Click += new System.EventHandler(this.button8_Click);
|
||||
//
|
||||
// button7
|
||||
//
|
||||
this.button7.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.button7.Location = new System.Drawing.Point(230, 279);
|
||||
this.button7.Name = "button7";
|
||||
this.button7.Size = new System.Drawing.Size(124, 43);
|
||||
this.button7.TabIndex = 48;
|
||||
this.button7.Text = "Picker-Cylinder";
|
||||
this.button7.UseVisualStyleBackColor = true;
|
||||
this.button7.Click += new System.EventHandler(this.button7_Click_2);
|
||||
//
|
||||
// btbuzAfterFinish
|
||||
//
|
||||
this.btbuzAfterFinish.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.btbuzAfterFinish.Location = new System.Drawing.Point(18, 30);
|
||||
this.btbuzAfterFinish.Name = "btbuzAfterFinish";
|
||||
this.btbuzAfterFinish.Size = new System.Drawing.Size(135, 43);
|
||||
this.btbuzAfterFinish.TabIndex = 25;
|
||||
this.btbuzAfterFinish.Text = "Buzzer After Completion";
|
||||
this.btbuzAfterFinish.UseVisualStyleBackColor = true;
|
||||
this.btbuzAfterFinish.Click += new System.EventHandler(this.button10_Click);
|
||||
//
|
||||
// button13
|
||||
//
|
||||
this.button13.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.button13.Location = new System.Drawing.Point(53, 215);
|
||||
this.button13.Name = "button13";
|
||||
this.button13.Size = new System.Drawing.Size(128, 42);
|
||||
this.button13.TabIndex = 46;
|
||||
this.button13.Text = "AIR(Lower)";
|
||||
this.button13.UseVisualStyleBackColor = true;
|
||||
this.button13.Click += new System.EventHandler(this.button13_Click);
|
||||
//
|
||||
// button14
|
||||
//
|
||||
this.button14.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.button14.Location = new System.Drawing.Point(404, 213);
|
||||
this.button14.Name = "button14";
|
||||
this.button14.Size = new System.Drawing.Size(128, 42);
|
||||
this.button14.TabIndex = 47;
|
||||
this.button14.Text = "AIR(Lower)";
|
||||
this.button14.UseVisualStyleBackColor = true;
|
||||
this.button14.Click += new System.EventHandler(this.button14_Click);
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.button3.Location = new System.Drawing.Point(230, 89);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(124, 43);
|
||||
this.button3.TabIndex = 38;
|
||||
this.button3.Text = "QR Validation";
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
this.button3.Click += new System.EventHandler(this.button3_Click_1);
|
||||
//
|
||||
// btmag2
|
||||
//
|
||||
this.btmag2.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.btmag2.Location = new System.Drawing.Point(230, 233);
|
||||
this.btmag2.Name = "btmag2";
|
||||
this.btmag2.Size = new System.Drawing.Size(124, 43);
|
||||
this.btmag2.TabIndex = 42;
|
||||
this.btmag2.Text = "Picker-Magnet";
|
||||
this.btmag2.UseVisualStyleBackColor = true;
|
||||
this.btmag2.Click += new System.EventHandler(this.button5_Click_1);
|
||||
//
|
||||
// btRoomLamp
|
||||
//
|
||||
this.btRoomLamp.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.btRoomLamp.Location = new System.Drawing.Point(429, 30);
|
||||
this.btRoomLamp.Name = "btRoomLamp";
|
||||
this.btRoomLamp.Size = new System.Drawing.Size(135, 43);
|
||||
this.btRoomLamp.TabIndex = 28;
|
||||
this.btRoomLamp.Text = "Interior Light";
|
||||
this.btRoomLamp.UseVisualStyleBackColor = true;
|
||||
this.btRoomLamp.Click += new System.EventHandler(this.button2_Click_2);
|
||||
//
|
||||
// button6
|
||||
//
|
||||
this.button6.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.button6.Location = new System.Drawing.Point(404, 75);
|
||||
this.button6.Name = "button6";
|
||||
this.button6.Size = new System.Drawing.Size(163, 49);
|
||||
this.button6.TabIndex = 44;
|
||||
this.button6.Text = "Right-Function";
|
||||
this.button6.UseVisualStyleBackColor = true;
|
||||
this.button6.Click += new System.EventHandler(this.button6_Click_3);
|
||||
//
|
||||
// btPickerVac
|
||||
//
|
||||
this.btPickerVac.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.btPickerVac.Location = new System.Drawing.Point(230, 133);
|
||||
this.btPickerVac.Name = "btPickerVac";
|
||||
this.btPickerVac.Size = new System.Drawing.Size(124, 43);
|
||||
this.btPickerVac.TabIndex = 34;
|
||||
this.btPickerVac.Text = "Picker-Vacuum";
|
||||
this.btPickerVac.UseVisualStyleBackColor = true;
|
||||
this.btPickerVac.Click += new System.EventHandler(this.btPickerVac_Click);
|
||||
//
|
||||
// btPort1
|
||||
//
|
||||
this.btPort1.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.btPort1.ForeColor = System.Drawing.Color.Black;
|
||||
this.btPort1.Location = new System.Drawing.Point(230, 187);
|
||||
this.btPort1.Name = "btPort1";
|
||||
this.btPort1.Size = new System.Drawing.Size(124, 43);
|
||||
this.btPort1.TabIndex = 23;
|
||||
this.btPort1.Text = "Picker-Port";
|
||||
this.btPort1.UseVisualStyleBackColor = true;
|
||||
this.btPort1.Click += new System.EventHandler(this.btPort1_Click);
|
||||
//
|
||||
// btmag1
|
||||
//
|
||||
this.btmag1.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.btmag1.Location = new System.Drawing.Point(404, 299);
|
||||
this.btmag1.Name = "btmag1";
|
||||
this.btmag1.Size = new System.Drawing.Size(128, 42);
|
||||
this.btmag1.TabIndex = 41;
|
||||
this.btmag1.Text = "Magnet";
|
||||
this.btmag1.UseVisualStyleBackColor = true;
|
||||
this.btmag1.Click += new System.EventHandler(this.button6_Click_2);
|
||||
//
|
||||
// btTWLamp
|
||||
//
|
||||
this.btTWLamp.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.btTWLamp.Location = new System.Drawing.Point(292, 30);
|
||||
this.btTWLamp.Name = "btTWLamp";
|
||||
this.btTWLamp.Size = new System.Drawing.Size(135, 43);
|
||||
this.btTWLamp.TabIndex = 21;
|
||||
this.btTWLamp.Text = "Tower Lamp";
|
||||
this.btTWLamp.UseVisualStyleBackColor = true;
|
||||
this.btTWLamp.Click += new System.EventHandler(this.btTWLamp_Click);
|
||||
//
|
||||
// btBuz
|
||||
//
|
||||
this.btBuz.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.btBuz.Location = new System.Drawing.Point(155, 30);
|
||||
this.btBuz.Name = "btBuz";
|
||||
this.btBuz.Size = new System.Drawing.Size(135, 43);
|
||||
this.btBuz.TabIndex = 4;
|
||||
this.btBuz.Text = "Buzzer";
|
||||
this.btBuz.UseVisualStyleBackColor = true;
|
||||
this.btBuz.Click += new System.EventHandler(this.button6_Click);
|
||||
//
|
||||
// btmag0
|
||||
//
|
||||
this.btmag0.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.btmag0.Location = new System.Drawing.Point(53, 301);
|
||||
this.btmag0.Name = "btmag0";
|
||||
this.btmag0.Size = new System.Drawing.Size(128, 42);
|
||||
this.btmag0.TabIndex = 40;
|
||||
this.btmag0.Text = "Magnet";
|
||||
this.btmag0.UseVisualStyleBackColor = true;
|
||||
this.btmag0.Click += new System.EventHandler(this.button7_Click_1);
|
||||
//
|
||||
// button5
|
||||
//
|
||||
this.button5.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.button5.Location = new System.Drawing.Point(18, 77);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Size = new System.Drawing.Size(163, 49);
|
||||
this.button5.TabIndex = 43;
|
||||
this.button5.Text = "Left-Function";
|
||||
this.button5.UseVisualStyleBackColor = true;
|
||||
this.button5.Click += new System.EventHandler(this.button5_Click_2);
|
||||
//
|
||||
// btPort0
|
||||
//
|
||||
this.btPort0.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.btPort0.ForeColor = System.Drawing.Color.Black;
|
||||
this.btPort0.Location = new System.Drawing.Point(53, 258);
|
||||
this.btPort0.Name = "btPort0";
|
||||
this.btPort0.Size = new System.Drawing.Size(128, 42);
|
||||
this.btPort0.TabIndex = 22;
|
||||
this.btPort0.Text = "Port";
|
||||
this.btPort0.UseVisualStyleBackColor = true;
|
||||
this.btPort0.Click += new System.EventHandler(this.btPort0_Click);
|
||||
//
|
||||
// btPort2
|
||||
//
|
||||
this.btPort2.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.btPort2.ForeColor = System.Drawing.Color.Black;
|
||||
this.btPort2.Location = new System.Drawing.Point(404, 256);
|
||||
this.btPort2.Name = "btPort2";
|
||||
this.btPort2.Size = new System.Drawing.Size(128, 42);
|
||||
this.btPort2.TabIndex = 35;
|
||||
this.btPort2.Text = "Port";
|
||||
this.btPort2.UseVisualStyleBackColor = true;
|
||||
this.btPort2.Click += new System.EventHandler(this.btPort2_Click);
|
||||
//
|
||||
// btLeftVac
|
||||
//
|
||||
this.btLeftVac.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.btLeftVac.Location = new System.Drawing.Point(53, 172);
|
||||
this.btLeftVac.Name = "btLeftVac";
|
||||
this.btLeftVac.Size = new System.Drawing.Size(128, 42);
|
||||
this.btLeftVac.TabIndex = 32;
|
||||
this.btLeftVac.Text = "VAC(Upper)";
|
||||
this.btLeftVac.UseVisualStyleBackColor = true;
|
||||
this.btLeftVac.Click += new System.EventHandler(this.btLeftVac_Click);
|
||||
//
|
||||
// btPrintR
|
||||
//
|
||||
this.btPrintR.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.btPrintR.ForeColor = System.Drawing.Color.Black;
|
||||
this.btPrintR.Location = new System.Drawing.Point(404, 127);
|
||||
this.btPrintR.Name = "btPrintR";
|
||||
this.btPrintR.Size = new System.Drawing.Size(128, 42);
|
||||
this.btPrintR.TabIndex = 37;
|
||||
this.btPrintR.Text = "Printer";
|
||||
this.btPrintR.UseVisualStyleBackColor = true;
|
||||
this.btPrintR.Click += new System.EventHandler(this.button3_Click);
|
||||
//
|
||||
// btPrintL
|
||||
//
|
||||
this.btPrintL.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.btPrintL.ForeColor = System.Drawing.Color.Black;
|
||||
this.btPrintL.Location = new System.Drawing.Point(53, 129);
|
||||
this.btPrintL.Name = "btPrintL";
|
||||
this.btPrintL.Size = new System.Drawing.Size(128, 42);
|
||||
this.btPrintL.TabIndex = 36;
|
||||
this.btPrintL.Text = "Printer";
|
||||
this.btPrintL.UseVisualStyleBackColor = true;
|
||||
this.btPrintL.Click += new System.EventHandler(this.button4_Click_2);
|
||||
//
|
||||
// btRightVac
|
||||
//
|
||||
this.btRightVac.Font = new System.Drawing.Font("맑은 고딕", 11F, System.Drawing.FontStyle.Bold);
|
||||
this.btRightVac.Location = new System.Drawing.Point(404, 170);
|
||||
this.btRightVac.Name = "btRightVac";
|
||||
this.btRightVac.Size = new System.Drawing.Size(128, 42);
|
||||
this.btRightVac.TabIndex = 33;
|
||||
this.btRightVac.Text = "VAC(Upper)";
|
||||
this.btRightVac.UseVisualStyleBackColor = true;
|
||||
this.btRightVac.Click += new System.EventHandler(this.btRightVac_Click);
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.btDetectPrintR);
|
||||
this.groupBox2.Controls.Add(this.btDetectPrintL);
|
||||
this.groupBox2.Controls.Add(this.btCartDetR);
|
||||
this.groupBox2.Controls.Add(this.btCartDetL);
|
||||
this.groupBox2.Controls.Add(this.btCartDetC);
|
||||
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.groupBox2.Font = new System.Drawing.Font("맑은 고딕", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
this.groupBox2.Location = new System.Drawing.Point(5, 414);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(596, 171);
|
||||
this.groupBox2.TabIndex = 2;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Sensor Control";
|
||||
//
|
||||
// btDetectPrintR
|
||||
//
|
||||
this.btDetectPrintR.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
|
||||
this.btDetectPrintR.Location = new System.Drawing.Point(112, 38);
|
||||
this.btDetectPrintR.Name = "btDetectPrintR";
|
||||
this.btDetectPrintR.Size = new System.Drawing.Size(100, 58);
|
||||
this.btDetectPrintR.TabIndex = 24;
|
||||
this.btDetectPrintR.Text = "Print Detect-R";
|
||||
this.btDetectPrintR.UseVisualStyleBackColor = true;
|
||||
this.btDetectPrintR.Click += new System.EventHandler(this.btDetectPrintR_Click);
|
||||
//
|
||||
// btDetectPrintL
|
||||
//
|
||||
this.btDetectPrintL.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
|
||||
this.btDetectPrintL.Location = new System.Drawing.Point(12, 38);
|
||||
this.btDetectPrintL.Name = "btDetectPrintL";
|
||||
this.btDetectPrintL.Size = new System.Drawing.Size(100, 58);
|
||||
this.btDetectPrintL.TabIndex = 23;
|
||||
this.btDetectPrintL.Text = "Print Detect-L";
|
||||
this.btDetectPrintL.UseVisualStyleBackColor = true;
|
||||
this.btDetectPrintL.Click += new System.EventHandler(this.btDetectPrintL_Click);
|
||||
//
|
||||
// btCartDetR
|
||||
//
|
||||
this.btCartDetR.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
|
||||
this.btCartDetR.Location = new System.Drawing.Point(213, 99);
|
||||
this.btCartDetR.Name = "btCartDetR";
|
||||
this.btCartDetR.Size = new System.Drawing.Size(100, 58);
|
||||
this.btCartDetR.TabIndex = 20;
|
||||
this.btCartDetR.Text = "Cart Detect(R)";
|
||||
this.btCartDetR.UseVisualStyleBackColor = true;
|
||||
this.btCartDetR.Click += new System.EventHandler(this.button5_Click);
|
||||
//
|
||||
// btCartDetL
|
||||
//
|
||||
this.btCartDetL.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
|
||||
this.btCartDetL.Location = new System.Drawing.Point(12, 99);
|
||||
this.btCartDetL.Name = "btCartDetL";
|
||||
this.btCartDetL.Size = new System.Drawing.Size(100, 58);
|
||||
this.btCartDetL.TabIndex = 21;
|
||||
this.btCartDetL.Text = "Cart Detect(L)";
|
||||
this.btCartDetL.UseVisualStyleBackColor = true;
|
||||
this.btCartDetL.Click += new System.EventHandler(this.button6_Click_1);
|
||||
//
|
||||
// btCartDetC
|
||||
//
|
||||
this.btCartDetC.Font = new System.Drawing.Font("맑은 고딕", 10F, System.Drawing.FontStyle.Bold);
|
||||
this.btCartDetC.Location = new System.Drawing.Point(112, 99);
|
||||
this.btCartDetC.Name = "btCartDetC";
|
||||
this.btCartDetC.Size = new System.Drawing.Size(100, 58);
|
||||
this.btCartDetC.TabIndex = 22;
|
||||
this.btCartDetC.Text = "Cart Detect(C)";
|
||||
this.btCartDetC.UseVisualStyleBackColor = true;
|
||||
this.btCartDetC.Click += new System.EventHandler(this.button7_Click);
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Controls.Add(this.propertyGrid1);
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 29);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(606, 590);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "Advanced Settings";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabPage4
|
||||
//
|
||||
this.tabPage4.Controls.Add(this.btDefIO);
|
||||
this.tabPage4.Controls.Add(this.btDefError);
|
||||
this.tabPage4.Controls.Add(this.btOpenZPL);
|
||||
this.tabPage4.Location = new System.Drawing.Point(4, 29);
|
||||
this.tabPage4.Name = "tabPage4";
|
||||
this.tabPage4.Size = new System.Drawing.Size(606, 590);
|
||||
this.tabPage4.TabIndex = 3;
|
||||
this.tabPage4.Text = "Other";
|
||||
this.tabPage4.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btDefIO
|
||||
//
|
||||
this.btDefIO.Location = new System.Drawing.Point(13, 118);
|
||||
this.btDefIO.Name = "btDefIO";
|
||||
this.btDefIO.Size = new System.Drawing.Size(234, 43);
|
||||
this.btDefIO.TabIndex = 48;
|
||||
this.btDefIO.Text = "Define I/O Description";
|
||||
this.btDefIO.UseVisualStyleBackColor = true;
|
||||
this.btDefIO.Click += new System.EventHandler(this.button12_Click);
|
||||
//
|
||||
// btDefError
|
||||
//
|
||||
this.btDefError.Location = new System.Drawing.Point(13, 65);
|
||||
this.btDefError.Name = "btDefError";
|
||||
this.btDefError.Size = new System.Drawing.Size(234, 43);
|
||||
this.btDefError.TabIndex = 47;
|
||||
this.btDefError.Text = "Define Error Messages";
|
||||
this.btDefError.UseVisualStyleBackColor = true;
|
||||
this.btDefError.Click += new System.EventHandler(this.button11_Click);
|
||||
//
|
||||
// btOpenZPL
|
||||
//
|
||||
this.btOpenZPL.Location = new System.Drawing.Point(13, 12);
|
||||
this.btOpenZPL.Name = "btOpenZPL";
|
||||
this.btOpenZPL.Size = new System.Drawing.Size(234, 43);
|
||||
this.btOpenZPL.TabIndex = 46;
|
||||
this.btOpenZPL.Text = "Open ZPL";
|
||||
this.btOpenZPL.UseVisualStyleBackColor = true;
|
||||
this.btOpenZPL.Click += new System.EventHandler(this.btOpenZPL_Click);
|
||||
//
|
||||
// bsLang
|
||||
//
|
||||
this.bsLang.DataMember = "language";
|
||||
this.bsLang.DataSource = this.dataSet1;
|
||||
//
|
||||
// dataSet1
|
||||
//
|
||||
this.dataSet1.DataSetName = "DataSet1";
|
||||
this.dataSet1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
|
||||
//
|
||||
// bsRecipient
|
||||
//
|
||||
this.bsRecipient.DataMember = "MailRecipient";
|
||||
this.bsRecipient.DataSource = this.dataSet1;
|
||||
//
|
||||
// bsMailForm
|
||||
//
|
||||
this.bsMailForm.DataMember = "MailFormat";
|
||||
this.bsMailForm.DataSource = this.dataSet1;
|
||||
//
|
||||
// errorProvider1
|
||||
//
|
||||
this.errorProvider1.ContainerControl = this;
|
||||
//
|
||||
// fSetting
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(614, 686);
|
||||
this.Controls.Add(this.tabControl1);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.KeyPreview = true;
|
||||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "fSetting";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Program Settings";
|
||||
this.Load += new System.EventHandler(this.@__Load);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.tabControl1.ResumeLayout(false);
|
||||
this.tabPage2.ResumeLayout(false);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.tabPage1.ResumeLayout(false);
|
||||
this.tabPage4.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsLang)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataSet1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsRecipient)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsMailForm)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button btSave;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.PropertyGrid propertyGrid1;
|
||||
private System.Windows.Forms.TabControl tabControl1;
|
||||
private System.Windows.Forms.TabPage tabPage1;
|
||||
private System.Windows.Forms.BindingSource bsLang;
|
||||
private DataSet1 dataSet1;
|
||||
private System.Windows.Forms.TabPage tabPage2;
|
||||
private System.Windows.Forms.ToolTip toolTip1;
|
||||
private System.Windows.Forms.GroupBox groupBox1;
|
||||
private System.Windows.Forms.Button btBuz;
|
||||
private System.Windows.Forms.GroupBox groupBox2;
|
||||
private System.Windows.Forms.ErrorProvider errorProvider1;
|
||||
private System.Windows.Forms.Button btTWLamp;
|
||||
private System.Windows.Forms.BindingSource bsRecipient;
|
||||
private System.Windows.Forms.BindingSource bsMailForm;
|
||||
private System.Windows.Forms.Button btRoomLamp;
|
||||
private System.Windows.Forms.Button btPickerVac;
|
||||
private System.Windows.Forms.Button btRightVac;
|
||||
private System.Windows.Forms.Button btLeftVac;
|
||||
private System.Windows.Forms.Button btPort1;
|
||||
private System.Windows.Forms.Button btPort0;
|
||||
private System.Windows.Forms.Button btPort2;
|
||||
private System.Windows.Forms.Button btPrintR;
|
||||
private System.Windows.Forms.Button btPrintL;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.Button btCartDetR;
|
||||
private System.Windows.Forms.Button btCartDetL;
|
||||
private System.Windows.Forms.Button btCartDetC;
|
||||
private System.Windows.Forms.Button btmag2;
|
||||
private System.Windows.Forms.Button btmag1;
|
||||
private System.Windows.Forms.Button btmag0;
|
||||
private System.Windows.Forms.Button btDetectPrintR;
|
||||
private System.Windows.Forms.Button btDetectPrintL;
|
||||
private System.Windows.Forms.Button button6;
|
||||
private System.Windows.Forms.Button button5;
|
||||
private System.Windows.Forms.TabPage tabPage4;
|
||||
private System.Windows.Forms.Button btOpenZPL;
|
||||
private System.Windows.Forms.Button btbuzAfterFinish;
|
||||
private System.Windows.Forms.Button btDefIO;
|
||||
private System.Windows.Forms.Button btDefError;
|
||||
private System.Windows.Forms.Button button13;
|
||||
private System.Windows.Forms.Button button14;
|
||||
private System.Windows.Forms.Button button7;
|
||||
private System.Windows.Forms.Button btSystemBypass;
|
||||
}
|
||||
}
|
||||
412
Handler/Project/Setting/fSetting.cs
Normal file
412
Handler/Project/Setting/fSetting.cs
Normal file
@@ -0,0 +1,412 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using AR;
|
||||
|
||||
namespace Project
|
||||
{
|
||||
public partial class fSetting : Form
|
||||
{
|
||||
CommonSetting dummySetting; //Temporarily store settings and overwrite on completion
|
||||
|
||||
public fSetting()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
//setting
|
||||
dummySetting = new CommonSetting();
|
||||
AR.SETTING.Data.CopyTo(dummySetting);
|
||||
|
||||
this.KeyDown += (s1, e1) =>
|
||||
{
|
||||
if (e1.KeyCode == Keys.Escape)
|
||||
this.Close();
|
||||
if (DateTime.Now > PUB.LastInputTime) PUB.LastInputTime = DateTime.Now;
|
||||
};
|
||||
this.MouseMove += (s1, e1) => { if (DateTime.Now > PUB.LastInputTime) PUB.LastInputTime = DateTime.Now; };
|
||||
this.FormClosed += __Closed;
|
||||
|
||||
bsRecipient.DataSource = PUB.mailList;
|
||||
bsMailForm.DataSource = PUB.mailForm;
|
||||
}
|
||||
|
||||
private void __Closed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
this.Show();
|
||||
|
||||
this.propertyGrid1.SelectedObject = this.dummySetting;
|
||||
this.propertyGrid1.Refresh();
|
||||
|
||||
btBuz.BackColor = dummySetting.Disable_Buzzer == false ? Color.Lime : Color.Tomato;
|
||||
this.btTWLamp.BackColor = dummySetting.Disable_TowerLamp ? Color.Tomato : Color.Lime;
|
||||
this.btRoomLamp.BackColor = dummySetting.Disable_RoomLight == true ? Color.Tomato : Color.Lime;
|
||||
|
||||
//Vacuum usage status
|
||||
this.btLeftVac.BackColor = dummySetting.Disable_PLVac ? Color.Tomato : Color.Lime;
|
||||
this.btRightVac.BackColor = dummySetting.Disable_PRVac ? Color.Tomato : Color.Lime;
|
||||
this.btPickerVac.BackColor = dummySetting.Disable_PKVac ? Color.Tomato : Color.Lime;
|
||||
|
||||
//Port usage status
|
||||
this.btPort0.BackColor = dummySetting.Disable_PortL ? Color.Tomato : Color.Lime;
|
||||
this.btPort1.BackColor = dummySetting.Disable_PortC ? Color.Tomato : Color.Lime;
|
||||
this.btPort2.BackColor = dummySetting.Disable_PortR ? Color.Tomato : Color.Lime;
|
||||
|
||||
//Printer usage status
|
||||
this.btPrintL.BackColor = dummySetting.Disable_PrinterL ? Color.Tomato : Color.Lime;
|
||||
this.btPrintR.BackColor = dummySetting.Disable_PrinterR ? Color.Tomato : Color.Lime;
|
||||
|
||||
//Unloader QR validation
|
||||
this.button3.BackColor = dummySetting.Enable_Unloader_QRValidation ? Color.Lime : Color.Tomato;
|
||||
|
||||
//Card detection sensor
|
||||
this.btCartDetL.BackColor = dummySetting.Detect_CartL ? Color.Lime : Color.Tomato;
|
||||
this.btCartDetC.BackColor = dummySetting.Detect_CartC ? Color.Lime : Color.Tomato;
|
||||
this.btCartDetR.BackColor = dummySetting.Detect_CartR ? Color.Lime : Color.Tomato;
|
||||
|
||||
//Magnet usage
|
||||
this.btmag0.BackColor = dummySetting.Enable_Magnet0 ? Color.Lime : Color.Tomato;
|
||||
this.btmag1.BackColor = dummySetting.Enable_Magnet1 ? Color.Lime : Color.Tomato;
|
||||
this.btmag2.BackColor = dummySetting.Enable_Magnet2 ? Color.Lime : Color.Tomato;
|
||||
|
||||
//Print paper detection
|
||||
this.btDetectPrintL.BackColor = dummySetting.Detect_PrintL ? Color.Lime : Color.Tomato;
|
||||
this.btDetectPrintR.BackColor = dummySetting.Detect_PrintR ? Color.Lime : Color.Tomato;
|
||||
|
||||
//Function usage
|
||||
this.button5.BackColor = dummySetting.Disable_Left == false ? Color.Lime : Color.Tomato;
|
||||
this.button6.BackColor = dummySetting.Disable_Right == false ? Color.Lime : Color.Tomato;
|
||||
//this.button9.BackColor = dummySetting.Enable_RQAuto ? Color.Lime : Color.Tomato;
|
||||
|
||||
this.button13.BackColor = dummySetting.Disable_PLAir == false ? Color.Lime : Color.Tomato;
|
||||
this.button14.BackColor = dummySetting.Disable_PRAir == false ? Color.Lime : Color.Tomato;
|
||||
this.btbuzAfterFinish.BackColor = dummySetting.Force_JobEndBuzzer ? Color.Gold : SystemColors.Control;
|
||||
this.button7.BackColor = dummySetting.Enable_PickerCylinder ? Color.Lime : Color.Tomato;
|
||||
this.btSystemBypass.BackColor = dummySetting.SystemBypass ? Color.DarkBlue : Color.Transparent;
|
||||
this.btSystemBypass.ForeColor = dummySetting.SystemBypass ? Color.White : Color.Black;
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (PUB.PasswordCheck() == false)
|
||||
{
|
||||
UTIL.MsgE("Password incorrect");
|
||||
return;
|
||||
}
|
||||
//check convmode - disable port0/2
|
||||
//if (dummySetting.Enable_ConveryorMode)
|
||||
//{
|
||||
// if (dummySetting.Disable_PortL == false)
|
||||
// {
|
||||
// UTIL.MsgE("컨베이어 사용시에는 포트(L/R)을 사용할 수 없습니다");
|
||||
// return;
|
||||
// }
|
||||
// if (dummySetting.Disable_PortR == false)
|
||||
// {
|
||||
// UTIL.MsgE("컨베이어 사용시에는 포트(L/R)을 사용할 수 없습니다");
|
||||
// return;
|
||||
// }
|
||||
//}
|
||||
|
||||
var ChangeL = dummySetting.Disable_Left != AR.SETTING.Data.Disable_Left;
|
||||
var ChangeR = dummySetting.Disable_Right != AR.SETTING.Data.Disable_Right;
|
||||
if (ChangeL || ChangeR)
|
||||
{
|
||||
UTIL.MsgI("Left/Right usage options will be applied after restarting the job");
|
||||
}
|
||||
|
||||
this.Invalidate();
|
||||
var chTable = PUB.userList.GetChanges();
|
||||
if (chTable != null)
|
||||
{
|
||||
string fn = UTIL.MakePath("Data", "users.xml");
|
||||
PUB.userList.WriteXml(fn, true);
|
||||
PUB.userList.AcceptChanges();
|
||||
}
|
||||
|
||||
bsRecipient.EndEdit();
|
||||
this.Validate();
|
||||
var recpTable = PUB.mailList.GetChanges();
|
||||
if (recpTable != null)
|
||||
{
|
||||
string fn = AppDomain.CurrentDomain.BaseDirectory + "mailList.xml";
|
||||
|
||||
PUB.mailList.WriteXml(fn, true);
|
||||
PUB.mailList.AcceptChanges();
|
||||
}
|
||||
bsMailForm.EndEdit();
|
||||
var formTable = PUB.mailForm.GetChanges();
|
||||
if (formTable != null)
|
||||
{
|
||||
string fn = AppDomain.CurrentDomain.BaseDirectory + "mailForm.xml";
|
||||
PUB.mailForm.WriteXml(fn, true);
|
||||
PUB.mailForm.AcceptChanges();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
dummySetting.CopyTo(SETTING.Data);
|
||||
SETTING.Save();
|
||||
PUB.log.AddI("Setting Save");
|
||||
PUB.log.Add(SETTING.Data.ToString());
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
PUB.log.AddE("Setting Save Error:" + ex.Message);
|
||||
UTIL.MsgE("Error\n" + ex.Message + "\n\nPlease try again");
|
||||
}
|
||||
|
||||
//PUB.flag.set(eVarBool.TestRun, btLoaderDetect.BackColor == Color.Lime);
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
||||
|
||||
private void button6_Click(object sender, EventArgs e)
|
||||
{
|
||||
dummySetting.Disable_Buzzer = !dummySetting.Disable_Buzzer;
|
||||
btBuz.BackColor = dummySetting.Disable_Buzzer ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void btTWLamp_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_TowerLamp = !dummySetting.Disable_TowerLamp;
|
||||
but.BackColor = dummySetting.Disable_TowerLamp ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void button2_Click_2(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_RoomLight = !dummySetting.Disable_RoomLight;
|
||||
but.BackColor = dummySetting.Disable_RoomLight == true ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void btLeftVac_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_PLVac = !dummySetting.Disable_PLVac;
|
||||
but.BackColor = dummySetting.Disable_PLVac ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void btRightVac_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_PRVac = !dummySetting.Disable_PRVac;
|
||||
but.BackColor = dummySetting.Disable_PRVac ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void btPickerVac_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_PKVac = !dummySetting.Disable_PKVac;
|
||||
but.BackColor = dummySetting.Disable_PKVac ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void btPort0_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_PortL = !dummySetting.Disable_PortL;
|
||||
but.BackColor = dummySetting.Disable_PortL ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void btPort1_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_PortC = !dummySetting.Disable_PortC;
|
||||
but.BackColor = dummySetting.Disable_PortC ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void btPort2_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_PortR = !dummySetting.Disable_PortR;
|
||||
but.BackColor = dummySetting.Disable_PortR ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void button4_Click_2(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_PrinterL = !dummySetting.Disable_PrinterL;
|
||||
but.BackColor = dummySetting.Disable_PrinterL ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void button3_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_PrinterR = !dummySetting.Disable_PrinterR;
|
||||
but.BackColor = dummySetting.Disable_PrinterR ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void button3_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Enable_Unloader_QRValidation = !dummySetting.Enable_Unloader_QRValidation;
|
||||
but.BackColor = dummySetting.Enable_Unloader_QRValidation == false ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void button6_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
//카트감지l
|
||||
var but = sender as Button;
|
||||
dummySetting.Detect_CartL = !dummySetting.Detect_CartL;
|
||||
but.BackColor = dummySetting.Detect_CartL == false ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void button7_Click(object sender, EventArgs e)
|
||||
{
|
||||
//카드감지c
|
||||
var but = sender as Button;
|
||||
dummySetting.Detect_CartC = !dummySetting.Detect_CartC;
|
||||
but.BackColor = dummySetting.Detect_CartC == false ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void button5_Click(object sender, EventArgs e)
|
||||
{
|
||||
//카트감지r
|
||||
var but = sender as Button;
|
||||
dummySetting.Detect_CartR = !dummySetting.Detect_CartR;
|
||||
but.BackColor = dummySetting.Detect_CartR == false ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void button7_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Enable_Magnet0 = !dummySetting.Enable_Magnet0;
|
||||
but.BackColor = dummySetting.Enable_Magnet0 == false ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void button6_Click_2(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Enable_Magnet1 = !dummySetting.Enable_Magnet1;
|
||||
but.BackColor = dummySetting.Enable_Magnet1 == false ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void button5_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Enable_Magnet2 = !dummySetting.Enable_Magnet2;
|
||||
but.BackColor = dummySetting.Enable_Magnet2 == false ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void btDetectPrintL_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Detect_PrintL = !dummySetting.Detect_PrintL;
|
||||
but.BackColor = dummySetting.Detect_PrintL == false ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void btDetectPrintR_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Detect_PrintR = !dummySetting.Detect_PrintR;
|
||||
but.BackColor = dummySetting.Detect_PrintR == false ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void button5_Click_2(object sender, EventArgs e)
|
||||
{
|
||||
//기능-좌
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_Left = !dummySetting.Disable_Left;
|
||||
but.BackColor = dummySetting.Disable_Left == true ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void button6_Click_3(object sender, EventArgs e)
|
||||
{
|
||||
//기능-우
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_Right = !dummySetting.Disable_Right;
|
||||
but.BackColor = dummySetting.Disable_Right == true ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void btOpenZPL_Click(object sender, EventArgs e)
|
||||
{
|
||||
var fi = new System.IO.FileInfo( UTIL.MakePath("data","zpl.txt"));
|
||||
if (fi.Exists == false)
|
||||
{
|
||||
//System.IO.File.WriteAllText(fi.FullName, Properties.Settings.Default.ZPL7, System.Text.Encoding.Default);
|
||||
UTIL.MsgI("New ZPL file has been created\n" + fi.FullName);
|
||||
}
|
||||
using (var f = new Dialog.fZPLEditor(fi.FullName))
|
||||
f.ShowDialog();
|
||||
}
|
||||
|
||||
|
||||
private void button11_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (var f = new fSetting_ErrorMessage())
|
||||
f.ShowDialog();
|
||||
}
|
||||
|
||||
private void button12_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (var f = new fSetting_IOMessage())
|
||||
f.ShowDialog();
|
||||
}
|
||||
|
||||
private void button13_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_PLAir = !dummySetting.Disable_PLAir;
|
||||
but.BackColor = dummySetting.Disable_PLAir ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void button14_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_PRAir = !dummySetting.Disable_PRAir;
|
||||
but.BackColor = dummySetting.Disable_PRAir ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void button10_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Force_JobEndBuzzer = !dummySetting.Force_JobEndBuzzer;
|
||||
but.BackColor = dummySetting.Force_JobEndBuzzer ? Color.Gold : SystemColors.Control;
|
||||
}
|
||||
|
||||
private void button7_Click_2(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Enable_PickerCylinder = !dummySetting.Enable_PickerCylinder;
|
||||
but.BackColor = dummySetting.Enable_PickerCylinder == false ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void button8_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.SystemBypass = !dummySetting.SystemBypass;
|
||||
but.BackColor = dummySetting.SystemBypass ? Color.DarkBlue : Color.Transparent;
|
||||
but.ForeColor = dummySetting.SystemBypass ? Color.White : Color.Black;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
1919
Handler/Project/Setting/fSetting.resx
Normal file
1919
Handler/Project/Setting/fSetting.resx
Normal file
File diff suppressed because it is too large
Load Diff
276
Handler/Project/Setting/fSetting_ErrorMessage.Designer.cs
generated
Normal file
276
Handler/Project/Setting/fSetting_ErrorMessage.Designer.cs
generated
Normal file
@@ -0,0 +1,276 @@
|
||||
namespace Project
|
||||
{
|
||||
partial class fSetting_ErrorMessage
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.bsError = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.dataSet1 = new Project.DataSet1();
|
||||
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
|
||||
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
|
||||
this.bsI = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.bsO = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components);
|
||||
this.dv1 = new arCtl.arDatagridView();
|
||||
this.idxDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.titleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Shorts = new System.Windows.Forms.DataGridViewButtonColumn();
|
||||
this.descriptionDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewButtonColumn();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.exportCSVToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsError)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataSet1)).BeginInit();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsI)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsO)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// bsError
|
||||
//
|
||||
this.bsError.DataMember = "ErrorDescription";
|
||||
this.bsError.DataSource = this.dataSet1;
|
||||
//
|
||||
// dataSet1
|
||||
//
|
||||
this.dataSet1.DataSetName = "DataSet1";
|
||||
this.dataSet1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
|
||||
//
|
||||
// toolStrip1
|
||||
//
|
||||
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(32, 32);
|
||||
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripButton1,
|
||||
this.toolStripButton2,
|
||||
this.toolStripSeparator1,
|
||||
this.toolStripButton3});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 822);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(1084, 39);
|
||||
this.toolStrip1.TabIndex = 1;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
// toolStripButton1
|
||||
//
|
||||
this.toolStripButton1.Image = global::Project.Properties.Resources.icons8_repeat_40;
|
||||
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton1.Name = "toolStripButton1";
|
||||
this.toolStripButton1.Size = new System.Drawing.Size(119, 36);
|
||||
this.toolStripButton1.Text = "Regenerate";
|
||||
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
|
||||
//
|
||||
// toolStripButton2
|
||||
//
|
||||
this.toolStripButton2.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
|
||||
this.toolStripButton2.Image = global::Project.Properties.Resources.icons8_save_close_40;
|
||||
this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton2.Name = "toolStripButton2";
|
||||
this.toolStripButton2.Size = new System.Drawing.Size(82, 36);
|
||||
this.toolStripButton2.Text = "Save(&S)";
|
||||
this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click_1);
|
||||
//
|
||||
// toolStripSeparator1
|
||||
//
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 39);
|
||||
//
|
||||
// toolStripButton3
|
||||
//
|
||||
this.toolStripButton3.Image = global::Project.Properties.Resources.icons8_resize_horizontal_40;
|
||||
this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton3.Name = "toolStripButton3";
|
||||
this.toolStripButton3.Size = new System.Drawing.Size(103, 36);
|
||||
this.toolStripButton3.Text = "Adjust Column Width";
|
||||
this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click);
|
||||
//
|
||||
// bsI
|
||||
//
|
||||
this.bsI.DataMember = "InputDescription";
|
||||
this.bsI.DataSource = this.dataSet1;
|
||||
//
|
||||
// bsO
|
||||
//
|
||||
this.bsO.DataMember = "OutputDescription";
|
||||
this.bsO.DataSource = this.dataSet1;
|
||||
//
|
||||
// errorProvider1
|
||||
//
|
||||
this.errorProvider1.ContainerControl = this;
|
||||
//
|
||||
// dv1
|
||||
//
|
||||
this.dv1.A_DelCurrentCell = true;
|
||||
this.dv1.A_EnterToTab = true;
|
||||
this.dv1.A_KoreanField = null;
|
||||
this.dv1.A_UpperField = null;
|
||||
this.dv1.A_ViewRownumOnHeader = false;
|
||||
this.dv1.AllowUserToAddRows = false;
|
||||
this.dv1.AutoGenerateColumns = false;
|
||||
this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.idxDataGridViewTextBoxColumn,
|
||||
this.titleDataGridViewTextBoxColumn,
|
||||
this.Shorts,
|
||||
this.descriptionDataGridViewTextBoxColumn});
|
||||
this.dv1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.dv1.DataSource = this.bsError;
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle4.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dv1.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dv1.Location = new System.Drawing.Point(0, 0);
|
||||
this.dv1.Name = "dv1";
|
||||
this.dv1.RowTemplate.Height = 23;
|
||||
this.dv1.Size = new System.Drawing.Size(1084, 822);
|
||||
this.dv1.TabIndex = 0;
|
||||
this.dv1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.arDatagridView1_CellContentClick);
|
||||
//
|
||||
// idxDataGridViewTextBoxColumn
|
||||
//
|
||||
this.idxDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
|
||||
this.idxDataGridViewTextBoxColumn.DataPropertyName = "Idx";
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
|
||||
this.idxDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.idxDataGridViewTextBoxColumn.HeaderText = "Code";
|
||||
this.idxDataGridViewTextBoxColumn.Name = "idxDataGridViewTextBoxColumn";
|
||||
this.idxDataGridViewTextBoxColumn.ReadOnly = true;
|
||||
this.idxDataGridViewTextBoxColumn.Width = 70;
|
||||
//
|
||||
// titleDataGridViewTextBoxColumn
|
||||
//
|
||||
this.titleDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
|
||||
this.titleDataGridViewTextBoxColumn.DataPropertyName = "Title";
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
|
||||
this.titleDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.titleDataGridViewTextBoxColumn.HeaderText = "CodeName";
|
||||
this.titleDataGridViewTextBoxColumn.Name = "titleDataGridViewTextBoxColumn";
|
||||
this.titleDataGridViewTextBoxColumn.ReadOnly = true;
|
||||
this.titleDataGridViewTextBoxColumn.Width = 110;
|
||||
//
|
||||
// Shorts
|
||||
//
|
||||
this.Shorts.DataPropertyName = "Shorts";
|
||||
this.Shorts.HeaderText = "Error Description";
|
||||
this.Shorts.Name = "Shorts";
|
||||
this.Shorts.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.Shorts.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.Shorts.Visible = false;
|
||||
this.Shorts.Width = 94;
|
||||
//
|
||||
// descriptionDataGridViewTextBoxColumn
|
||||
//
|
||||
this.descriptionDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
this.descriptionDataGridViewTextBoxColumn.DataPropertyName = "Description";
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.descriptionDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.descriptionDataGridViewTextBoxColumn.HeaderText = "Check/Action Items";
|
||||
this.descriptionDataGridViewTextBoxColumn.Name = "descriptionDataGridViewTextBoxColumn";
|
||||
this.descriptionDataGridViewTextBoxColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.descriptionDataGridViewTextBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.exportCSVToolStripMenuItem});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(136, 26);
|
||||
//
|
||||
// exportCSVToolStripMenuItem
|
||||
//
|
||||
this.exportCSVToolStripMenuItem.Name = "exportCSVToolStripMenuItem";
|
||||
this.exportCSVToolStripMenuItem.Size = new System.Drawing.Size(135, 22);
|
||||
this.exportCSVToolStripMenuItem.Text = "Export CSV";
|
||||
this.exportCSVToolStripMenuItem.Click += new System.EventHandler(this.exportCSVToolStripMenuItem_Click);
|
||||
//
|
||||
// fSetting_ErrorMessage
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1084, 861);
|
||||
this.Controls.Add(this.dv1);
|
||||
this.Controls.Add(this.toolStrip1);
|
||||
this.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KeyPreview = true;
|
||||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.Name = "fSetting_ErrorMessage";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Error Message Definition";
|
||||
this.Load += new System.EventHandler(this.@__Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsError)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataSet1)).EndInit();
|
||||
this.toolStrip1.ResumeLayout(false);
|
||||
this.toolStrip1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsI)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsO)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
private DataSet1 dataSet1;
|
||||
private System.Windows.Forms.ToolTip toolTip1;
|
||||
private System.Windows.Forms.ErrorProvider errorProvider1;
|
||||
private arCtl.arDatagridView dv1;
|
||||
private System.Windows.Forms.BindingSource bsError;
|
||||
private System.Windows.Forms.ToolStrip toolStrip1;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton1;
|
||||
private System.Windows.Forms.BindingSource bsI;
|
||||
private System.Windows.Forms.BindingSource bsO;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton2;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn idxDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn titleDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewButtonColumn Shorts;
|
||||
private System.Windows.Forms.DataGridViewButtonColumn descriptionDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton3;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
||||
private System.Windows.Forms.ToolStripMenuItem exportCSVToolStripMenuItem;
|
||||
}
|
||||
}
|
||||
222
Handler/Project/Setting/fSetting_ErrorMessage.cs
Normal file
222
Handler/Project/Setting/fSetting_ErrorMessage.cs
Normal file
@@ -0,0 +1,222 @@
|
||||
using AR;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Project
|
||||
{
|
||||
public partial class fSetting_ErrorMessage : Form
|
||||
{
|
||||
|
||||
public fSetting_ErrorMessage()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
|
||||
this.KeyDown += (s1, e1) =>
|
||||
{
|
||||
if (e1.KeyCode == Keys.Escape)
|
||||
this.Close();
|
||||
if (DateTime.Now > PUB.LastInputTime) PUB.LastInputTime = DateTime.Now;
|
||||
};
|
||||
this.MouseMove += (s1, e1) => { if (DateTime.Now > PUB.LastInputTime) PUB.LastInputTime = DateTime.Now; };
|
||||
this.FormClosing += FSetting_ErrorMessage_FormClosing;
|
||||
}
|
||||
|
||||
private void FSetting_ErrorMessage_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
this.bsError.EndEdit();
|
||||
this.Validate();
|
||||
var chgs = this.dataSet1.ErrorDescription.GetChanges();
|
||||
if (chgs != null && chgs.Rows.Count > 0)
|
||||
{
|
||||
if (UTIL.MsgQ("There are unsaved changes. If you close now, these changes will be lost. Do you want to close the window?") != DialogResult.Yes)
|
||||
{
|
||||
e.Cancel = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
this.dv1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
|
||||
this.dv1.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells;
|
||||
|
||||
RefreshError();
|
||||
}
|
||||
|
||||
void RefreshError()
|
||||
{
|
||||
this.dataSet1.ErrorDescription.Clear();
|
||||
this.dataSet1.ErrorDescription.Merge(PUB.mdm.dataSet.ErrorDescription);
|
||||
this.dataSet1.AcceptChanges();
|
||||
|
||||
//자료를 업데이트해준다.
|
||||
var ecodelist = Enum.GetValues(typeof(eECode));
|
||||
for (short valueI = 0; valueI < 255; valueI++)
|
||||
{
|
||||
eECode valu = (eECode)valueI;
|
||||
//short valueI = (short)valu;
|
||||
|
||||
var dr = this.dataSet1.ErrorDescription.Where(t => t.Idx == valueI).FirstOrDefault();
|
||||
if (dr == null)
|
||||
{
|
||||
//이 값이 없는경우에는 추가하지 않는다
|
||||
if (valu.ToString() == valueI.ToString())
|
||||
{
|
||||
//두 이름이 같다면 존재하는 코드 값이다
|
||||
}
|
||||
else
|
||||
{
|
||||
var newdr = dataSet1.ErrorDescription.NewErrorDescriptionRow();
|
||||
newdr.Idx = valueI;
|
||||
newdr.Title = valu.ToString();
|
||||
newdr.EndEdit();
|
||||
this.dataSet1.ErrorDescription.AddErrorDescriptionRow(newdr);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (valu.ToString() == valueI.ToString())
|
||||
{
|
||||
//해당 값이 업어졌다
|
||||
dr.Title = "n/a";
|
||||
dr.EndEdit();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dr.Title.Equals(valu.ToString()) == false)
|
||||
{
|
||||
dr.Title = valu.ToString();
|
||||
dr.EndEdit();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
this.dataSet1.AcceptChanges();
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
//다시생성한다.
|
||||
this.dataSet1.ErrorDescription.Clear();
|
||||
this.dataSet1.ErrorDescription.AcceptChanges();
|
||||
|
||||
var db = PUB.mdm.dataSet.ErrorDescription;
|
||||
|
||||
//자료를 업데이트해준다.
|
||||
var ecodelist = Enum.GetValues(typeof(eECode));
|
||||
for (short valueI = 0; valueI < 255; valueI++)
|
||||
{
|
||||
eECode valu = (eECode)valueI;
|
||||
|
||||
//변환된 이름과 숫자이름이 같다면 enum 에 정의되지 않은 데이터이다.
|
||||
if(valu.ToString().Equals(valueI.ToString()))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
//같은 이름으로 데이터를 검색
|
||||
var drT = db.Where(t => t.Title == valu.ToString()).FirstOrDefault();
|
||||
if(drT != null)
|
||||
{
|
||||
var newdr = dataSet1.ErrorDescription.NewErrorDescriptionRow();
|
||||
newdr.Idx = valueI;
|
||||
newdr.Title = valu.ToString();
|
||||
newdr.Description = drT.Description;
|
||||
this.dataSet1.ErrorDescription.AddErrorDescriptionRow(newdr);
|
||||
}
|
||||
else
|
||||
{
|
||||
//같은버호로 찾는다
|
||||
var drN = this.dataSet1.ErrorDescription.Where(t => t.Idx == valueI).FirstOrDefault();
|
||||
if(drN != null)
|
||||
{
|
||||
var newdr = dataSet1.ErrorDescription.NewErrorDescriptionRow();
|
||||
newdr.Idx = valueI;
|
||||
newdr.Title = valu.ToString();
|
||||
newdr.Description = drN.Description;
|
||||
this.dataSet1.ErrorDescription.AddErrorDescriptionRow(newdr);
|
||||
}
|
||||
else
|
||||
{
|
||||
//번호도 타이틀도 없다
|
||||
var newdr = dataSet1.ErrorDescription.NewErrorDescriptionRow();
|
||||
newdr.Idx = valueI;
|
||||
newdr.Title = valu.ToString();
|
||||
newdr.EndEdit();
|
||||
this.dataSet1.ErrorDescription.AddErrorDescriptionRow(newdr);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.dataSet1.AcceptChanges();
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void arDatagridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
if (e.RowIndex < 0) return;
|
||||
if (e.ColumnIndex == 2 || e.ColumnIndex == 3)
|
||||
{
|
||||
var dv = sender as DataGridView;
|
||||
var str = string.Empty;
|
||||
var cell = dv.Rows[e.RowIndex].Cells[e.ColumnIndex];
|
||||
if (cell != null && cell.Value != null) str = cell.Value.ToString();
|
||||
var f = new Dialog.fMessageInput(str);
|
||||
if (f.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
cell.Value = f.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void toolStripButton2_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
this.bsError.EndEdit();
|
||||
this.Validate();
|
||||
|
||||
this.dataSet1.AcceptChanges();
|
||||
|
||||
PUB.mdm.dataSet.ErrorDescription.Clear();
|
||||
PUB.mdm.dataSet.Merge(this.dataSet1.ErrorDescription);
|
||||
PUB.mdm.dataSet.AcceptChanges();
|
||||
PUB.mdm.SaveModelE();
|
||||
|
||||
UTIL.MsgI("Save completed");
|
||||
|
||||
//DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
||||
private void toolStripButton3_Click(object sender, EventArgs e)
|
||||
{
|
||||
dv1.AutoResizeColumns();
|
||||
}
|
||||
|
||||
private void exportCSVToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var sd = new SaveFileDialog();
|
||||
sd.Filter = "Tab-separated text file(*.txt)|*.txt";
|
||||
if (sd.ShowDialog() != DialogResult.OK) return;
|
||||
|
||||
var sb = new System.Text.StringBuilder();
|
||||
foreach (var dr in dataSet1.ErrorDescription.Select("","idx"))
|
||||
{
|
||||
var desc = dr["Description"].ToString();
|
||||
desc = desc.Replace("\r", "").Replace("\n", "");
|
||||
sb.AppendLine($"{dr["Idx"].ToString()}\t{dr["Title"].ToString()}\t{desc}");
|
||||
}
|
||||
System.IO.File.WriteAllText(sd.FileName, sb.ToString(), System.Text.Encoding.Default);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
147
Handler/Project/Setting/fSetting_ErrorMessage.resx
Normal file
147
Handler/Project/Setting/fSetting_ErrorMessage.resx
Normal file
@@ -0,0 +1,147 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="bsError.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>346, 17</value>
|
||||
</metadata>
|
||||
<metadata name="dataSet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>437, 17</value>
|
||||
</metadata>
|
||||
<metadata name="bsI.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>543, 17</value>
|
||||
</metadata>
|
||||
<metadata name="bsO.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>611, 17</value>
|
||||
</metadata>
|
||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>117, 17</value>
|
||||
</metadata>
|
||||
<metadata name="errorProvider1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>214, 17</value>
|
||||
</metadata>
|
||||
<metadata name="Shorts.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>685, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
653
Handler/Project/Setting/fSetting_IOMessage.Designer.cs
generated
Normal file
653
Handler/Project/Setting/fSetting_IOMessage.Designer.cs
generated
Normal file
@@ -0,0 +1,653 @@
|
||||
namespace Project
|
||||
{
|
||||
partial class fSetting_IOMessage
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fSetting_IOMessage));
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.bsError = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.dataSet1 = new Project.DataSet1();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.inputDescriptionDataGridView = new arCtl.arDatagridView();
|
||||
this.bsI = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.bindingNavigator1 = new System.Windows.Forms.BindingNavigator(this.components);
|
||||
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
|
||||
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox();
|
||||
this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.outputDescriptionDataGridView = new arCtl.arDatagridView();
|
||||
this.bsO = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.bindingNavigator2 = new System.Windows.Forms.BindingNavigator(this.components);
|
||||
this.bindingNavigatorAddNewItem1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorCountItem1 = new System.Windows.Forms.ToolStripLabel();
|
||||
this.bindingNavigatorDeleteItem1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorMoveFirstItem1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorMovePreviousItem1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorSeparator3 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.bindingNavigatorPositionItem1 = new System.Windows.Forms.ToolStripTextBox();
|
||||
this.bindingNavigatorSeparator4 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.bindingNavigatorMoveNextItem1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorMoveLastItem1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorSeparator5 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components);
|
||||
this.toolStrip1 = new System.Windows.Forms.ToolStrip();
|
||||
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.toolStripButton3 = new System.Windows.Forms.ToolStripButton();
|
||||
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.TerminalNo = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Invert = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewButtonColumn();
|
||||
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.dataGridViewButtonColumn1 = new System.Windows.Forms.DataGridViewButtonColumn();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsError)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataSet1)).BeginInit();
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.inputDescriptionDataGridView)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsI)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).BeginInit();
|
||||
this.bindingNavigator1.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.outputDescriptionDataGridView)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsO)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingNavigator2)).BeginInit();
|
||||
this.bindingNavigator2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// bsError
|
||||
//
|
||||
this.bsError.DataMember = "ErrorDescription";
|
||||
this.bsError.DataSource = this.dataSet1;
|
||||
//
|
||||
// dataSet1
|
||||
//
|
||||
this.dataSet1.DataSetName = "DataSet1";
|
||||
this.dataSet1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
|
||||
//
|
||||
// tableLayoutPanel1
|
||||
//
|
||||
this.tableLayoutPanel1.ColumnCount = 1;
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
||||
this.tableLayoutPanel1.Controls.Add(this.panel2, 0, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.panel3, 0, 1);
|
||||
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
||||
this.tableLayoutPanel1.RowCount = 2;
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
|
||||
this.tableLayoutPanel1.Size = new System.Drawing.Size(1084, 822);
|
||||
this.tableLayoutPanel1.TabIndex = 0;
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.AutoScroll = true;
|
||||
this.panel2.Controls.Add(this.inputDescriptionDataGridView);
|
||||
this.panel2.Controls.Add(this.bindingNavigator1);
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel2.Location = new System.Drawing.Point(3, 3);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(1078, 405);
|
||||
this.panel2.TabIndex = 0;
|
||||
//
|
||||
// inputDescriptionDataGridView
|
||||
//
|
||||
this.inputDescriptionDataGridView.A_DelCurrentCell = true;
|
||||
this.inputDescriptionDataGridView.A_EnterToTab = true;
|
||||
this.inputDescriptionDataGridView.A_KoreanField = null;
|
||||
this.inputDescriptionDataGridView.A_UpperField = null;
|
||||
this.inputDescriptionDataGridView.A_ViewRownumOnHeader = false;
|
||||
this.inputDescriptionDataGridView.AllowUserToAddRows = false;
|
||||
this.inputDescriptionDataGridView.AutoGenerateColumns = false;
|
||||
this.inputDescriptionDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
|
||||
this.inputDescriptionDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||
this.inputDescriptionDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.inputDescriptionDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.dataGridViewTextBoxColumn1,
|
||||
this.dataGridViewTextBoxColumn2,
|
||||
this.TerminalNo,
|
||||
this.Invert,
|
||||
this.dataGridViewTextBoxColumn3});
|
||||
this.inputDescriptionDataGridView.DataSource = this.bsI;
|
||||
this.inputDescriptionDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.inputDescriptionDataGridView.Location = new System.Drawing.Point(0, 0);
|
||||
this.inputDescriptionDataGridView.Name = "inputDescriptionDataGridView";
|
||||
this.inputDescriptionDataGridView.RowTemplate.Height = 23;
|
||||
this.inputDescriptionDataGridView.Size = new System.Drawing.Size(1078, 380);
|
||||
this.inputDescriptionDataGridView.TabIndex = 0;
|
||||
this.inputDescriptionDataGridView.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.inputDescriptionDataGridView_CellContentClick);
|
||||
//
|
||||
// bsI
|
||||
//
|
||||
this.bsI.DataMember = "InputDescription";
|
||||
this.bsI.DataSource = this.dataSet1;
|
||||
//
|
||||
// bindingNavigator1
|
||||
//
|
||||
this.bindingNavigator1.AddNewItem = this.bindingNavigatorAddNewItem;
|
||||
this.bindingNavigator1.BindingSource = this.bsI;
|
||||
this.bindingNavigator1.CountItem = this.bindingNavigatorCountItem;
|
||||
this.bindingNavigator1.DeleteItem = this.bindingNavigatorDeleteItem;
|
||||
this.bindingNavigator1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.bindingNavigator1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.bindingNavigatorMoveFirstItem,
|
||||
this.bindingNavigatorMovePreviousItem,
|
||||
this.bindingNavigatorSeparator,
|
||||
this.bindingNavigatorPositionItem,
|
||||
this.bindingNavigatorCountItem,
|
||||
this.bindingNavigatorSeparator1,
|
||||
this.bindingNavigatorMoveNextItem,
|
||||
this.bindingNavigatorMoveLastItem,
|
||||
this.bindingNavigatorSeparator2,
|
||||
this.bindingNavigatorAddNewItem,
|
||||
this.bindingNavigatorDeleteItem});
|
||||
this.bindingNavigator1.Location = new System.Drawing.Point(0, 380);
|
||||
this.bindingNavigator1.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
|
||||
this.bindingNavigator1.MoveLastItem = this.bindingNavigatorMoveLastItem;
|
||||
this.bindingNavigator1.MoveNextItem = this.bindingNavigatorMoveNextItem;
|
||||
this.bindingNavigator1.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
|
||||
this.bindingNavigator1.Name = "bindingNavigator1";
|
||||
this.bindingNavigator1.PositionItem = this.bindingNavigatorPositionItem;
|
||||
this.bindingNavigator1.Size = new System.Drawing.Size(1078, 25);
|
||||
this.bindingNavigator1.TabIndex = 1;
|
||||
this.bindingNavigator1.Text = "bindingNavigator1";
|
||||
//
|
||||
// bindingNavigatorAddNewItem
|
||||
//
|
||||
this.bindingNavigatorAddNewItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
|
||||
this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem";
|
||||
this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorAddNewItem.Text = "Add New";
|
||||
//
|
||||
// bindingNavigatorCountItem
|
||||
//
|
||||
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
|
||||
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(27, 22);
|
||||
this.bindingNavigatorCountItem.Text = "/{0}";
|
||||
this.bindingNavigatorCountItem.ToolTipText = "Total item count";
|
||||
//
|
||||
// bindingNavigatorDeleteItem
|
||||
//
|
||||
this.bindingNavigatorDeleteItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
|
||||
this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem";
|
||||
this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorDeleteItem.Text = "Delete";
|
||||
//
|
||||
// bindingNavigatorMoveFirstItem
|
||||
//
|
||||
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
|
||||
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
|
||||
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorMoveFirstItem.Text = "Move first";
|
||||
//
|
||||
// bindingNavigatorMovePreviousItem
|
||||
//
|
||||
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
|
||||
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
|
||||
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorMovePreviousItem.Text = "Move previous";
|
||||
//
|
||||
// bindingNavigatorSeparator
|
||||
//
|
||||
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
|
||||
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25);
|
||||
//
|
||||
// bindingNavigatorPositionItem
|
||||
//
|
||||
this.bindingNavigatorPositionItem.AccessibleName = "Position";
|
||||
this.bindingNavigatorPositionItem.AutoSize = false;
|
||||
this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F);
|
||||
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
|
||||
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
|
||||
this.bindingNavigatorPositionItem.Text = "0";
|
||||
this.bindingNavigatorPositionItem.ToolTipText = "Current position";
|
||||
//
|
||||
// bindingNavigatorSeparator1
|
||||
//
|
||||
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
|
||||
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 25);
|
||||
//
|
||||
// bindingNavigatorMoveNextItem
|
||||
//
|
||||
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
|
||||
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
|
||||
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorMoveNextItem.Text = "Move next";
|
||||
//
|
||||
// bindingNavigatorMoveLastItem
|
||||
//
|
||||
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
|
||||
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
|
||||
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorMoveLastItem.Text = "Move last";
|
||||
//
|
||||
// bindingNavigatorSeparator2
|
||||
//
|
||||
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
|
||||
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25);
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.AutoScroll = true;
|
||||
this.panel3.Controls.Add(this.outputDescriptionDataGridView);
|
||||
this.panel3.Controls.Add(this.bindingNavigator2);
|
||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel3.Location = new System.Drawing.Point(3, 414);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(1078, 405);
|
||||
this.panel3.TabIndex = 0;
|
||||
//
|
||||
// outputDescriptionDataGridView
|
||||
//
|
||||
this.outputDescriptionDataGridView.A_DelCurrentCell = true;
|
||||
this.outputDescriptionDataGridView.A_EnterToTab = true;
|
||||
this.outputDescriptionDataGridView.A_KoreanField = null;
|
||||
this.outputDescriptionDataGridView.A_UpperField = null;
|
||||
this.outputDescriptionDataGridView.A_ViewRownumOnHeader = false;
|
||||
this.outputDescriptionDataGridView.AllowUserToAddRows = false;
|
||||
this.outputDescriptionDataGridView.AutoGenerateColumns = false;
|
||||
this.outputDescriptionDataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
|
||||
this.outputDescriptionDataGridView.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(128)))));
|
||||
this.outputDescriptionDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.outputDescriptionDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.dataGridViewTextBoxColumn4,
|
||||
this.dataGridViewTextBoxColumn5,
|
||||
this.dataGridViewTextBoxColumn6,
|
||||
this.dataGridViewCheckBoxColumn1,
|
||||
this.dataGridViewButtonColumn1});
|
||||
this.outputDescriptionDataGridView.DataSource = this.bsO;
|
||||
this.outputDescriptionDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.outputDescriptionDataGridView.Location = new System.Drawing.Point(0, 0);
|
||||
this.outputDescriptionDataGridView.Name = "outputDescriptionDataGridView";
|
||||
this.outputDescriptionDataGridView.RowTemplate.Height = 23;
|
||||
this.outputDescriptionDataGridView.Size = new System.Drawing.Size(1078, 380);
|
||||
this.outputDescriptionDataGridView.TabIndex = 0;
|
||||
this.outputDescriptionDataGridView.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.inputDescriptionDataGridView_CellContentClick);
|
||||
//
|
||||
// bsO
|
||||
//
|
||||
this.bsO.DataMember = "OutputDescription";
|
||||
this.bsO.DataSource = this.dataSet1;
|
||||
//
|
||||
// bindingNavigator2
|
||||
//
|
||||
this.bindingNavigator2.AddNewItem = this.bindingNavigatorAddNewItem1;
|
||||
this.bindingNavigator2.BindingSource = this.bsO;
|
||||
this.bindingNavigator2.CountItem = this.bindingNavigatorCountItem1;
|
||||
this.bindingNavigator2.DeleteItem = this.bindingNavigatorDeleteItem1;
|
||||
this.bindingNavigator2.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.bindingNavigator2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.bindingNavigatorMoveFirstItem1,
|
||||
this.bindingNavigatorMovePreviousItem1,
|
||||
this.bindingNavigatorSeparator3,
|
||||
this.bindingNavigatorPositionItem1,
|
||||
this.bindingNavigatorCountItem1,
|
||||
this.bindingNavigatorSeparator4,
|
||||
this.bindingNavigatorMoveNextItem1,
|
||||
this.bindingNavigatorMoveLastItem1,
|
||||
this.bindingNavigatorSeparator5,
|
||||
this.bindingNavigatorAddNewItem1,
|
||||
this.bindingNavigatorDeleteItem1});
|
||||
this.bindingNavigator2.Location = new System.Drawing.Point(0, 380);
|
||||
this.bindingNavigator2.MoveFirstItem = this.bindingNavigatorMoveFirstItem1;
|
||||
this.bindingNavigator2.MoveLastItem = this.bindingNavigatorMoveLastItem1;
|
||||
this.bindingNavigator2.MoveNextItem = this.bindingNavigatorMoveNextItem1;
|
||||
this.bindingNavigator2.MovePreviousItem = this.bindingNavigatorMovePreviousItem1;
|
||||
this.bindingNavigator2.Name = "bindingNavigator2";
|
||||
this.bindingNavigator2.PositionItem = this.bindingNavigatorPositionItem1;
|
||||
this.bindingNavigator2.Size = new System.Drawing.Size(1078, 25);
|
||||
this.bindingNavigator2.TabIndex = 1;
|
||||
this.bindingNavigator2.Text = "bindingNavigator2";
|
||||
//
|
||||
// bindingNavigatorAddNewItem1
|
||||
//
|
||||
this.bindingNavigatorAddNewItem1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorAddNewItem1.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem1.Image")));
|
||||
this.bindingNavigatorAddNewItem1.Name = "bindingNavigatorAddNewItem1";
|
||||
this.bindingNavigatorAddNewItem1.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorAddNewItem1.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorAddNewItem1.Text = "Add New";
|
||||
//
|
||||
// bindingNavigatorCountItem1
|
||||
//
|
||||
this.bindingNavigatorCountItem1.Name = "bindingNavigatorCountItem1";
|
||||
this.bindingNavigatorCountItem1.Size = new System.Drawing.Size(27, 22);
|
||||
this.bindingNavigatorCountItem1.Text = "/{0}";
|
||||
this.bindingNavigatorCountItem1.ToolTipText = "Total item count";
|
||||
//
|
||||
// bindingNavigatorDeleteItem1
|
||||
//
|
||||
this.bindingNavigatorDeleteItem1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorDeleteItem1.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem1.Image")));
|
||||
this.bindingNavigatorDeleteItem1.Name = "bindingNavigatorDeleteItem1";
|
||||
this.bindingNavigatorDeleteItem1.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorDeleteItem1.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorDeleteItem1.Text = "Delete";
|
||||
//
|
||||
// bindingNavigatorMoveFirstItem1
|
||||
//
|
||||
this.bindingNavigatorMoveFirstItem1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorMoveFirstItem1.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem1.Image")));
|
||||
this.bindingNavigatorMoveFirstItem1.Name = "bindingNavigatorMoveFirstItem1";
|
||||
this.bindingNavigatorMoveFirstItem1.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorMoveFirstItem1.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorMoveFirstItem1.Text = "Move first";
|
||||
//
|
||||
// bindingNavigatorMovePreviousItem1
|
||||
//
|
||||
this.bindingNavigatorMovePreviousItem1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorMovePreviousItem1.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem1.Image")));
|
||||
this.bindingNavigatorMovePreviousItem1.Name = "bindingNavigatorMovePreviousItem1";
|
||||
this.bindingNavigatorMovePreviousItem1.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorMovePreviousItem1.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorMovePreviousItem1.Text = "Move previous";
|
||||
//
|
||||
// bindingNavigatorSeparator3
|
||||
//
|
||||
this.bindingNavigatorSeparator3.Name = "bindingNavigatorSeparator3";
|
||||
this.bindingNavigatorSeparator3.Size = new System.Drawing.Size(6, 25);
|
||||
//
|
||||
// bindingNavigatorPositionItem1
|
||||
//
|
||||
this.bindingNavigatorPositionItem1.AccessibleName = "Position";
|
||||
this.bindingNavigatorPositionItem1.AutoSize = false;
|
||||
this.bindingNavigatorPositionItem1.Font = new System.Drawing.Font("맑은 고딕", 9F);
|
||||
this.bindingNavigatorPositionItem1.Name = "bindingNavigatorPositionItem1";
|
||||
this.bindingNavigatorPositionItem1.Size = new System.Drawing.Size(50, 23);
|
||||
this.bindingNavigatorPositionItem1.Text = "0";
|
||||
this.bindingNavigatorPositionItem1.ToolTipText = "Current position";
|
||||
//
|
||||
// bindingNavigatorSeparator4
|
||||
//
|
||||
this.bindingNavigatorSeparator4.Name = "bindingNavigatorSeparator4";
|
||||
this.bindingNavigatorSeparator4.Size = new System.Drawing.Size(6, 25);
|
||||
//
|
||||
// bindingNavigatorMoveNextItem1
|
||||
//
|
||||
this.bindingNavigatorMoveNextItem1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorMoveNextItem1.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem1.Image")));
|
||||
this.bindingNavigatorMoveNextItem1.Name = "bindingNavigatorMoveNextItem1";
|
||||
this.bindingNavigatorMoveNextItem1.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorMoveNextItem1.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorMoveNextItem1.Text = "Move next";
|
||||
//
|
||||
// bindingNavigatorMoveLastItem1
|
||||
//
|
||||
this.bindingNavigatorMoveLastItem1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorMoveLastItem1.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem1.Image")));
|
||||
this.bindingNavigatorMoveLastItem1.Name = "bindingNavigatorMoveLastItem1";
|
||||
this.bindingNavigatorMoveLastItem1.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorMoveLastItem1.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorMoveLastItem1.Text = "Move last";
|
||||
//
|
||||
// bindingNavigatorSeparator5
|
||||
//
|
||||
this.bindingNavigatorSeparator5.Name = "bindingNavigatorSeparator5";
|
||||
this.bindingNavigatorSeparator5.Size = new System.Drawing.Size(6, 25);
|
||||
//
|
||||
// errorProvider1
|
||||
//
|
||||
this.errorProvider1.ContainerControl = this;
|
||||
//
|
||||
// toolStrip1
|
||||
//
|
||||
this.toolStrip1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.toolStrip1.ImageScalingSize = new System.Drawing.Size(32, 32);
|
||||
this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripButton1,
|
||||
this.toolStripButton3});
|
||||
this.toolStrip1.Location = new System.Drawing.Point(0, 822);
|
||||
this.toolStrip1.Name = "toolStrip1";
|
||||
this.toolStrip1.Size = new System.Drawing.Size(1084, 39);
|
||||
this.toolStrip1.TabIndex = 3;
|
||||
this.toolStrip1.Text = "toolStrip1";
|
||||
//
|
||||
// toolStripButton1
|
||||
//
|
||||
this.toolStripButton1.Image = global::Project.Properties.Resources.icons8_repeat_40;
|
||||
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton1.Name = "toolStripButton1";
|
||||
this.toolStripButton1.Size = new System.Drawing.Size(119, 36);
|
||||
this.toolStripButton1.Text = "Reload";
|
||||
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click_1);
|
||||
//
|
||||
// toolStripButton3
|
||||
//
|
||||
this.toolStripButton3.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
|
||||
this.toolStripButton3.Image = global::Project.Properties.Resources.icons8_save_close_40;
|
||||
this.toolStripButton3.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton3.Name = "toolStripButton3";
|
||||
this.toolStripButton3.Size = new System.Drawing.Size(82, 36);
|
||||
this.toolStripButton3.Text = "Save(&S)";
|
||||
this.toolStripButton3.Click += new System.EventHandler(this.toolStripButton3_Click_1);
|
||||
//
|
||||
// dataGridViewTextBoxColumn1
|
||||
//
|
||||
this.dataGridViewTextBoxColumn1.DataPropertyName = "Idx";
|
||||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dataGridViewTextBoxColumn1.HeaderText = "No";
|
||||
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
|
||||
this.dataGridViewTextBoxColumn1.Width = 54;
|
||||
//
|
||||
// dataGridViewTextBoxColumn2
|
||||
//
|
||||
this.dataGridViewTextBoxColumn2.DataPropertyName = "Title";
|
||||
this.dataGridViewTextBoxColumn2.HeaderText = "Pin Name";
|
||||
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
|
||||
this.dataGridViewTextBoxColumn2.Width = 84;
|
||||
//
|
||||
// TerminalNo
|
||||
//
|
||||
this.TerminalNo.DataPropertyName = "TerminalNo";
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.TerminalNo.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.TerminalNo.HeaderText = "Terminal Number";
|
||||
this.TerminalNo.Name = "TerminalNo";
|
||||
this.TerminalNo.Width = 109;
|
||||
//
|
||||
// Invert
|
||||
//
|
||||
this.Invert.DataPropertyName = "Invert";
|
||||
this.Invert.HeaderText = "Invert";
|
||||
this.Invert.Name = "Invert";
|
||||
this.Invert.Width = 53;
|
||||
//
|
||||
// dataGridViewTextBoxColumn3
|
||||
//
|
||||
this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
this.dataGridViewTextBoxColumn3.DataPropertyName = "Description";
|
||||
this.dataGridViewTextBoxColumn3.HeaderText = "Pin Description";
|
||||
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
|
||||
this.dataGridViewTextBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridViewTextBoxColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// dataGridViewTextBoxColumn4
|
||||
//
|
||||
this.dataGridViewTextBoxColumn4.DataPropertyName = "Idx";
|
||||
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridViewTextBoxColumn4.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.dataGridViewTextBoxColumn4.HeaderText = "No";
|
||||
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
|
||||
this.dataGridViewTextBoxColumn4.Width = 54;
|
||||
//
|
||||
// dataGridViewTextBoxColumn5
|
||||
//
|
||||
this.dataGridViewTextBoxColumn5.DataPropertyName = "Title";
|
||||
this.dataGridViewTextBoxColumn5.HeaderText = "Pin Name";
|
||||
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
|
||||
this.dataGridViewTextBoxColumn5.Width = 84;
|
||||
//
|
||||
// dataGridViewTextBoxColumn6
|
||||
//
|
||||
this.dataGridViewTextBoxColumn6.DataPropertyName = "TerminalNo";
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.dataGridViewTextBoxColumn6.HeaderText = "Terminal Number";
|
||||
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
|
||||
this.dataGridViewTextBoxColumn6.Width = 109;
|
||||
//
|
||||
// dataGridViewCheckBoxColumn1
|
||||
//
|
||||
this.dataGridViewCheckBoxColumn1.DataPropertyName = "Invert";
|
||||
this.dataGridViewCheckBoxColumn1.HeaderText = "Invert";
|
||||
this.dataGridViewCheckBoxColumn1.Name = "dataGridViewCheckBoxColumn1";
|
||||
this.dataGridViewCheckBoxColumn1.Width = 53;
|
||||
//
|
||||
// dataGridViewButtonColumn1
|
||||
//
|
||||
this.dataGridViewButtonColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
||||
this.dataGridViewButtonColumn1.DataPropertyName = "Description";
|
||||
this.dataGridViewButtonColumn1.HeaderText = "Pin Description";
|
||||
this.dataGridViewButtonColumn1.Name = "dataGridViewButtonColumn1";
|
||||
this.dataGridViewButtonColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dataGridViewButtonColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// fSetting_IOMessage
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1084, 861);
|
||||
this.Controls.Add(this.tableLayoutPanel1);
|
||||
this.Controls.Add(this.toolStrip1);
|
||||
this.Font = new System.Drawing.Font("맑은 고딕", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.KeyPreview = true;
|
||||
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.Name = "fSetting_IOMessage";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "I/O Description Definition";
|
||||
this.Load += new System.EventHandler(this.@__Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsError)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataSet1)).EndInit();
|
||||
this.tableLayoutPanel1.ResumeLayout(false);
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.inputDescriptionDataGridView)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsI)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).EndInit();
|
||||
this.bindingNavigator1.ResumeLayout(false);
|
||||
this.bindingNavigator1.PerformLayout();
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.panel3.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.outputDescriptionDataGridView)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bsO)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingNavigator2)).EndInit();
|
||||
this.bindingNavigator2.ResumeLayout(false);
|
||||
this.bindingNavigator2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit();
|
||||
this.toolStrip1.ResumeLayout(false);
|
||||
this.toolStrip1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
private DataSet1 dataSet1;
|
||||
private System.Windows.Forms.ToolTip toolTip1;
|
||||
private System.Windows.Forms.ErrorProvider errorProvider1;
|
||||
private System.Windows.Forms.BindingSource bsError;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
||||
private System.Windows.Forms.BindingSource bsI;
|
||||
private System.Windows.Forms.BindingSource bsO;
|
||||
private System.Windows.Forms.Panel panel2;
|
||||
private System.Windows.Forms.Panel panel3;
|
||||
private arCtl.arDatagridView inputDescriptionDataGridView;
|
||||
private System.Windows.Forms.BindingNavigator bindingNavigator1;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem;
|
||||
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
|
||||
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
|
||||
private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
|
||||
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
|
||||
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
|
||||
private arCtl.arDatagridView outputDescriptionDataGridView;
|
||||
private System.Windows.Forms.BindingNavigator bindingNavigator2;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem1;
|
||||
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem1;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem1;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem1;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem1;
|
||||
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator3;
|
||||
private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem1;
|
||||
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator4;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem1;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem1;
|
||||
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator5;
|
||||
private System.Windows.Forms.ToolStrip toolStrip1;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton1;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton3;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn TerminalNo;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn Invert;
|
||||
private System.Windows.Forms.DataGridViewButtonColumn dataGridViewTextBoxColumn3;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn1;
|
||||
private System.Windows.Forms.DataGridViewButtonColumn dataGridViewButtonColumn1;
|
||||
}
|
||||
}
|
||||
187
Handler/Project/Setting/fSetting_IOMessage.cs
Normal file
187
Handler/Project/Setting/fSetting_IOMessage.cs
Normal file
@@ -0,0 +1,187 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using AR;
|
||||
|
||||
namespace Project
|
||||
{
|
||||
public partial class fSetting_IOMessage : Form
|
||||
{
|
||||
AR.CommonSetting dummySetting; //설정을 임시로 저장하고 있다가 완료시에 덮어준다.
|
||||
|
||||
public fSetting_IOMessage()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
//setting
|
||||
dummySetting = new AR.CommonSetting();
|
||||
AR.SETTING.Data.CopyTo(dummySetting);
|
||||
//COMM.SETTING.Data.CopyTo(dummySetting);
|
||||
|
||||
this.KeyDown += (s1, e1) =>
|
||||
{
|
||||
if (e1.KeyCode == Keys.Escape)
|
||||
this.Close();
|
||||
if (DateTime.Now > PUB.LastInputTime) PUB.LastInputTime = DateTime.Now;
|
||||
};
|
||||
this.MouseMove += (s1, e1) => { if (DateTime.Now > PUB.LastInputTime) PUB.LastInputTime = DateTime.Now; };
|
||||
this.FormClosing += FSetting_IOMessage_FormClosing;
|
||||
this.bsI.Sort = "idx";
|
||||
this.bsO.Sort = "idx";
|
||||
}
|
||||
|
||||
private void FSetting_IOMessage_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
this.bsI.EndEdit();
|
||||
this.bsO.EndEdit();
|
||||
this.Validate();
|
||||
|
||||
var chgs1 = this.dataSet1.InputDescription.GetChanges();
|
||||
var chgs2 = this.dataSet1.ErrorDescription.GetChanges();
|
||||
if ((chgs1 != null && chgs1.Rows.Count > 0) || chgs2 != null && chgs2.Rows.Count > 0)
|
||||
{
|
||||
if (UTIL.MsgQ("There are unsaved changes. If you close now, these changes will be lost. Do you want to close the window?") != DialogResult.Yes)
|
||||
{
|
||||
e.Cancel = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void __Load(object sender, EventArgs e)
|
||||
{
|
||||
RefreshIn();
|
||||
RefreshOut();
|
||||
}
|
||||
|
||||
void RefreshIn()
|
||||
{
|
||||
this.dataSet1.InputDescription.Clear();
|
||||
this.dataSet1.InputDescription.Merge(PUB.mdm.dataSet.InputDescription);
|
||||
this.dataSet1.InputDescription.AcceptChanges();
|
||||
|
||||
//자료를 업데이트해준다.
|
||||
var ecodelist = Enum.GetValues(typeof(eDIPin));
|
||||
foreach (var item in ecodelist)
|
||||
{
|
||||
var pin = (eDIPin)item;
|
||||
var idx = (int)pin;
|
||||
var name = ((eDIName)idx).ToString();
|
||||
if (Enum.IsDefined(typeof(eDIName), (byte)idx) == false)
|
||||
name = string.Empty;
|
||||
|
||||
var title = $"[X{idx:X2}] {name}";
|
||||
var dr = this.dataSet1.InputDescription.Where(t => t.Idx == idx).FirstOrDefault();
|
||||
if (dr == null)
|
||||
{
|
||||
var newdr = dataSet1.InputDescription.NewInputDescriptionRow();
|
||||
newdr.Name = pin.ToString();
|
||||
newdr.Idx = (short)idx;
|
||||
newdr.Title = title;
|
||||
newdr.EndEdit();
|
||||
this.dataSet1.InputDescription.AddInputDescriptionRow(newdr);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dr.Title.Equals(title) == false)
|
||||
{
|
||||
dr.Title = title;
|
||||
dr.EndEdit();
|
||||
}
|
||||
}
|
||||
}
|
||||
this.dataSet1.InputDescription.AcceptChanges();
|
||||
}
|
||||
|
||||
void RefreshOut()
|
||||
{
|
||||
this.dataSet1.OutputDescription.Clear();
|
||||
this.dataSet1.OutputDescription.Merge(PUB.mdm.dataSet.OutputDescription);
|
||||
this.dataSet1.OutputDescription.AcceptChanges();
|
||||
|
||||
//자료를 업데이트해준다.
|
||||
var ecodelist = Enum.GetValues(typeof(eDOPin));
|
||||
foreach (var item in ecodelist)
|
||||
{
|
||||
var pin = (eDOPin)item;
|
||||
var idx = (int)pin;
|
||||
var name = ((eDOName)idx).ToString();
|
||||
if (Enum.IsDefined(typeof(eDOName), (byte)idx) == false)
|
||||
name = string.Empty;
|
||||
|
||||
var title = $"[Y{idx:X2}] {name}";
|
||||
|
||||
var dr = this.dataSet1.OutputDescription.Where(t => t.Idx == idx).FirstOrDefault();
|
||||
if (dr == null)
|
||||
{
|
||||
var newdr = dataSet1.OutputDescription.NewOutputDescriptionRow();
|
||||
newdr.Name = pin.ToString();
|
||||
newdr.Idx = (short)idx;
|
||||
newdr.Title = title;
|
||||
newdr.EndEdit();
|
||||
this.dataSet1.OutputDescription.AddOutputDescriptionRow(newdr);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dr.Title.Equals(title) == false)
|
||||
{
|
||||
dr.Title = title;
|
||||
dr.EndEdit();
|
||||
}
|
||||
}
|
||||
}
|
||||
this.dataSet1.OutputDescription.AcceptChanges();
|
||||
}
|
||||
|
||||
private void toolStripButton3_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
this.bsI.EndEdit();
|
||||
this.bsO.EndEdit();
|
||||
this.Validate();
|
||||
|
||||
this.dataSet1.AcceptChanges();
|
||||
|
||||
PUB.mdm.dataSet.InputDescription.Clear();
|
||||
PUB.mdm.dataSet.Merge(this.dataSet1.InputDescription);
|
||||
PUB.mdm.dataSet.InputDescription.AcceptChanges();
|
||||
PUB.mdm.SaveModelI();
|
||||
|
||||
PUB.mdm.dataSet.OutputDescription.Clear();
|
||||
PUB.mdm.dataSet.Merge(this.dataSet1.OutputDescription);
|
||||
PUB.mdm.dataSet.OutputDescription.AcceptChanges();
|
||||
PUB.mdm.SaveModelO();
|
||||
|
||||
//핀설정적용 230831
|
||||
DIO.Pin.SetOutputData(PUB.mdm.dataSet.OutputDescription);
|
||||
DIO.Pin.SetInputData(PUB.mdm.dataSet.InputDescription);
|
||||
}
|
||||
|
||||
private void toolStripButton1_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
RefreshIn();
|
||||
RefreshOut();
|
||||
}
|
||||
|
||||
private void inputDescriptionDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
if (e.ColumnIndex ==4 )
|
||||
{
|
||||
var dv = sender as DataGridView;
|
||||
var str = string.Empty;
|
||||
var cell = dv.Rows[e.RowIndex].Cells[e.ColumnIndex];
|
||||
if (cell != null && cell.Value != null) str = cell.Value.ToString();
|
||||
var f = new Dialog.fMessageInput(str);
|
||||
if (f.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
cell.Value = f.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
288
Handler/Project/Setting/fSetting_IOMessage.resx
Normal file
288
Handler/Project/Setting/fSetting_IOMessage.resx
Normal file
@@ -0,0 +1,288 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="bsError.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>346, 17</value>
|
||||
</metadata>
|
||||
<metadata name="dataSet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="TerminalNo.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Invert.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="bsI.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>543, 17</value>
|
||||
</metadata>
|
||||
<metadata name="bindingNavigator1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>1000, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="bindingNavigatorAddNewItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wQAADsEBuJFr7QAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
|
||||
pBtwfjov3ICDPSKkG3B8kiBQc93/Pw+q/u9oFydswKWZPP/PTuX7fxKo8Ui/0P993SJAzeX//94r+r++
|
||||
Qeb/qhq5/0srFf/PL1X+P6tIFdPAU0B//nlYD9RUC8SV///cKwHivP9/72b+/3sn+f/f23H//92MAOKQ
|
||||
/5NyNDENONQrDHbu3/ulQI0FQI3ZQI2pQI0J///digZqDPv/70bQ/3/X/f53peliGrCzXeL/lmap/+vA
|
||||
zpX/v6RC8f/fWzFAjeH/p+Zp/J+QpfW/O0P3f3uq/v/mREPCYTIb6E+Qc//dCPjfk6FDWAM6APnz3w1/
|
||||
IPb735qsT7oB3em6YP+CcH2cEekGtCQZ/G+IN/xfE2v8vzLahHQD6AQYGAAkI9iedfyIaQAAAABJRU5E
|
||||
rkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wQAADsEBuJFr7QAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
|
||||
DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC
|
||||
rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV
|
||||
i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG
|
||||
86CNhdrsX9a/uQZTPhQl4rMY4OLofbl3aX7I8uwPC7y/g1YdjyVJuEvT8e1tfwUYteHUxCCfHChDeHmG
|
||||
QQvokjlOU+PbWA0x3pZnILVVI3uvQyHsbiLnqnGmRCF1NYD8pDhpRxOH7HQoAKZGkFKjceszQbpSrumX
|
||||
bO+G80MFwKUTxgfgcO/b8D9IpXoFiiMDHIQm0skAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wQAADsEBuJFr7QAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
|
||||
wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
|
||||
v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
|
||||
UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
|
||||
Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu
|
||||
lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wQAADsEBuJFr7QAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
|
||||
5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
|
||||
Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
|
||||
08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wQAADsEBuJFr7QAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
|
||||
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
|
||||
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
|
||||
oAc0QjgAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wQAADsEBuJFr7QAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
|
||||
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
|
||||
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
|
||||
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
|
||||
WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9
|
||||
8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="dataGridViewTextBoxColumn6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewCheckBoxColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="bsO.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>767, 17</value>
|
||||
</metadata>
|
||||
<metadata name="bindingNavigator2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 56</value>
|
||||
</metadata>
|
||||
<data name="bindingNavigatorAddNewItem1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wQAADsEBuJFr7QAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
|
||||
pBtwfjov3ICDPSKkG3B8kiBQc93/Pw+q/u9oFydswKWZPP/PTuX7fxKo8Ui/0P993SJAzeX//94r+r++
|
||||
Qeb/qhq5/0srFf/PL1X+P6tIFdPAU0B//nlYD9RUC8SV///cKwHivP9/72b+/3sn+f/f23H//92MAOKQ
|
||||
/5NyNDENONQrDHbu3/ulQI0FQI3ZQI2pQI0J///digZqDPv/70bQ/3/X/f53peliGrCzXeL/lmap/+vA
|
||||
zpX/v6RC8f/fWzFAjeH/p+Zp/J+QpfW/O0P3f3uq/v/mREPCYTIb6E+Qc//dCPjfk6FDWAM6APnz3w1/
|
||||
IPb735qsT7oB3em6YP+CcH2cEekGtCQZ/G+IN/xfE2v8vzLahHQD6AQYGAAkI9iedfyIaQAAAABJRU5E
|
||||
rkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<data name="bindingNavigatorDeleteItem1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wQAADsEBuJFr7QAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
|
||||
DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC
|
||||
rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV
|
||||
i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG
|
||||
86CNhdrsX9a/uQZTPhQl4rMY4OLofbl3aX7I8uwPC7y/g1YdjyVJuEvT8e1tfwUYteHUxCCfHChDeHmG
|
||||
QQvokjlOU+PbWA0x3pZnILVVI3uvQyHsbiLnqnGmRCF1NYD8pDhpRxOH7HQoAKZGkFKjceszQbpSrumX
|
||||
bO+G80MFwKUTxgfgcO/b8D9IpXoFiiMDHIQm0skAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="bindingNavigatorMoveFirstItem1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wQAADsEBuJFr7QAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
|
||||
wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
|
||||
v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
|
||||
UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
|
||||
Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu
|
||||
lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="bindingNavigatorMovePreviousItem1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wQAADsEBuJFr7QAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
|
||||
5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
|
||||
Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
|
||||
08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="bindingNavigatorMoveNextItem1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wQAADsEBuJFr7QAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
|
||||
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
|
||||
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
|
||||
oAc0QjgAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="bindingNavigatorMoveLastItem1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wQAADsEBuJFr7QAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
|
||||
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
|
||||
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
|
||||
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
|
||||
WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9
|
||||
8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>117, 17</value>
|
||||
</metadata>
|
||||
<metadata name="errorProvider1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>214, 17</value>
|
||||
</metadata>
|
||||
<metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>173, 56</value>
|
||||
</metadata>
|
||||
</root>
|
||||
429
Handler/Project/Setting/fSystem_MotParameter.Designer.cs
generated
Normal file
429
Handler/Project/Setting/fSystem_MotParameter.Designer.cs
generated
Normal file
@@ -0,0 +1,429 @@
|
||||
namespace Project.Dialog
|
||||
{
|
||||
partial class fSystem_MotParameter
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fSystem_MotParameter));
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.dv1 = new System.Windows.Forms.DataGridView();
|
||||
this.bs = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.dataSet1 = new Project.DSSetup();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.bindingNavigator1 = new System.Windows.Forms.BindingNavigator(this.components);
|
||||
this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
|
||||
this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox();
|
||||
this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
|
||||
this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
|
||||
this.dvc_idx = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dvc_title = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.enableDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.useOriginDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.useEStopDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.homeHighDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.homeLowDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.homeAccDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.homeDccDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.MaxSpeed = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.MaxAcc = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.sWLimitPDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.InpositionAccr = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.btSet = new System.Windows.Forms.DataGridViewButtonColumn();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dv1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bs)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataSet1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).BeginInit();
|
||||
this.bindingNavigator1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// dv1
|
||||
//
|
||||
this.dv1.AutoGenerateColumns = false;
|
||||
this.dv1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.AllCells;
|
||||
this.dv1.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.dv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.dvc_idx,
|
||||
this.dvc_title,
|
||||
this.enableDataGridViewCheckBoxColumn,
|
||||
this.useOriginDataGridViewCheckBoxColumn,
|
||||
this.useEStopDataGridViewCheckBoxColumn,
|
||||
this.homeHighDataGridViewTextBoxColumn,
|
||||
this.homeLowDataGridViewTextBoxColumn,
|
||||
this.homeAccDataGridViewTextBoxColumn,
|
||||
this.homeDccDataGridViewTextBoxColumn,
|
||||
this.MaxSpeed,
|
||||
this.MaxAcc,
|
||||
this.sWLimitPDataGridViewTextBoxColumn,
|
||||
this.InpositionAccr,
|
||||
this.btSet});
|
||||
this.dv1.DataSource = this.bs;
|
||||
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle8.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
|
||||
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.ControlText;
|
||||
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dv1.DefaultCellStyle = dataGridViewCellStyle8;
|
||||
this.dv1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.dv1.Location = new System.Drawing.Point(0, 0);
|
||||
this.dv1.Name = "dv1";
|
||||
this.dv1.RowTemplate.Height = 23;
|
||||
this.dv1.Size = new System.Drawing.Size(1039, 584);
|
||||
this.dv1.TabIndex = 2;
|
||||
this.dv1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.motionParamDataGridView_CellContentClick);
|
||||
this.dv1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.motionParamDataGridView_DataError);
|
||||
//
|
||||
// bs
|
||||
//
|
||||
this.bs.DataMember = "MotionParam";
|
||||
this.bs.DataSource = this.dataSet1;
|
||||
//
|
||||
// dataSet1
|
||||
//
|
||||
this.dataSet1.DataSetName = "DataSet1";
|
||||
this.dataSet1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(61, 4);
|
||||
//
|
||||
// bindingNavigator1
|
||||
//
|
||||
this.bindingNavigator1.AddNewItem = this.bindingNavigatorAddNewItem;
|
||||
this.bindingNavigator1.BindingSource = this.bs;
|
||||
this.bindingNavigator1.CountItem = this.bindingNavigatorCountItem;
|
||||
this.bindingNavigator1.DeleteItem = this.bindingNavigatorDeleteItem;
|
||||
this.bindingNavigator1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.bindingNavigator1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.bindingNavigatorMoveFirstItem,
|
||||
this.bindingNavigatorMovePreviousItem,
|
||||
this.bindingNavigatorSeparator,
|
||||
this.bindingNavigatorPositionItem,
|
||||
this.bindingNavigatorCountItem,
|
||||
this.bindingNavigatorSeparator1,
|
||||
this.bindingNavigatorMoveNextItem,
|
||||
this.bindingNavigatorMoveLastItem,
|
||||
this.bindingNavigatorSeparator2,
|
||||
this.bindingNavigatorAddNewItem,
|
||||
this.bindingNavigatorDeleteItem,
|
||||
this.toolStripButton1});
|
||||
this.bindingNavigator1.Location = new System.Drawing.Point(0, 559);
|
||||
this.bindingNavigator1.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
|
||||
this.bindingNavigator1.MoveLastItem = this.bindingNavigatorMoveLastItem;
|
||||
this.bindingNavigator1.MoveNextItem = this.bindingNavigatorMoveNextItem;
|
||||
this.bindingNavigator1.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
|
||||
this.bindingNavigator1.Name = "bindingNavigator1";
|
||||
this.bindingNavigator1.PositionItem = this.bindingNavigatorPositionItem;
|
||||
this.bindingNavigator1.Size = new System.Drawing.Size(1039, 25);
|
||||
this.bindingNavigator1.TabIndex = 4;
|
||||
this.bindingNavigator1.Text = "bindingNavigator1";
|
||||
//
|
||||
// bindingNavigatorAddNewItem
|
||||
//
|
||||
this.bindingNavigatorAddNewItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
|
||||
this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem";
|
||||
this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorAddNewItem.Text = "Add New";
|
||||
//
|
||||
// bindingNavigatorCountItem
|
||||
//
|
||||
this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
|
||||
this.bindingNavigatorCountItem.Size = new System.Drawing.Size(26, 22);
|
||||
this.bindingNavigatorCountItem.Text = "/{0}";
|
||||
this.bindingNavigatorCountItem.ToolTipText = "Total item count";
|
||||
//
|
||||
// bindingNavigatorDeleteItem
|
||||
//
|
||||
this.bindingNavigatorDeleteItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
|
||||
this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem";
|
||||
this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorDeleteItem.Text = "Delete";
|
||||
//
|
||||
// bindingNavigatorMoveFirstItem
|
||||
//
|
||||
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
|
||||
this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
|
||||
this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorMoveFirstItem.Text = "Move first";
|
||||
//
|
||||
// bindingNavigatorMovePreviousItem
|
||||
//
|
||||
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
|
||||
this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
|
||||
this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorMovePreviousItem.Text = "Move previous";
|
||||
//
|
||||
// bindingNavigatorSeparator
|
||||
//
|
||||
this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
|
||||
this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25);
|
||||
//
|
||||
// bindingNavigatorPositionItem
|
||||
//
|
||||
this.bindingNavigatorPositionItem.AccessibleName = "Position";
|
||||
this.bindingNavigatorPositionItem.AutoSize = false;
|
||||
this.bindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F);
|
||||
this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
|
||||
this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
|
||||
this.bindingNavigatorPositionItem.Text = "0";
|
||||
this.bindingNavigatorPositionItem.ToolTipText = "Current position";
|
||||
//
|
||||
// bindingNavigatorSeparator1
|
||||
//
|
||||
this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
|
||||
this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 25);
|
||||
//
|
||||
// bindingNavigatorMoveNextItem
|
||||
//
|
||||
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
|
||||
this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
|
||||
this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorMoveNextItem.Text = "Move next";
|
||||
//
|
||||
// bindingNavigatorMoveLastItem
|
||||
//
|
||||
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
|
||||
this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
|
||||
this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
|
||||
this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 22);
|
||||
this.bindingNavigatorMoveLastItem.Text = "Move last";
|
||||
//
|
||||
// bindingNavigatorSeparator2
|
||||
//
|
||||
this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
|
||||
this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25);
|
||||
//
|
||||
// toolStripButton1
|
||||
//
|
||||
this.toolStripButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
|
||||
this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image")));
|
||||
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.toolStripButton1.Name = "toolStripButton1";
|
||||
this.toolStripButton1.Size = new System.Drawing.Size(51, 22);
|
||||
this.toolStripButton1.Text = "Save";
|
||||
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
|
||||
//
|
||||
// dvc_idx
|
||||
//
|
||||
this.dvc_idx.DataPropertyName = "idx";
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.dvc_idx.DefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dvc_idx.HeaderText = "Axis";
|
||||
this.dvc_idx.Name = "dvc_idx";
|
||||
this.dvc_idx.Width = 55;
|
||||
//
|
||||
// dvc_title
|
||||
//
|
||||
this.dvc_title.DataPropertyName = "Title";
|
||||
this.dvc_title.HeaderText = "Name";
|
||||
this.dvc_title.Name = "dvc_title";
|
||||
this.dvc_title.Width = 64;
|
||||
//
|
||||
// enableDataGridViewCheckBoxColumn
|
||||
//
|
||||
this.enableDataGridViewCheckBoxColumn.DataPropertyName = "Enable";
|
||||
this.enableDataGridViewCheckBoxColumn.HeaderText = "Enable";
|
||||
this.enableDataGridViewCheckBoxColumn.Name = "enableDataGridViewCheckBoxColumn";
|
||||
this.enableDataGridViewCheckBoxColumn.Width = 50;
|
||||
//
|
||||
// useOriginDataGridViewCheckBoxColumn
|
||||
//
|
||||
this.useOriginDataGridViewCheckBoxColumn.DataPropertyName = "UseOrigin";
|
||||
this.useOriginDataGridViewCheckBoxColumn.HeaderText = "Origin";
|
||||
this.useOriginDataGridViewCheckBoxColumn.Name = "useOriginDataGridViewCheckBoxColumn";
|
||||
this.useOriginDataGridViewCheckBoxColumn.Width = 44;
|
||||
//
|
||||
// useEStopDataGridViewCheckBoxColumn
|
||||
//
|
||||
this.useEStopDataGridViewCheckBoxColumn.DataPropertyName = "UseEStop";
|
||||
this.useEStopDataGridViewCheckBoxColumn.HeaderText = "Emg";
|
||||
this.useEStopDataGridViewCheckBoxColumn.Name = "useEStopDataGridViewCheckBoxColumn";
|
||||
this.useEStopDataGridViewCheckBoxColumn.Width = 37;
|
||||
//
|
||||
// homeHighDataGridViewTextBoxColumn
|
||||
//
|
||||
this.homeHighDataGridViewTextBoxColumn.DataPropertyName = "HomeHigh";
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
|
||||
this.homeHighDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.homeHighDataGridViewTextBoxColumn.HeaderText = "Home (Hig)";
|
||||
this.homeHighDataGridViewTextBoxColumn.Name = "homeHighDataGridViewTextBoxColumn";
|
||||
this.homeHighDataGridViewTextBoxColumn.Width = 95;
|
||||
//
|
||||
// homeLowDataGridViewTextBoxColumn
|
||||
//
|
||||
this.homeLowDataGridViewTextBoxColumn.DataPropertyName = "HomeLow";
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
|
||||
this.homeLowDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.homeLowDataGridViewTextBoxColumn.HeaderText = "Home (Low)";
|
||||
this.homeLowDataGridViewTextBoxColumn.Name = "homeLowDataGridViewTextBoxColumn";
|
||||
this.homeLowDataGridViewTextBoxColumn.Width = 93;
|
||||
//
|
||||
// homeAccDataGridViewTextBoxColumn
|
||||
//
|
||||
this.homeAccDataGridViewTextBoxColumn.DataPropertyName = "HomeAcc";
|
||||
dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
|
||||
this.homeAccDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.homeAccDataGridViewTextBoxColumn.HeaderText = "Home (Acc)";
|
||||
this.homeAccDataGridViewTextBoxColumn.Name = "homeAccDataGridViewTextBoxColumn";
|
||||
this.homeAccDataGridViewTextBoxColumn.Width = 91;
|
||||
//
|
||||
// homeDccDataGridViewTextBoxColumn
|
||||
//
|
||||
this.homeDccDataGridViewTextBoxColumn.DataPropertyName = "HomeDcc";
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
|
||||
this.homeDccDataGridViewTextBoxColumn.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.homeDccDataGridViewTextBoxColumn.HeaderText = "Home (Dec)";
|
||||
this.homeDccDataGridViewTextBoxColumn.Name = "homeDccDataGridViewTextBoxColumn";
|
||||
this.homeDccDataGridViewTextBoxColumn.Width = 91;
|
||||
//
|
||||
// MaxSpeed
|
||||
//
|
||||
this.MaxSpeed.DataPropertyName = "MaxSpeed";
|
||||
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
|
||||
this.MaxSpeed.DefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.MaxSpeed.HeaderText = "Max Speed";
|
||||
this.MaxSpeed.Name = "MaxSpeed";
|
||||
this.MaxSpeed.Width = 87;
|
||||
//
|
||||
// MaxAcc
|
||||
//
|
||||
this.MaxAcc.DataPropertyName = "MaxAcc";
|
||||
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
|
||||
this.MaxAcc.DefaultCellStyle = dataGridViewCellStyle7;
|
||||
this.MaxAcc.HeaderText = "Max Acc";
|
||||
this.MaxAcc.Name = "MaxAcc";
|
||||
this.MaxAcc.Width = 55;
|
||||
//
|
||||
// sWLimitPDataGridViewTextBoxColumn
|
||||
//
|
||||
this.sWLimitPDataGridViewTextBoxColumn.DataPropertyName = "SWLimitP";
|
||||
this.sWLimitPDataGridViewTextBoxColumn.HeaderText = "S/W Limit";
|
||||
this.sWLimitPDataGridViewTextBoxColumn.Name = "sWLimitPDataGridViewTextBoxColumn";
|
||||
this.sWLimitPDataGridViewTextBoxColumn.Width = 78;
|
||||
//
|
||||
// InpositionAccr
|
||||
//
|
||||
this.InpositionAccr.DataPropertyName = "InpositionAccr";
|
||||
this.InpositionAccr.HeaderText = "Pos accr";
|
||||
this.InpositionAccr.Name = "InpositionAccr";
|
||||
this.InpositionAccr.Width = 75;
|
||||
//
|
||||
// btSet
|
||||
//
|
||||
this.btSet.HeaderText = "Set";
|
||||
this.btSet.Name = "btSet";
|
||||
this.btSet.Width = 29;
|
||||
//
|
||||
// fSystem_MotParameter
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1039, 584);
|
||||
this.Controls.Add(this.bindingNavigator1);
|
||||
this.Controls.Add(this.dv1);
|
||||
this.KeyPreview = true;
|
||||
this.Name = "fSystem_MotParameter";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "Motion Parameter";
|
||||
this.Load += new System.EventHandler(this.SystemParameter_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dv1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bs)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataSet1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingNavigator1)).EndInit();
|
||||
this.bindingNavigator1.ResumeLayout(false);
|
||||
this.bindingNavigator1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
private DSSetup dataSet1;
|
||||
private System.Windows.Forms.BindingSource bs;
|
||||
private System.Windows.Forms.DataGridView dv1;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
|
||||
private System.Windows.Forms.BindingNavigator bindingNavigator1;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem;
|
||||
private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
|
||||
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
|
||||
private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
|
||||
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
|
||||
private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
|
||||
private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
|
||||
private System.Windows.Forms.ToolStripButton toolStripButton1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_idx;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dvc_title;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn enableDataGridViewCheckBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn useOriginDataGridViewCheckBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn useEStopDataGridViewCheckBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn homeHighDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn homeLowDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn homeAccDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn homeDccDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn MaxSpeed;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn MaxAcc;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn sWLimitPDataGridViewTextBoxColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn InpositionAccr;
|
||||
private System.Windows.Forms.DataGridViewButtonColumn btSet;
|
||||
}
|
||||
}
|
||||
120
Handler/Project/Setting/fSystem_MotParameter.cs
Normal file
120
Handler/Project/Setting/fSystem_MotParameter.cs
Normal file
@@ -0,0 +1,120 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Project.Dialog
|
||||
{
|
||||
public partial class fSystem_MotParameter : Form
|
||||
{
|
||||
public class cmdevents : EventArgs
|
||||
{
|
||||
public string cmd { get; set; }
|
||||
public string data { get; set; }
|
||||
public cmdevents(string cmd,string data)
|
||||
{
|
||||
this.cmd = cmd;
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
public EventHandler<cmdevents> Commands;
|
||||
public fSystem_MotParameter()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.KeyDown += SystemParameter_KeyDown;
|
||||
this.dataSet1.MotionParam.Clear();
|
||||
this.dataSet1.MotionParam.Merge(PUB.system_mot.dt);
|
||||
this.dataSet1.MotionParam.AcceptChanges();
|
||||
this.dataSet1.MotionParam.TableNewRow += MotionParam_TableNewRow;
|
||||
}
|
||||
|
||||
private void MotionParam_TableNewRow(object sender, DataTableNewRowEventArgs e)
|
||||
{
|
||||
e.Row["Enable"] = false;
|
||||
if (this.dataSet1.MotionParam.Rows.Count < 1) e.Row["idx"] = 0;
|
||||
else e.Row["idx"] = this.dataSet1.MotionParam.Rows.Count;
|
||||
e.Row["UseOrigin"] = true;
|
||||
e.Row["UseEStop"] = true;
|
||||
e.Row["HomeAcc"] = 100;
|
||||
e.Row["HomeDcc"] = 100;
|
||||
e.Row["HomeHigh"] = 50;
|
||||
e.Row["HomeLow"] = 30;
|
||||
e.Row["SWLimitP"] = 0;
|
||||
e.Row["InpositionAccr"] = 0.1f;
|
||||
}
|
||||
|
||||
void SystemParameter_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Escape) this.Close();
|
||||
}
|
||||
|
||||
private void SystemParameter_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.dv1.AutoResizeColumns();
|
||||
}
|
||||
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Validate();
|
||||
this.bs.EndEdit();
|
||||
|
||||
PUB.system_mot.Save(this.dataSet1.MotionParam);
|
||||
|
||||
//소스파일을 변경 해준다.
|
||||
//var sourcePath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Don't change it");
|
||||
//var di = new System.IO.DirectoryInfo(sourcePath);
|
||||
//if (di.Exists)
|
||||
//{
|
||||
// var fiEnum = new System.IO.FileInfo(di.FullName + "\\Class\\EnumData.cs");
|
||||
// if (fiEnum.Exists)
|
||||
// {
|
||||
// var buffer = System.IO.File.ReadAllText(fiEnum.FullName, System.Text.Encoding.UTF8);
|
||||
// var axis_start_tag = "public enum eaxis";
|
||||
// var axis_sta = buffer.ToLower().IndexOf(axis_start_tag);
|
||||
// var axis_end = buffer.IndexOf("}", axis_sta);
|
||||
|
||||
// var buffer_axis = buffer.Substring(axis_sta, axis_end - axis_sta);
|
||||
|
||||
// //값을 생성해준다.
|
||||
// var sb_axis = new System.Text.StringBuilder();
|
||||
// sb_axis.AppendLine("public enum eAxis : byte {");
|
||||
// foreach (DSSetup.MotionParamRow dr in this.dataSet1.MotionParam)
|
||||
// {
|
||||
// if (dr.Enable == false) continue;
|
||||
// if (string.IsNullOrEmpty(dr.Title)) continue;
|
||||
// sb_axis.AppendLine($"\t\t{dr.Title} = {dr.idx},");
|
||||
// }
|
||||
// sb_axis.AppendLine("\t}");
|
||||
// var buffer_head = buffer.Substring(0, axis_sta);
|
||||
// var buffer_tail = buffer.Substring(axis_end + 1);
|
||||
// var newbuffer = buffer_head + sb_axis.ToString() + buffer_tail;
|
||||
// System.IO.File.WriteAllText(fiEnum.FullName, newbuffer, System.Text.Encoding.UTF8);
|
||||
// }
|
||||
//}
|
||||
|
||||
DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void motionParamDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
var idx = this.dv1.Rows[e.RowIndex].Cells["dvc_idx"].Value;
|
||||
if (idx == null) return;
|
||||
|
||||
if (e.ColumnIndex != 13) return;
|
||||
|
||||
var val = short.Parse(idx.ToString());
|
||||
|
||||
PUB.mot.ShowParameter(val);
|
||||
}
|
||||
|
||||
private void motionParamDataGridView_DataError(object sender, DataGridViewDataErrorEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
223
Handler/Project/Setting/fSystem_MotParameter.resx
Normal file
223
Handler/Project/Setting/fSystem_MotParameter.resx
Normal file
@@ -0,0 +1,223 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="dvc_title.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="MaxSpeed.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="MaxAcc.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="InpositionAccr.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="btSet.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="bs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>117, 17</value>
|
||||
</metadata>
|
||||
<metadata name="dataSet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>181, 17</value>
|
||||
</metadata>
|
||||
<metadata name="bindingNavigator1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>339, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="bindingNavigatorAddNewItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAAUpJREFUOE9jGLzg7gL2/7fmcf6/Oofr/8UZvP+hwsSD60CNfx41/v/zsOH/yckC
|
||||
pBtwfjov3ICDPSKkG3B8kiBQc93/Pw+q/u9oFydswKWZPP/PTuX7fxKo8Ui/0P993SJAzeX//94r+r++
|
||||
Qeb/qhq5/0srFf/PL1X+P6tIFdPAU0B//nlYD9RUC8SV///cKwHivP9/72b+/3sn+f/f23H//92MAOKQ
|
||||
/5NyNDENONQrDHbu3/ulQI0FQI3ZQI2pQI0J///digZqDPv/70bQ/3/X/f53peliGrCzXeL/lmap/+vA
|
||||
zpX/v6RC8f/fWzFAjeH/p+Zp/J+QpfW/O0P3f3uq/v/mREPCYTIb6E+Qc//dCPjfk6FDWAM6APnz3w1/
|
||||
IPb735qsT7oB3em6YP+CcH2cEekGtCQZ/G+IN/xfE2v8vzLahHQD6AQYGAAkI9iedfyIaQAAAABJRU5E
|
||||
rkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<data name="bindingNavigatorDeleteItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAAW9JREFUOE+1kE0ow2Ecx3dV3krt4oJaOSCTvIRkMqSxyITIzCQHDouEdnFwIOVC
|
||||
DrhIDiQl5UTiNG/z2ppafy1S2gX/uDwfY6i1v7Hie3nqeb7fz+/7/FR/Ilwn0G0Exw4fV5GJlXlEZxXC
|
||||
rIet9bAQvB5Ymgn2sLYAvSZEux7RUQFzE4qQt4bCXAYjPaHvnDoCkLpsRGMB2JqCTGLIijDlwqQ9bEMV
|
||||
i9OIytR3EMNWcJ/BWH8A6j8/bOGFxwXNxYEvGbMQ9XnQ1/K78KfY3/VXzkMY0qFGG2H4RoLGQshJQNbG
|
||||
86CNhdrsX9a/uQZTPhQl4rMY4OLofbl3aX7I8uwPC7y/g1YdjyVJuEvT8e1tfwUYteHUxCCfHChDeHmG
|
||||
QQvokjlOU+PbWA0x3pZnILVVI3uvQyHsbiLnqnGmRCF1NYD8pDhpRxOH7HQoAKZGkFKjceszQbpSrumX
|
||||
bO+G80MFwKUTxgfgcO/b8D9IpXoFiiMDHIQm0skAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="bindingNavigatorMoveFirstItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAASpJREFUOE9jGDygcNbz/00Lnv/PnPj4P1QIA4S3P8Apx5A789n/VUfe/8elKL77
|
||||
wf/ghmu4DciY8vT/wn0fsCqK73n4f+n+///9qy/gNiCh58n/aVveYyiKaL8P1pw56/9/r9ITuA2I7Hr0
|
||||
v3f1BxRFoa33wJpb1wFt7/z73yX/AG4DApsf/q+b/w6uKLjl7v9Fe///7wBqzpjz879d3c//9hnbcRvg
|
||||
UXX/f/60NyiK7Ipv/0+f8/u/f9e3/zqF7/5bJKzHbYB96d3/2ZNfYyjSTzn/36ToxX+VrE//jSOX4TbA
|
||||
Iu/O/9T+11gVGSSd+C+b9vW/bvA83AYYZt3+H9byEqci/dTL/zV8p+E2QCftxn+/6od4Fal4TMBtgFPu
|
||||
lf8gBXgVDULAwAAA8HbAq6XlmnAAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="bindingNavigatorMovePreviousItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAALZJREFUOE9jGDogvP3BfyiTdBDf/eB/cMM18gyI73n4f+n+///9qy+QbkBE+32w
|
||||
5sxZ//97lZ4gzYDQ1ntgza3rgLZ3/v3vkn+AeAOCW+7+X7T3//8OoOaMOT//29X9/G+fsZ00F9gV3/6f
|
||||
Puf3f/+ub/91Ct/9t0hYT3oY6Kec/29S9OK/Stan/8aRy0g3AAQMkk78l037+l83eB55BoCAfurl/xq+
|
||||
08g3AARUPCZQZsBgBQwMANAUYJgEulBVAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="bindingNavigatorMoveNextItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAAKNJREFUOE9jGHygcNbz/1AmeSB35rP/Cd33yDckY8rT//P2//6f0HWHPEMSep78
|
||||
n73v1//OrX//u5VeJt2QyK5H/6ds+/W/ZOnf/wnT//63yT1LmiGBzQ//t659D9ZsXPLlv3T0tf/GkcuI
|
||||
N8Sj6v7/krnv4JoVXXpIc4F96d3/gS3PyNMMAhZ5d/7bFFwhTzMIGGbdJl8zCOik3SBf81AEDAwAoH5f
|
||||
oAc0QjgAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="bindingNavigatorMoveLastItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wwAADsMBx2+oZAAAASxJREFUOE9jGFygcNbz/1AmBgDJNS14/j9z4mOcahhyZz77n9B9D6sCkNyqI+//
|
||||
h7c/wG1AxpSn/+ft//0/oesOhiKQ3MJ9H/4HN1zDbUBCz5P/s/f9+t+59e9/t9LLKApBctO2vP/vX30B
|
||||
twGRXY/+T9n263/J0r//E6b//W+TexauGCTXu/rDf6/SE7gNCGx++L917XuwZuOSL/+lo6/9N45cBtYA
|
||||
kqub/+6/S/4B3AZ4VN3/XzL3HVyzoksPXDFILn/am//2GdtxG2Bfevd/YMszDM0gAJLLnvz6v0XCetwG
|
||||
WOTd+W9TcAVDMwiA5FL7X8O9hBUYZt3GqhkEQHJhLS//6wbPw22ATtoNnJIgOb/qh/81fKfhNgAfcMq9
|
||||
8l/FYwIYQ4UGBWBgAAC+0b+zuQxOnAAAAABJRU5ErkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAE1SURBVDhPY/hPIQAbcOn57//T915BwW1rjoFx/oJz//N6
|
||||
VqHgsNxeMA03YN3lp/9vv4YYhAtsuQ6h55/9A8aBidVgPtiADZcegzWDFN1/9///qy8IDOKDcPfu1/9/
|
||||
/vn/v3rt/f9TD38BuwJuwIrT9wka0L79BdiAkuW3MA0A+fnog///V12GKAZ5BxcGGQByDYoXYAbA/Aey
|
||||
AYRBCkE2N256AnY6SDMoUEF8FANAoQ0zAFkzCCNrhhkAor3CczENwGYzuu1JM8+BaQwDQAGITzOyASDs
|
||||
4huPMAAkATIA3c/YNIdNPAHGKAaAUhUoBghphhng0rTnv71bGKoBoADE5mR0zVgNACUK9BgAGYbudJBG
|
||||
GNY0dEYYAMsgMAyKYxAGhTQIg/wLwiBbQRikGSUdkA/+/wcAgXJEf04PwQkAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
||||
77
Handler/Project/Setting/fSystem_Setting.Designer.cs
generated
Normal file
77
Handler/Project/Setting/fSystem_Setting.Designer.cs
generated
Normal file
@@ -0,0 +1,77 @@
|
||||
namespace Project.Dialog
|
||||
{
|
||||
partial class fSystem_Setting
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.button1.Location = new System.Drawing.Point(0, 564);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(527, 51);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = "Save";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// propertyGrid1
|
||||
//
|
||||
this.propertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.propertyGrid1.Location = new System.Drawing.Point(0, 0);
|
||||
this.propertyGrid1.Name = "propertyGrid1";
|
||||
this.propertyGrid1.Size = new System.Drawing.Size(527, 564);
|
||||
this.propertyGrid1.TabIndex = 1;
|
||||
//
|
||||
// fSystem_Setting
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(527, 615);
|
||||
this.Controls.Add(this.propertyGrid1);
|
||||
this.Controls.Add(this.button1);
|
||||
this.KeyPreview = true;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "fSystem_Setting";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "SystemParameter";
|
||||
this.Load += new System.EventHandler(this.SystemParameter_Load);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.PropertyGrid propertyGrid1;
|
||||
}
|
||||
}
|
||||
50
Handler/Project/Setting/fSystem_Setting.cs
Normal file
50
Handler/Project/Setting/fSystem_Setting.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using AR;
|
||||
|
||||
namespace Project.Dialog
|
||||
{
|
||||
public partial class fSystem_Setting : Form
|
||||
{
|
||||
public fSystem_Setting()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.KeyDown += SystemParameter_KeyDown;
|
||||
}
|
||||
|
||||
void SystemParameter_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Escape) this.Close();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Invalidate();
|
||||
SETTING.System.Save();
|
||||
DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
}
|
||||
|
||||
private void SystemParameter_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.propertyGrid1.SelectedObject = SETTING.System;
|
||||
this.propertyGrid1.Invalidate();
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void button2_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
var idx = short.Parse(but.Tag.ToString());
|
||||
PUB.mot.ShowParameter(idx);
|
||||
}
|
||||
}
|
||||
}
|
||||
120
Handler/Project/Setting/fSystem_Setting.resx
Normal file
120
Handler/Project/Setting/fSystem_Setting.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Reference in New Issue
Block a user