From f480b508b7541400ac3567e29245a3057f819249 Mon Sep 17 00:00:00 2001 From: chiDT Date: Tue, 1 Jul 2025 22:30:18 +0900 Subject: [PATCH] =?UTF-8?q?1.=20=ED=99=98=EA=B2=BD=EC=84=A4=EC=A0=95?= =?UTF-8?q?=EC=97=90=20window=20=ED=8C=8C=EC=9D=BC=20=EC=A0=80=EC=9E=A5=20?= =?UTF-8?q?=EC=A3=BC=EA=B8=B0=20=EC=B6=94=EA=B0=80(=EB=8B=A8=EC=9C=84:?= =?UTF-8?q?=EB=B6=84)=202.=20window1(2).grp=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=EC=8B=9C=20=EC=9E=84=EC=8B=9C(.temp)=20?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=EC=97=90=20=EC=83=9D=EC=84=B1=20=ED=9B=84=20?= =?UTF-8?q?=EC=9B=90=EB=B3=B8=EC=9D=84=20=EB=8D=AE=EC=96=B4=EC=93=B0?= =?UTF-8?q?=EA=B8=B0=20=ED=95=A8=20(window=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EC=86=90=EC=83=81=EC=8B=9C=20=ED=94=84=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EB=9E=A8=EC=97=90=20=EC=B9=98=EB=AA=85=EC=A0=81=EC=9D=B4?= =?UTF-8?q?=EB=AF=80=EB=A1=9C=20=EC=9E=84=EC=8B=9C=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=B2=98=EB=A6=AC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cVMS.NET_CS/HMI/TrendCtrlII/TrendCtrlII.cs | 2 - cVMS.NET_CS/RunCode/_95_SPS.cs | 10 +- cVMS.NET_CS/Setting/CSetting.cs | 9 + cVMS.NET_CS/Setting/Frm_Config.Designer.cs | 593 ++++++++++----------- cVMS.NET_CS/Setting/Frm_Config.cs | 27 +- cVMS.NET_CS/Setting/Frm_Config.resx | 8 +- cVMS.NET_CS/pub.cs | 13 +- 7 files changed, 339 insertions(+), 323 deletions(-) diff --git a/cVMS.NET_CS/HMI/TrendCtrlII/TrendCtrlII.cs b/cVMS.NET_CS/HMI/TrendCtrlII/TrendCtrlII.cs index 41533bf..3d68c6d 100644 --- a/cVMS.NET_CS/HMI/TrendCtrlII/TrendCtrlII.cs +++ b/cVMS.NET_CS/HMI/TrendCtrlII/TrendCtrlII.cs @@ -1281,8 +1281,6 @@ namespace TrendCtrlII base.OnSizeChanged(e); if (this.Visible == false) return; Console.WriteLine("OnSizeChanged"); - - } void CreateBufferGraphic() diff --git a/cVMS.NET_CS/RunCode/_95_SPS.cs b/cVMS.NET_CS/RunCode/_95_SPS.cs index 892a98f..2976c91 100644 --- a/cVMS.NET_CS/RunCode/_95_SPS.cs +++ b/cVMS.NET_CS/RunCode/_95_SPS.cs @@ -9,10 +9,18 @@ namespace vmsnet { private void SPS_250ms() { - if(VAR.isInit) + if (VAR.isInit) { VAR.STR[EVarString.MCStatus] = PUB.sm.Step.ToString(); } + + //셀정보자동저장 + if (PUB.CONFIG.savetermcellinfo > 0) + { + var ts_saveCellinfo = DateTime.Now - PUB.LastWindowCellinfoSaved; + if (ts_saveCellinfo.TotalMinutes > PUB.CONFIG.savetermcellinfo) + PUB.RaiseRemoteCommandEvent(rCommand.SaveGroupClass); + } } private void SPS_Max() diff --git a/cVMS.NET_CS/Setting/CSetting.cs b/cVMS.NET_CS/Setting/CSetting.cs index 745cacb..eb59b8c 100644 --- a/cVMS.NET_CS/Setting/CSetting.cs +++ b/cVMS.NET_CS/Setting/CSetting.cs @@ -117,7 +117,16 @@ namespace vmsnet /// public bool opensubwindow { get; set; } public short trashper { get; set; } ////자동삭제용량단위 + + /// + /// 저장주기(단위:초) + /// public short saveterm { get; set; } + + /// + /// 셀저장보 저장 주기(단위:분) + /// + public short savetermcellinfo { get; set; } public bool seconddata { get; set; } public bool thirddata { get; set; } public bool getdata4 { get; set; } diff --git a/cVMS.NET_CS/Setting/Frm_Config.Designer.cs b/cVMS.NET_CS/Setting/Frm_Config.Designer.cs index 7147a12..6b9a4c7 100644 --- a/cVMS.NET_CS/Setting/Frm_Config.Designer.cs +++ b/cVMS.NET_CS/Setting/Frm_Config.Designer.cs @@ -283,6 +283,9 @@ namespace vmsnet this.bt_remakelist = new System.Windows.Forms.ToolStripButton(); this.toolStripButton15 = new System.Windows.Forms.ToolStripButton(); this.bs_normal = new System.Windows.Forms.BindingSource(this.components); + this.tb_savetermCellInfo = new System.Windows.Forms.TextBox(); + this.label24 = new System.Windows.Forms.Label(); + this.label25 = new System.Windows.Forms.Label(); this.ToolStrip1.SuspendLayout(); this.StatusStrip1.SuspendLayout(); this.TabControl1.SuspendLayout(); @@ -342,7 +345,7 @@ namespace vmsnet this.bt_save}); this.ToolStrip1.Location = new System.Drawing.Point(0, 0); this.ToolStrip1.Name = "ToolStrip1"; - this.ToolStrip1.Size = new System.Drawing.Size(1518, 34); + this.ToolStrip1.Size = new System.Drawing.Size(1063, 31); this.ToolStrip1.TabIndex = 0; this.ToolStrip1.Text = "ToolStrip1"; this.ToolStrip1.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.ToolStrip1_ItemClicked); @@ -352,7 +355,7 @@ namespace vmsnet this.bt_save.Image = ((System.Drawing.Image)(resources.GetObject("bt_save.Image"))); this.bt_save.ImageTransparentColor = System.Drawing.Color.Magenta; this.bt_save.Name = "bt_save"; - this.bt_save.Size = new System.Drawing.Size(76, 29); + this.bt_save.Size = new System.Drawing.Size(59, 28); this.bt_save.Text = "저장"; this.bt_save.Click += new System.EventHandler(this.ToolStripButton1_Click); // @@ -363,28 +366,27 @@ namespace vmsnet this.prb, this.toolStripStatusLabel1, this.lbMsg}); - this.StatusStrip1.Location = new System.Drawing.Point(0, 962); + this.StatusStrip1.Location = new System.Drawing.Point(0, 640); this.StatusStrip1.Name = "StatusStrip1"; - this.StatusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 20, 0); - this.StatusStrip1.Size = new System.Drawing.Size(1518, 32); + this.StatusStrip1.Size = new System.Drawing.Size(1063, 23); this.StatusStrip1.TabIndex = 1; this.StatusStrip1.Text = "StatusStrip1"; // // prb // this.prb.Name = "prb"; - this.prb.Size = new System.Drawing.Size(142, 24); + this.prb.Size = new System.Drawing.Size(99, 17); // // toolStripStatusLabel1 // this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; - this.toolStripStatusLabel1.Size = new System.Drawing.Size(22, 25); + this.toolStripStatusLabel1.Size = new System.Drawing.Size(15, 18); this.toolStripStatusLabel1.Text = "{}"; // // lbMsg // this.lbMsg.Name = "lbMsg"; - this.lbMsg.Size = new System.Drawing.Size(22, 25); + this.lbMsg.Size = new System.Drawing.Size(15, 18); this.lbMsg.Text = "{}"; // // TabControl1 @@ -395,11 +397,10 @@ namespace vmsnet this.TabControl1.Controls.Add(this.TabPage4); this.TabControl1.Controls.Add(this.TabPage3); this.TabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.TabControl1.Location = new System.Drawing.Point(0, 34); - this.TabControl1.Margin = new System.Windows.Forms.Padding(4); + this.TabControl1.Location = new System.Drawing.Point(0, 31); this.TabControl1.Name = "TabControl1"; this.TabControl1.SelectedIndex = 0; - this.TabControl1.Size = new System.Drawing.Size(1518, 928); + this.TabControl1.Size = new System.Drawing.Size(1063, 609); this.TabControl1.TabIndex = 2; // // TabPage1 @@ -413,41 +414,37 @@ namespace vmsnet this.TabPage1.Controls.Add(this.tb_sangho); this.TabPage1.Controls.Add(this.Label3); this.TabPage1.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.TabPage1.Location = new System.Drawing.Point(4, 28); - this.TabPage1.Margin = new System.Windows.Forms.Padding(4); + this.TabPage1.Location = new System.Drawing.Point(4, 22); this.TabPage1.Name = "TabPage1"; - this.TabPage1.Padding = new System.Windows.Forms.Padding(4); - this.TabPage1.Size = new System.Drawing.Size(1510, 896); + this.TabPage1.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3); + this.TabPage1.Size = new System.Drawing.Size(1055, 583); this.TabPage1.TabIndex = 0; this.TabPage1.Text = "일반설정"; this.TabPage1.UseVisualStyleBackColor = true; // // tb_viewsize // - this.tb_viewsize.Location = new System.Drawing.Point(218, 78); - this.tb_viewsize.Margin = new System.Windows.Forms.Padding(4); + this.tb_viewsize.Location = new System.Drawing.Point(153, 52); this.tb_viewsize.Name = "tb_viewsize"; - this.tb_viewsize.Size = new System.Drawing.Size(295, 39); + this.tb_viewsize.Size = new System.Drawing.Size(208, 29); this.tb_viewsize.TabIndex = 26; this.tb_viewsize.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // Label12 // this.Label12.AutoSize = true; - this.Label12.Location = new System.Drawing.Point(44, 84); - this.Label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.Label12.Location = new System.Drawing.Point(31, 56); this.Label12.Name = "Label12"; - this.Label12.Size = new System.Drawing.Size(166, 32); + this.Label12.Size = new System.Drawing.Size(112, 21); this.Label12.TabIndex = 25; this.Label12.Text = "개별화면 크기"; // // chk_sound // this.chk_sound.AutoSize = true; - this.chk_sound.Location = new System.Drawing.Point(218, 130); - this.chk_sound.Margin = new System.Windows.Forms.Padding(4); + this.chk_sound.Location = new System.Drawing.Point(153, 87); this.chk_sound.Name = "chk_sound"; - this.chk_sound.Size = new System.Drawing.Size(373, 36); + this.chk_sound.Size = new System.Drawing.Size(253, 25); this.chk_sound.TabIndex = 22; this.chk_sound.Text = "알람발생시 소리를 발생합니다."; this.chk_sound.UseVisualStyleBackColor = true; @@ -483,11 +480,9 @@ namespace vmsnet this.GroupBox1.Controls.Add(this.chk_savebinary); this.GroupBox1.Controls.Add(this.Label1); this.GroupBox1.Dock = System.Windows.Forms.DockStyle.Bottom; - this.GroupBox1.Location = new System.Drawing.Point(4, 270); - this.GroupBox1.Margin = new System.Windows.Forms.Padding(4); + this.GroupBox1.Location = new System.Drawing.Point(3, 165); this.GroupBox1.Name = "GroupBox1"; - this.GroupBox1.Padding = new System.Windows.Forms.Padding(4); - this.GroupBox1.Size = new System.Drawing.Size(1502, 622); + this.GroupBox1.Size = new System.Drawing.Size(1049, 415); this.GroupBox1.TabIndex = 9; this.GroupBox1.TabStop = false; this.GroupBox1.Text = "고급설정(이 곳의 데이터는 수정하지 마세요)"; @@ -503,11 +498,11 @@ namespace vmsnet this.groupBox4.Controls.Add(this.nudSlaveNo); this.groupBox4.Controls.Add(this.label22); this.groupBox4.Controls.Add(this.label23); - this.groupBox4.Location = new System.Drawing.Point(724, 32); - this.groupBox4.Margin = new System.Windows.Forms.Padding(2); + this.groupBox4.Location = new System.Drawing.Point(505, 21); + this.groupBox4.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1); this.groupBox4.Name = "groupBox4"; - this.groupBox4.Padding = new System.Windows.Forms.Padding(2); - this.groupBox4.Size = new System.Drawing.Size(348, 218); + this.groupBox4.Padding = new System.Windows.Forms.Padding(1, 1, 1, 1); + this.groupBox4.Size = new System.Drawing.Size(244, 145); this.groupBox4.TabIndex = 45; this.groupBox4.TabStop = false; this.groupBox4.Text = "KA Indicator"; @@ -515,10 +510,9 @@ namespace vmsnet // txtValue // this.txtValue.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.txtValue.Location = new System.Drawing.Point(172, 155); - this.txtValue.Margin = new System.Windows.Forms.Padding(4); + this.txtValue.Location = new System.Drawing.Point(120, 103); this.txtValue.Name = "txtValue"; - this.txtValue.Size = new System.Drawing.Size(76, 39); + this.txtValue.Size = new System.Drawing.Size(54, 29); this.txtValue.TabIndex = 47; this.txtValue.Text = "10"; this.txtValue.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; @@ -526,10 +520,10 @@ namespace vmsnet // button5 // this.button5.Font = new System.Drawing.Font("맑은 고딕", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button5.Location = new System.Drawing.Point(92, 146); - this.button5.Margin = new System.Windows.Forms.Padding(2); + this.button5.Location = new System.Drawing.Point(64, 97); + this.button5.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1); this.button5.Name = "button5"; - this.button5.Size = new System.Drawing.Size(71, 54); + this.button5.Size = new System.Drawing.Size(50, 36); this.button5.TabIndex = 46; this.button5.Text = "끊기"; this.button5.UseVisualStyleBackColor = true; @@ -538,10 +532,10 @@ namespace vmsnet // button4 // this.button4.Font = new System.Drawing.Font("맑은 고딕", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button4.Location = new System.Drawing.Point(20, 146); - this.button4.Margin = new System.Windows.Forms.Padding(2); + this.button4.Location = new System.Drawing.Point(14, 97); + this.button4.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1); this.button4.Name = "button4"; - this.button4.Size = new System.Drawing.Size(71, 54); + this.button4.Size = new System.Drawing.Size(50, 36); this.button4.TabIndex = 45; this.button4.Text = "연결"; this.button4.UseVisualStyleBackColor = true; @@ -550,10 +544,10 @@ namespace vmsnet // button3 // this.button3.Font = new System.Drawing.Font("맑은 고딕", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); - this.button3.Location = new System.Drawing.Point(254, 146); - this.button3.Margin = new System.Windows.Forms.Padding(2); + this.button3.Location = new System.Drawing.Point(178, 97); + this.button3.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1); this.button3.Name = "button3"; - this.button3.Size = new System.Drawing.Size(79, 54); + this.button3.Size = new System.Drawing.Size(55, 36); this.button3.TabIndex = 45; this.button3.Text = "전송"; this.button3.UseVisualStyleBackColor = true; @@ -562,23 +556,22 @@ namespace vmsnet // cmbIndiport // this.cmbIndiport.FormattingEnabled = true; - this.cmbIndiport.Location = new System.Drawing.Point(181, 42); - this.cmbIndiport.Margin = new System.Windows.Forms.Padding(2); + this.cmbIndiport.Location = new System.Drawing.Point(127, 28); + this.cmbIndiport.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1); this.cmbIndiport.Name = "cmbIndiport"; - this.cmbIndiport.Size = new System.Drawing.Size(146, 40); + this.cmbIndiport.Size = new System.Drawing.Size(103, 29); this.cmbIndiport.TabIndex = 44; // // nudSlaveNo // - this.nudSlaveNo.Location = new System.Drawing.Point(181, 94); - this.nudSlaveNo.Margin = new System.Windows.Forms.Padding(4); + this.nudSlaveNo.Location = new System.Drawing.Point(127, 63); this.nudSlaveNo.Maximum = new decimal(new int[] { 255, 0, 0, 0}); this.nudSlaveNo.Name = "nudSlaveNo"; - this.nudSlaveNo.Size = new System.Drawing.Size(148, 39); + this.nudSlaveNo.Size = new System.Drawing.Size(104, 29); this.nudSlaveNo.TabIndex = 40; this.nudSlaveNo.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.nudSlaveNo.Value = new decimal(new int[] { @@ -590,80 +583,80 @@ namespace vmsnet // label22 // this.label22.AutoSize = true; - this.label22.Location = new System.Drawing.Point(34, 48); - this.label22.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label22.Location = new System.Drawing.Point(24, 32); this.label22.Name = "label22"; - this.label22.Size = new System.Drawing.Size(137, 32); + this.label22.Size = new System.Drawing.Size(95, 21); this.label22.TabIndex = 39; this.label22.Text = "Comm Port"; // // label23 // this.label23.AutoSize = true; - this.label23.Location = new System.Drawing.Point(41, 100); - this.label23.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label23.Location = new System.Drawing.Point(29, 67); this.label23.Name = "label23"; - this.label23.Size = new System.Drawing.Size(110, 32); + this.label23.Size = new System.Drawing.Size(76, 21); this.label23.TabIndex = 39; this.label23.Text = "Slave No"; // // label21 // - this.label21.Location = new System.Drawing.Point(346, 434); - this.label21.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label21.Location = new System.Drawing.Point(242, 289); + this.label21.Margin = new System.Windows.Forms.Padding(1, 0, 1, 0); this.label21.Name = "label21"; - this.label21.Size = new System.Drawing.Size(39, 38); + this.label21.Size = new System.Drawing.Size(27, 25); this.label21.TabIndex = 64; this.label21.Text = "~"; this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label19 // - this.label19.Location = new System.Drawing.Point(346, 328); - this.label19.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label19.Location = new System.Drawing.Point(242, 219); + this.label19.Margin = new System.Windows.Forms.Padding(1, 0, 1, 0); this.label19.Name = "label19"; - this.label19.Size = new System.Drawing.Size(39, 38); + this.label19.Size = new System.Drawing.Size(27, 25); this.label19.TabIndex = 64; this.label19.Text = "~"; this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label20 // - this.label20.Location = new System.Drawing.Point(346, 382); - this.label20.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label20.Location = new System.Drawing.Point(242, 255); + this.label20.Margin = new System.Windows.Forms.Padding(1, 0, 1, 0); this.label20.Name = "label20"; - this.label20.Size = new System.Drawing.Size(39, 38); + this.label20.Size = new System.Drawing.Size(27, 25); this.label20.TabIndex = 64; this.label20.Text = "~"; this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label18 // - this.label18.Location = new System.Drawing.Point(346, 274); - this.label18.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label18.Location = new System.Drawing.Point(242, 183); + this.label18.Margin = new System.Windows.Forms.Padding(1, 0, 1, 0); this.label18.Name = "label18"; - this.label18.Size = new System.Drawing.Size(39, 38); + this.label18.Size = new System.Drawing.Size(27, 25); this.label18.TabIndex = 64; this.label18.Text = "~"; this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // nudLimit // - this.nudLimit.Location = new System.Drawing.Point(224, 54); - this.nudLimit.Margin = new System.Windows.Forms.Padding(4); + this.nudLimit.Location = new System.Drawing.Point(157, 36); this.nudLimit.Maximum = new decimal(new int[] { 999999, 0, 0, 0}); this.nudLimit.Name = "nudLimit"; - this.nudLimit.Size = new System.Drawing.Size(180, 39); + this.nudLimit.Size = new System.Drawing.Size(126, 29); this.nudLimit.TabIndex = 63; this.nudLimit.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // groupBox3 // this.groupBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.groupBox3.Controls.Add(this.tb_savetermCellInfo); + this.groupBox3.Controls.Add(this.label24); + this.groupBox3.Controls.Add(this.label25); this.groupBox3.Controls.Add(this.label9); this.groupBox3.Controls.Add(this.linkLabel1); this.groupBox3.Controls.Add(this.tb_savepath); @@ -677,11 +670,9 @@ namespace vmsnet this.groupBox3.Controls.Add(this.Label14); this.groupBox3.Controls.Add(this.nudMaxCH); this.groupBox3.Controls.Add(this.Label10); - this.groupBox3.Location = new System.Drawing.Point(724, 272); - this.groupBox3.Margin = new System.Windows.Forms.Padding(4); + this.groupBox3.Location = new System.Drawing.Point(505, 181); this.groupBox3.Name = "groupBox3"; - this.groupBox3.Padding = new System.Windows.Forms.Padding(4); - this.groupBox3.Size = new System.Drawing.Size(754, 264); + this.groupBox3.Size = new System.Drawing.Size(528, 215); this.groupBox3.TabIndex = 62; this.groupBox3.TabStop = false; this.groupBox3.Text = "Data Save"; @@ -690,20 +681,18 @@ namespace vmsnet // this.label9.AutoSize = true; this.label9.ForeColor = System.Drawing.Color.Gray; - this.label9.Location = new System.Drawing.Point(31, 216); - this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label9.Location = new System.Drawing.Point(22, 144); this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(614, 32); + this.label9.Size = new System.Drawing.Size(414, 21); this.label9.TabIndex = 64; this.label9.Text = "저장폴더값이 비어 있다면 현재 폴더로 자동 인식됩니다"; // // linkLabel1 // this.linkLabel1.AutoSize = true; - this.linkLabel1.Location = new System.Drawing.Point(72, 50); - this.linkLabel1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.linkLabel1.Location = new System.Drawing.Point(50, 33); this.linkLabel1.Name = "linkLabel1"; - this.linkLabel1.Size = new System.Drawing.Size(110, 32); + this.linkLabel1.Size = new System.Drawing.Size(74, 21); this.linkLabel1.TabIndex = 63; this.linkLabel1.TabStop = true; this.linkLabel1.Text = "저장폴더"; @@ -711,20 +700,18 @@ namespace vmsnet // // tb_savepath // - this.tb_savepath.Location = new System.Drawing.Point(188, 42); - this.tb_savepath.Margin = new System.Windows.Forms.Padding(4); + this.tb_savepath.Location = new System.Drawing.Point(132, 28); this.tb_savepath.Name = "tb_savepath"; - this.tb_savepath.Size = new System.Drawing.Size(525, 39); + this.tb_savepath.Size = new System.Drawing.Size(369, 29); this.tb_savepath.TabIndex = 14; this.tb_savepath.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // tb_trashper // this.tb_trashper.ForeColor = System.Drawing.Color.Red; - this.tb_trashper.Location = new System.Drawing.Point(188, 98); - this.tb_trashper.Margin = new System.Windows.Forms.Padding(4); + this.tb_trashper.Location = new System.Drawing.Point(132, 65); this.tb_trashper.Name = "tb_trashper"; - this.tb_trashper.Size = new System.Drawing.Size(55, 39); + this.tb_trashper.Size = new System.Drawing.Size(40, 29); this.tb_trashper.TabIndex = 17; this.tb_trashper.Text = "0"; this.tb_trashper.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; @@ -732,30 +719,27 @@ namespace vmsnet // Label5 // this.Label5.AutoSize = true; - this.Label5.Location = new System.Drawing.Point(58, 104); - this.Label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.Label5.Location = new System.Drawing.Point(41, 69); this.Label5.Name = "Label5"; - this.Label5.Size = new System.Drawing.Size(134, 32); + this.Label5.Size = new System.Drawing.Size(90, 21); this.Label5.TabIndex = 16; this.Label5.Text = "디스크정리"; // // Label6 // this.Label6.AutoSize = true; - this.Label6.Location = new System.Drawing.Point(258, 104); - this.Label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.Label6.Location = new System.Drawing.Point(181, 69); this.Label6.Name = "Label6"; - this.Label6.Size = new System.Drawing.Size(34, 32); + this.Label6.Size = new System.Drawing.Size(23, 21); this.Label6.TabIndex = 16; this.Label6.Text = "%"; // // tb_saveterm // this.tb_saveterm.ForeColor = System.Drawing.Color.Red; - this.tb_saveterm.Location = new System.Drawing.Point(188, 154); - this.tb_saveterm.Margin = new System.Windows.Forms.Padding(4); + this.tb_saveterm.Location = new System.Drawing.Point(132, 103); this.tb_saveterm.Name = "tb_saveterm"; - this.tb_saveterm.Size = new System.Drawing.Size(55, 39); + this.tb_saveterm.Size = new System.Drawing.Size(40, 29); this.tb_saveterm.TabIndex = 20; this.tb_saveterm.Text = "0"; this.tb_saveterm.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; @@ -763,30 +747,27 @@ namespace vmsnet // Label8 // this.Label8.AutoSize = true; - this.Label8.Location = new System.Drawing.Point(11, 158); - this.Label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.Label8.Location = new System.Drawing.Point(8, 105); this.Label8.Name = "Label8"; - this.Label8.Size = new System.Drawing.Size(182, 32); + this.Label8.Size = new System.Drawing.Size(122, 21); this.Label8.TabIndex = 18; this.Label8.Text = "데이터저장주기"; // // Label7 // this.Label7.AutoSize = true; - this.Label7.Location = new System.Drawing.Point(258, 160); - this.Label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.Label7.Location = new System.Drawing.Point(181, 107); this.Label7.Name = "Label7"; - this.Label7.Size = new System.Drawing.Size(38, 32); + this.Label7.Size = new System.Drawing.Size(26, 21); this.Label7.TabIndex = 19; this.Label7.Text = "초"; // // tb_div // this.tb_div.ForeColor = System.Drawing.Color.Red; - this.tb_div.Location = new System.Drawing.Point(632, 98); - this.tb_div.Margin = new System.Windows.Forms.Padding(4); + this.tb_div.Location = new System.Drawing.Point(442, 65); this.tb_div.Name = "tb_div"; - this.tb_div.Size = new System.Drawing.Size(80, 39); + this.tb_div.Size = new System.Drawing.Size(57, 29); this.tb_div.TabIndex = 32; this.tb_div.Text = "1"; this.tb_div.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; @@ -794,140 +775,129 @@ namespace vmsnet // Label14 // this.Label14.AutoSize = true; - this.Label14.Location = new System.Drawing.Point(519, 106); - this.Label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.Label14.Location = new System.Drawing.Point(363, 71); this.Label14.Name = "Label14"; - this.Label14.Size = new System.Drawing.Size(106, 32); + this.Label14.Size = new System.Drawing.Size(72, 21); this.Label14.TabIndex = 30; this.Label14.Text = "Data Div"; // // nudMaxCH // - this.nudMaxCH.Location = new System.Drawing.Point(632, 154); - this.nudMaxCH.Margin = new System.Windows.Forms.Padding(4); + this.nudMaxCH.Location = new System.Drawing.Point(442, 103); this.nudMaxCH.Maximum = new decimal(new int[] { 1000, 0, 0, 0}); this.nudMaxCH.Name = "nudMaxCH"; - this.nudMaxCH.Size = new System.Drawing.Size(81, 39); + this.nudMaxCH.Size = new System.Drawing.Size(57, 29); this.nudMaxCH.TabIndex = 46; this.nudMaxCH.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // Label10 // this.Label10.AutoSize = true; - this.Label10.Location = new System.Drawing.Point(452, 158); - this.Label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.Label10.Location = new System.Drawing.Point(316, 105); this.Label10.Name = "Label10"; - this.Label10.Size = new System.Drawing.Size(175, 32); + this.Label10.Size = new System.Drawing.Size(118, 21); this.Label10.TabIndex = 30; this.Label10.Text = "Channel Count"; // // nud4thp2 // - this.nud4thp2.Location = new System.Drawing.Point(391, 432); - this.nud4thp2.Margin = new System.Windows.Forms.Padding(4); + this.nud4thp2.Location = new System.Drawing.Point(274, 288); this.nud4thp2.Maximum = new decimal(new int[] { 1000, 0, 0, 0}); this.nud4thp2.Name = "nud4thp2"; - this.nud4thp2.Size = new System.Drawing.Size(119, 39); + this.nud4thp2.Size = new System.Drawing.Size(83, 29); this.nud4thp2.TabIndex = 61; this.nud4thp2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // nud4thp1 // - this.nud4thp1.Location = new System.Drawing.Point(224, 432); - this.nud4thp1.Margin = new System.Windows.Forms.Padding(4); + this.nud4thp1.Location = new System.Drawing.Point(157, 288); this.nud4thp1.Maximum = new decimal(new int[] { 1000, 0, 0, 0}); this.nud4thp1.Name = "nud4thp1"; - this.nud4thp1.Size = new System.Drawing.Size(119, 39); + this.nud4thp1.Size = new System.Drawing.Size(83, 29); this.nud4thp1.TabIndex = 60; this.nud4thp1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // chk_4thData // this.chk_4thData.AutoSize = true; - this.chk_4thData.Location = new System.Drawing.Point(28, 434); - this.chk_4thData.Margin = new System.Windows.Forms.Padding(4); + this.chk_4thData.Location = new System.Drawing.Point(20, 289); this.chk_4thData.Name = "chk_4thData"; - this.chk_4thData.Size = new System.Drawing.Size(178, 36); + this.chk_4thData.Size = new System.Drawing.Size(124, 25); this.chk_4thData.TabIndex = 59; this.chk_4thData.Text = "Get 4th Data"; this.chk_4thData.UseVisualStyleBackColor = true; // // nud3rdp2 // - this.nud3rdp2.Location = new System.Drawing.Point(391, 380); - this.nud3rdp2.Margin = new System.Windows.Forms.Padding(4); + this.nud3rdp2.Location = new System.Drawing.Point(274, 253); this.nud3rdp2.Maximum = new decimal(new int[] { 1000, 0, 0, 0}); this.nud3rdp2.Name = "nud3rdp2"; - this.nud3rdp2.Size = new System.Drawing.Size(119, 39); + this.nud3rdp2.Size = new System.Drawing.Size(83, 29); this.nud3rdp2.TabIndex = 58; this.nud3rdp2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // nud3rdp1 // - this.nud3rdp1.Location = new System.Drawing.Point(224, 380); - this.nud3rdp1.Margin = new System.Windows.Forms.Padding(4); + this.nud3rdp1.Location = new System.Drawing.Point(157, 253); this.nud3rdp1.Maximum = new decimal(new int[] { 1000, 0, 0, 0}); this.nud3rdp1.Name = "nud3rdp1"; - this.nud3rdp1.Size = new System.Drawing.Size(119, 39); + this.nud3rdp1.Size = new System.Drawing.Size(83, 29); this.nud3rdp1.TabIndex = 57; this.nud3rdp1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // chk_3rdData // this.chk_3rdData.AutoSize = true; - this.chk_3rdData.Location = new System.Drawing.Point(28, 382); - this.chk_3rdData.Margin = new System.Windows.Forms.Padding(4); + this.chk_3rdData.Location = new System.Drawing.Point(20, 255); this.chk_3rdData.Name = "chk_3rdData"; - this.chk_3rdData.Size = new System.Drawing.Size(178, 36); + this.chk_3rdData.Size = new System.Drawing.Size(125, 25); this.chk_3rdData.TabIndex = 56; this.chk_3rdData.Text = "Get 3rd Data"; this.chk_3rdData.UseVisualStyleBackColor = true; // // nudPri2 // - this.nudPri2.Location = new System.Drawing.Point(391, 274); - this.nudPri2.Margin = new System.Windows.Forms.Padding(4); + this.nudPri2.Location = new System.Drawing.Point(274, 183); this.nudPri2.Maximum = new decimal(new int[] { 1000, 0, 0, 0}); this.nudPri2.Name = "nudPri2"; - this.nudPri2.Size = new System.Drawing.Size(119, 39); + this.nudPri2.Size = new System.Drawing.Size(83, 29); this.nudPri2.TabIndex = 55; this.nudPri2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // nudPri1 // - this.nudPri1.Location = new System.Drawing.Point(224, 274); - this.nudPri1.Margin = new System.Windows.Forms.Padding(4); + this.nudPri1.Location = new System.Drawing.Point(157, 183); this.nudPri1.Maximum = new decimal(new int[] { 1000, 0, 0, 0}); this.nudPri1.Name = "nudPri1"; - this.nudPri1.Size = new System.Drawing.Size(119, 39); + this.nudPri1.Size = new System.Drawing.Size(83, 29); this.nudPri1.TabIndex = 54; this.nudPri1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // @@ -937,49 +907,45 @@ namespace vmsnet this.chk_1stData.Checked = true; this.chk_1stData.CheckState = System.Windows.Forms.CheckState.Checked; this.chk_1stData.Enabled = false; - this.chk_1stData.Location = new System.Drawing.Point(28, 278); - this.chk_1stData.Margin = new System.Windows.Forms.Padding(4); + this.chk_1stData.Location = new System.Drawing.Point(20, 185); this.chk_1stData.Name = "chk_1stData"; - this.chk_1stData.Size = new System.Drawing.Size(174, 36); + this.chk_1stData.Size = new System.Drawing.Size(122, 25); this.chk_1stData.TabIndex = 53; this.chk_1stData.Text = "Get 1st Data"; this.chk_1stData.UseVisualStyleBackColor = true; // // nudSec2 // - this.nudSec2.Location = new System.Drawing.Point(391, 326); - this.nudSec2.Margin = new System.Windows.Forms.Padding(4); + this.nudSec2.Location = new System.Drawing.Point(274, 217); this.nudSec2.Maximum = new decimal(new int[] { 1000, 0, 0, 0}); this.nudSec2.Name = "nudSec2"; - this.nudSec2.Size = new System.Drawing.Size(119, 39); + this.nudSec2.Size = new System.Drawing.Size(83, 29); this.nudSec2.TabIndex = 51; this.nudSec2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // nudSec1 // - this.nudSec1.Location = new System.Drawing.Point(224, 326); - this.nudSec1.Margin = new System.Windows.Forms.Padding(4); + this.nudSec1.Location = new System.Drawing.Point(157, 217); this.nudSec1.Maximum = new decimal(new int[] { 1000, 0, 0, 0}); this.nudSec1.Name = "nudSec1"; - this.nudSec1.Size = new System.Drawing.Size(119, 39); + this.nudSec1.Size = new System.Drawing.Size(83, 29); this.nudSec1.TabIndex = 52; this.nudSec1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // chk_2nddata // this.chk_2nddata.AutoSize = true; - this.chk_2nddata.Location = new System.Drawing.Point(28, 328); - this.chk_2nddata.Margin = new System.Windows.Forms.Padding(4); + this.chk_2nddata.Location = new System.Drawing.Point(20, 219); this.chk_2nddata.Name = "chk_2nddata"; - this.chk_2nddata.Size = new System.Drawing.Size(184, 36); + this.chk_2nddata.Size = new System.Drawing.Size(128, 25); this.chk_2nddata.TabIndex = 50; this.chk_2nddata.Text = "Get 2nd Data"; this.chk_2nddata.UseVisualStyleBackColor = true; @@ -987,10 +953,9 @@ namespace vmsnet // chkEnableKA // this.chkEnableKA.AutoSize = true; - this.chkEnableKA.Location = new System.Drawing.Point(346, 214); - this.chkEnableKA.Margin = new System.Windows.Forms.Padding(4); + this.chkEnableKA.Location = new System.Drawing.Point(242, 143); this.chkEnableKA.Name = "chkEnableKA"; - this.chkEnableKA.Size = new System.Drawing.Size(149, 36); + this.chkEnableKA.Size = new System.Drawing.Size(103, 25); this.chkEnableKA.TabIndex = 45; this.chkEnableKA.Text = "Enable KA"; this.chkEnableKA.UseVisualStyleBackColor = true; @@ -1005,11 +970,11 @@ namespace vmsnet this.GroupBox2.Controls.Add(this.tb_plcidx); this.GroupBox2.Controls.Add(this.Label17); this.GroupBox2.Controls.Add(this.Label16); - this.GroupBox2.Location = new System.Drawing.Point(1078, 30); - this.GroupBox2.Margin = new System.Windows.Forms.Padding(2); + this.GroupBox2.Location = new System.Drawing.Point(753, 20); + this.GroupBox2.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1); this.GroupBox2.Name = "GroupBox2"; - this.GroupBox2.Padding = new System.Windows.Forms.Padding(2); - this.GroupBox2.Size = new System.Drawing.Size(412, 218); + this.GroupBox2.Padding = new System.Windows.Forms.Padding(1, 1, 1, 1); + this.GroupBox2.Size = new System.Drawing.Size(288, 145); this.GroupBox2.TabIndex = 41; this.GroupBox2.TabStop = false; this.GroupBox2.Text = "Alarm PLC"; @@ -1017,29 +982,28 @@ namespace vmsnet // cmb_plcport // this.cmb_plcport.FormattingEnabled = true; - this.cmb_plcport.Location = new System.Drawing.Point(151, 42); - this.cmb_plcport.Margin = new System.Windows.Forms.Padding(2); + this.cmb_plcport.Location = new System.Drawing.Point(106, 28); + this.cmb_plcport.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1); this.cmb_plcport.Name = "cmb_plcport"; - this.cmb_plcport.Size = new System.Drawing.Size(245, 40); + this.cmb_plcport.Size = new System.Drawing.Size(173, 29); this.cmb_plcport.TabIndex = 44; // // chk_alplc // this.chk_alplc.AutoSize = true; - this.chk_alplc.Location = new System.Drawing.Point(31, 152); - this.chk_alplc.Margin = new System.Windows.Forms.Padding(4); + this.chk_alplc.Location = new System.Drawing.Point(22, 101); this.chk_alplc.Name = "chk_alplc"; - this.chk_alplc.Size = new System.Drawing.Size(118, 36); + this.chk_alplc.Size = new System.Drawing.Size(78, 25); this.chk_alplc.TabIndex = 42; this.chk_alplc.Text = "On/Off"; this.chk_alplc.UseVisualStyleBackColor = true; // // Button2 // - this.Button2.Location = new System.Drawing.Point(270, 142); - this.Button2.Margin = new System.Windows.Forms.Padding(2); + this.Button2.Location = new System.Drawing.Point(189, 95); + this.Button2.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1); this.Button2.Name = "Button2"; - this.Button2.Size = new System.Drawing.Size(128, 54); + this.Button2.Size = new System.Drawing.Size(90, 36); this.Button2.TabIndex = 43; this.Button2.Text = "Off"; this.Button2.UseVisualStyleBackColor = true; @@ -1047,10 +1011,10 @@ namespace vmsnet // // Button1 // - this.Button1.Location = new System.Drawing.Point(151, 142); - this.Button1.Margin = new System.Windows.Forms.Padding(2); + this.Button1.Location = new System.Drawing.Point(106, 95); + this.Button1.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1); this.Button1.Name = "Button1"; - this.Button1.Size = new System.Drawing.Size(112, 54); + this.Button1.Size = new System.Drawing.Size(78, 36); this.Button1.TabIndex = 42; this.Button1.Text = "On"; this.Button1.UseVisualStyleBackColor = true; @@ -1058,55 +1022,50 @@ namespace vmsnet // // tb_plcidx // - this.tb_plcidx.Location = new System.Drawing.Point(151, 92); - this.tb_plcidx.Margin = new System.Windows.Forms.Padding(4); + this.tb_plcidx.Location = new System.Drawing.Point(106, 61); this.tb_plcidx.Maximum = new decimal(new int[] { 1000, 0, 0, 0}); this.tb_plcidx.Name = "tb_plcidx"; - this.tb_plcidx.Size = new System.Drawing.Size(246, 39); + this.tb_plcidx.Size = new System.Drawing.Size(172, 29); this.tb_plcidx.TabIndex = 40; this.tb_plcidx.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // Label17 // this.Label17.AutoSize = true; - this.Label17.Location = new System.Drawing.Point(8, 48); - this.Label17.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.Label17.Location = new System.Drawing.Point(6, 32); this.Label17.Name = "Label17"; - this.Label17.Size = new System.Drawing.Size(137, 32); + this.Label17.Size = new System.Drawing.Size(95, 21); this.Label17.TabIndex = 39; this.Label17.Text = "Comm Port"; // // Label16 // this.Label16.AutoSize = true; - this.Label16.Location = new System.Drawing.Point(14, 98); - this.Label16.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.Label16.Location = new System.Drawing.Point(10, 65); this.Label16.Name = "Label16"; - this.Label16.Size = new System.Drawing.Size(137, 32); + this.Label16.Size = new System.Drawing.Size(96, 21); this.Label16.TabIndex = 39; this.Label16.Text = "Alarm Addr"; // // Label15 // this.Label15.AutoSize = true; - this.Label15.Location = new System.Drawing.Point(412, 58); - this.Label15.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.Label15.Location = new System.Drawing.Point(288, 39); this.Label15.Name = "Label15"; - this.Label15.Size = new System.Drawing.Size(113, 32); + this.Label15.Size = new System.Drawing.Size(78, 21); this.Label15.TabIndex = 38; this.Label15.Text = "ms / cyle"; // // chk_sumab // this.chk_sumab.AutoSize = true; - this.chk_sumab.Location = new System.Drawing.Point(28, 546); - this.chk_sumab.Margin = new System.Windows.Forms.Padding(4); + this.chk_sumab.Location = new System.Drawing.Point(20, 364); this.chk_sumab.Name = "chk_sumab"; - this.chk_sumab.Size = new System.Drawing.Size(195, 36); + this.chk_sumab.Size = new System.Drawing.Size(135, 25); this.chk_sumab.TabIndex = 33; this.chk_sumab.Text = "SUM A,SUM B"; this.chk_sumab.UseVisualStyleBackColor = true; @@ -1114,10 +1073,9 @@ namespace vmsnet // chk_nb // this.chk_nb.AutoSize = true; - this.chk_nb.Location = new System.Drawing.Point(28, 498); - this.chk_nb.Margin = new System.Windows.Forms.Padding(4); + this.chk_nb.Location = new System.Drawing.Point(20, 332); this.chk_nb.Name = "chk_nb"; - this.chk_nb.Size = new System.Drawing.Size(478, 36); + this.chk_nb.Size = new System.Drawing.Size(323, 25); this.chk_nb.TabIndex = 29; this.chk_nb.Text = "NullBalance 기준값을 실제값으로 사용함"; this.chk_nb.UseVisualStyleBackColor = true; @@ -1125,10 +1083,9 @@ namespace vmsnet // chk_lsb // this.chk_lsb.AutoSize = true; - this.chk_lsb.Location = new System.Drawing.Point(28, 214); - this.chk_lsb.Margin = new System.Windows.Forms.Padding(4); + this.chk_lsb.Location = new System.Drawing.Point(20, 143); this.chk_lsb.Name = "chk_lsb"; - this.chk_lsb.Size = new System.Drawing.Size(314, 36); + this.chk_lsb.Size = new System.Drawing.Size(217, 25); this.chk_lsb.TabIndex = 15; this.chk_lsb.Text = "Binary OutputMode : LSB"; this.chk_lsb.UseVisualStyleBackColor = true; @@ -1136,10 +1093,9 @@ namespace vmsnet // chk_synctime // this.chk_synctime.AutoSize = true; - this.chk_synctime.Location = new System.Drawing.Point(28, 164); - this.chk_synctime.Margin = new System.Windows.Forms.Padding(4); + this.chk_synctime.Location = new System.Drawing.Point(20, 109); this.chk_synctime.Name = "chk_synctime"; - this.chk_synctime.Size = new System.Drawing.Size(461, 36); + this.chk_synctime.Size = new System.Drawing.Size(313, 25); this.chk_synctime.TabIndex = 10; this.chk_synctime.Text = "장치의 시간을 컴퓨터와 동기화 합니다."; this.chk_synctime.UseVisualStyleBackColor = true; @@ -1147,10 +1103,9 @@ namespace vmsnet // chk_savebinary // this.chk_savebinary.AutoSize = true; - this.chk_savebinary.Location = new System.Drawing.Point(28, 114); - this.chk_savebinary.Margin = new System.Windows.Forms.Padding(4); + this.chk_savebinary.Location = new System.Drawing.Point(20, 76); this.chk_savebinary.Name = "chk_savebinary"; - this.chk_savebinary.Size = new System.Drawing.Size(685, 36); + this.chk_savebinary.Size = new System.Drawing.Size(463, 25); this.chk_savebinary.TabIndex = 9; this.chk_savebinary.Text = "장치로부터 수신된 측정데이터(Binary)를 파일로 저장합니다."; this.chk_savebinary.UseVisualStyleBackColor = true; @@ -1158,20 +1113,18 @@ namespace vmsnet // Label1 // this.Label1.AutoSize = true; - this.Label1.Location = new System.Drawing.Point(28, 58); - this.Label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.Label1.Location = new System.Drawing.Point(20, 39); this.Label1.Name = "Label1"; - this.Label1.Size = new System.Drawing.Size(198, 32); + this.Label1.Size = new System.Drawing.Size(134, 21); this.Label1.TabIndex = 7; this.Label1.Text = "데이터 요청 간격"; // // tb_tel // this.tb_tel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.tb_tel.Location = new System.Drawing.Point(1106, 20); - this.tb_tel.Margin = new System.Windows.Forms.Padding(4); + this.tb_tel.Location = new System.Drawing.Point(774, 13); this.tb_tel.Name = "tb_tel"; - this.tb_tel.Size = new System.Drawing.Size(376, 39); + this.tb_tel.Size = new System.Drawing.Size(264, 29); this.tb_tel.TabIndex = 5; this.tb_tel.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.tb_tel.Visible = false; @@ -1180,30 +1133,27 @@ namespace vmsnet // this.Label4.AutoSize = true; this.Label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.Label4.Location = new System.Drawing.Point(969, 26); - this.Label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.Label4.Location = new System.Drawing.Point(678, 17); this.Label4.Name = "Label4"; - this.Label4.Size = new System.Drawing.Size(134, 32); + this.Label4.Size = new System.Drawing.Size(90, 21); this.Label4.TabIndex = 4; this.Label4.Text = "업체연락처"; this.Label4.Visible = false; // // tb_sangho // - this.tb_sangho.Location = new System.Drawing.Point(216, 26); - this.tb_sangho.Margin = new System.Windows.Forms.Padding(4); + this.tb_sangho.Location = new System.Drawing.Point(151, 17); this.tb_sangho.Name = "tb_sangho"; - this.tb_sangho.Size = new System.Drawing.Size(295, 39); + this.tb_sangho.Size = new System.Drawing.Size(208, 29); this.tb_sangho.TabIndex = 3; this.tb_sangho.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // Label3 // this.Label3.AutoSize = true; - this.Label3.Location = new System.Drawing.Point(120, 30); - this.Label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.Label3.Location = new System.Drawing.Point(84, 20); this.Label3.Name = "Label3"; - this.Label3.Size = new System.Drawing.Size(86, 32); + this.Label3.Size = new System.Drawing.Size(58, 21); this.Label3.TabIndex = 2; this.Label3.Text = "업체명"; // @@ -1212,10 +1162,9 @@ namespace vmsnet this.TabPage2.Controls.Add(this.dv_device); this.TabPage2.Controls.Add(this.label11); this.TabPage2.Controls.Add(this.bn_Device); - this.TabPage2.Location = new System.Drawing.Point(4, 28); - this.TabPage2.Margin = new System.Windows.Forms.Padding(4); + this.TabPage2.Location = new System.Drawing.Point(4, 22); this.TabPage2.Name = "TabPage2"; - this.TabPage2.Size = new System.Drawing.Size(1510, 896); + this.TabPage2.Size = new System.Drawing.Size(1055, 593); this.TabPage2.TabIndex = 1; this.TabPage2.Text = "장치설정"; this.TabPage2.UseVisualStyleBackColor = true; @@ -1259,8 +1208,7 @@ namespace vmsnet dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.dv_device.DefaultCellStyle = dataGridViewCellStyle8; this.dv_device.Dock = System.Windows.Forms.DockStyle.Fill; - this.dv_device.Location = new System.Drawing.Point(0, 33); - this.dv_device.Margin = new System.Windows.Forms.Padding(4); + this.dv_device.Location = new System.Drawing.Point(0, 31); this.dv_device.MultiSelect = false; this.dv_device.Name = "dv_device"; dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; @@ -1275,7 +1223,7 @@ namespace vmsnet this.dv_device.RowHeadersWidth = 62; this.dv_device.RowTemplate.Height = 23; this.dv_device.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; - this.dv_device.Size = new System.Drawing.Size(1510, 817); + this.dv_device.Size = new System.Drawing.Size(1055, 531); this.dv_device.TabIndex = 0; // // M_IDX @@ -1371,20 +1319,20 @@ namespace vmsnet this.장치구조재구성ToolStripMenuItem, this.장치자동설정ToolStripMenuItem}); this.ContextMenuStrip1.Name = "ContextMenuStrip1"; - this.ContextMenuStrip1.Size = new System.Drawing.Size(251, 68); + this.ContextMenuStrip1.Size = new System.Drawing.Size(187, 48); // // 장치구조재구성ToolStripMenuItem // this.장치구조재구성ToolStripMenuItem.Enabled = false; this.장치구조재구성ToolStripMenuItem.Name = "장치구조재구성ToolStripMenuItem"; - this.장치구조재구성ToolStripMenuItem.Size = new System.Drawing.Size(250, 32); + this.장치구조재구성ToolStripMenuItem.Size = new System.Drawing.Size(186, 22); this.장치구조재구성ToolStripMenuItem.Text = "Reconstruction"; this.장치구조재구성ToolStripMenuItem.Click += new System.EventHandler(this.장치구조재구성ToolStripMenuItem_Click); // // 장치자동설정ToolStripMenuItem // this.장치자동설정ToolStripMenuItem.Name = "장치자동설정ToolStripMenuItem"; - this.장치자동설정ToolStripMenuItem.Size = new System.Drawing.Size(250, 32); + this.장치자동설정ToolStripMenuItem.Size = new System.Drawing.Size(186, 22); this.장치자동설정ToolStripMenuItem.Text = "AutoChannel Setting"; this.장치자동설정ToolStripMenuItem.Click += new System.EventHandler(this.장치자동설정ToolStripMenuItem_Click); // @@ -1402,11 +1350,10 @@ namespace vmsnet // this.label11.Dock = System.Windows.Forms.DockStyle.Bottom; this.label11.ForeColor = System.Drawing.Color.Blue; - this.label11.Location = new System.Drawing.Point(0, 850); - this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label11.Location = new System.Drawing.Point(0, 562); this.label11.Name = "label11"; - this.label11.Padding = new System.Windows.Forms.Padding(14, 0, 0, 0); - this.label11.Size = new System.Drawing.Size(1510, 46); + this.label11.Padding = new System.Windows.Forms.Padding(10, 0, 0, 0); + this.label11.Size = new System.Drawing.Size(1055, 31); this.label11.TabIndex = 26; this.label11.Text = "유닛 0부터 시작 합니다. 예) 0*60,1*60,2*60, IP혹은 PORT변경시에는 프로그램을 다시 시작 하세요"; this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -1440,7 +1387,7 @@ namespace vmsnet this.bn_Device.MovePreviousItem = this.BindingNavigatorMovePreviousItem; this.bn_Device.Name = "bn_Device"; this.bn_Device.PositionItem = this.BindingNavigatorPositionItem; - this.bn_Device.Size = new System.Drawing.Size(1510, 33); + this.bn_Device.Size = new System.Drawing.Size(1055, 31); this.bn_Device.TabIndex = 1; this.bn_Device.Text = "BindingNavigator1"; // @@ -1450,13 +1397,13 @@ namespace vmsnet 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(34, 28); + this.BindingNavigatorAddNewItem.Size = new System.Drawing.Size(28, 28); this.BindingNavigatorAddNewItem.Text = "새로 추가"; // // BindingNavigatorCountItem // this.BindingNavigatorCountItem.Name = "BindingNavigatorCountItem"; - this.BindingNavigatorCountItem.Size = new System.Drawing.Size(39, 28); + this.BindingNavigatorCountItem.Size = new System.Drawing.Size(27, 28); this.BindingNavigatorCountItem.Text = "/{0}"; this.BindingNavigatorCountItem.ToolTipText = "전체 항목 수"; // @@ -1466,7 +1413,7 @@ namespace vmsnet 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(34, 28); + this.BindingNavigatorDeleteItem.Size = new System.Drawing.Size(28, 28); this.BindingNavigatorDeleteItem.Text = "삭제"; // // BindingNavigatorMoveFirstItem @@ -1475,7 +1422,7 @@ namespace vmsnet 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(34, 28); + this.BindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(28, 28); this.BindingNavigatorMoveFirstItem.Text = "처음으로 이동"; // // BindingNavigatorMovePreviousItem @@ -1484,13 +1431,13 @@ namespace vmsnet 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(34, 28); + this.BindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(28, 28); this.BindingNavigatorMovePreviousItem.Text = "이전으로 이동"; // // BindingNavigatorSeparator // this.BindingNavigatorSeparator.Name = "BindingNavigatorSeparator"; - this.BindingNavigatorSeparator.Size = new System.Drawing.Size(6, 33); + this.BindingNavigatorSeparator.Size = new System.Drawing.Size(6, 31); // // BindingNavigatorPositionItem // @@ -1498,14 +1445,14 @@ namespace vmsnet this.BindingNavigatorPositionItem.AutoSize = false; this.BindingNavigatorPositionItem.Font = new System.Drawing.Font("맑은 고딕", 9F); this.BindingNavigatorPositionItem.Name = "BindingNavigatorPositionItem"; - this.BindingNavigatorPositionItem.Size = new System.Drawing.Size(70, 31); + this.BindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23); this.BindingNavigatorPositionItem.Text = "0"; this.BindingNavigatorPositionItem.ToolTipText = "현재 위치"; // // BindingNavigatorSeparator1 // this.BindingNavigatorSeparator1.Name = "BindingNavigatorSeparator1"; - this.BindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 33); + this.BindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 31); // // BindingNavigatorMoveNextItem // @@ -1513,7 +1460,7 @@ namespace vmsnet 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(34, 28); + this.BindingNavigatorMoveNextItem.Size = new System.Drawing.Size(28, 28); this.BindingNavigatorMoveNextItem.Text = "다음으로 이동"; // // BindingNavigatorMoveLastItem @@ -1522,25 +1469,25 @@ namespace vmsnet 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(34, 28); + this.BindingNavigatorMoveLastItem.Size = new System.Drawing.Size(28, 28); this.BindingNavigatorMoveLastItem.Text = "마지막으로 이동"; // // BindingNavigatorSeparator2 // this.BindingNavigatorSeparator2.Name = "BindingNavigatorSeparator2"; - this.BindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 33); + this.BindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 31); // // ToolStripSeparator8 // this.ToolStripSeparator8.Name = "ToolStripSeparator8"; - this.ToolStripSeparator8.Size = new System.Drawing.Size(6, 33); + this.ToolStripSeparator8.Size = new System.Drawing.Size(6, 31); // // toolStripButton1 // 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(172, 29); + this.toolStripButton1.Size = new System.Drawing.Size(127, 28); this.toolStripButton1.Text = "IP SET(127.0.0.1)"; this.toolStripButton1.Visible = false; this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click_1); @@ -1550,7 +1497,7 @@ namespace vmsnet this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image"))); this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton2.Name = "toolStripButton2"; - this.toolStripButton2.Size = new System.Drawing.Size(217, 29); + this.toolStripButton2.Size = new System.Drawing.Size(157, 28); this.toolStripButton2.Text = "IP SET(192.168.0.1 ~ )"; this.toolStripButton2.Visible = false; this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click_1); @@ -1560,10 +1507,9 @@ namespace vmsnet this.TabPage5.Controls.Add(this.dv_win); this.TabPage5.Controls.Add(this.label13); this.TabPage5.Controls.Add(this.BN_WIN); - this.TabPage5.Location = new System.Drawing.Point(4, 28); - this.TabPage5.Margin = new System.Windows.Forms.Padding(4); + this.TabPage5.Location = new System.Drawing.Point(4, 22); this.TabPage5.Name = "TabPage5"; - this.TabPage5.Size = new System.Drawing.Size(1510, 896); + this.TabPage5.Size = new System.Drawing.Size(1055, 593); this.TabPage5.TabIndex = 4; this.TabPage5.Text = "윈도우설정"; this.TabPage5.UseVisualStyleBackColor = true; @@ -1600,8 +1546,7 @@ namespace vmsnet dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.dv_win.DefaultCellStyle = dataGridViewCellStyle11; this.dv_win.Dock = System.Windows.Forms.DockStyle.Fill; - this.dv_win.Location = new System.Drawing.Point(0, 33); - this.dv_win.Margin = new System.Windows.Forms.Padding(4); + this.dv_win.Location = new System.Drawing.Point(0, 31); this.dv_win.Name = "dv_win"; dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control; @@ -1614,7 +1559,7 @@ namespace vmsnet this.dv_win.RowHeadersVisible = false; this.dv_win.RowHeadersWidth = 62; this.dv_win.RowTemplate.Height = 23; - this.dv_win.Size = new System.Drawing.Size(1510, 817); + this.dv_win.Size = new System.Drawing.Size(1055, 531); this.dv_win.TabIndex = 3; this.dv_win.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DV_WIN_CellContentClick); this.dv_win.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.DV_WIN_DataError); @@ -1665,11 +1610,10 @@ namespace vmsnet // this.label13.Dock = System.Windows.Forms.DockStyle.Bottom; this.label13.ForeColor = System.Drawing.Color.Blue; - this.label13.Location = new System.Drawing.Point(0, 850); - this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label13.Location = new System.Drawing.Point(0, 562); this.label13.Name = "label13"; - this.label13.Padding = new System.Windows.Forms.Padding(14, 0, 0, 0); - this.label13.Size = new System.Drawing.Size(1510, 46); + this.label13.Padding = new System.Windows.Forms.Padding(10, 0, 0, 0); + this.label13.Size = new System.Drawing.Size(1055, 31); this.label13.TabIndex = 27; this.label13.Text = "아이템배열 예) 1*4"; this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -1700,7 +1644,7 @@ namespace vmsnet this.BN_WIN.MovePreviousItem = this.ToolStripButton19; this.BN_WIN.Name = "BN_WIN"; this.BN_WIN.PositionItem = this.ToolStripTextBox3; - this.BN_WIN.Size = new System.Drawing.Size(1510, 33); + this.BN_WIN.Size = new System.Drawing.Size(1055, 31); this.BN_WIN.TabIndex = 4; this.BN_WIN.Text = "BindingNavigator1"; // @@ -1710,13 +1654,13 @@ namespace vmsnet this.ToolStripButton16.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton16.Image"))); this.ToolStripButton16.Name = "ToolStripButton16"; this.ToolStripButton16.RightToLeftAutoMirrorImage = true; - this.ToolStripButton16.Size = new System.Drawing.Size(34, 28); + this.ToolStripButton16.Size = new System.Drawing.Size(28, 28); this.ToolStripButton16.Text = "새로 추가"; // // ToolStripLabel3 // this.ToolStripLabel3.Name = "ToolStripLabel3"; - this.ToolStripLabel3.Size = new System.Drawing.Size(39, 28); + this.ToolStripLabel3.Size = new System.Drawing.Size(27, 28); this.ToolStripLabel3.Text = "/{0}"; this.ToolStripLabel3.ToolTipText = "전체 항목 수"; // @@ -1726,7 +1670,7 @@ namespace vmsnet this.ToolStripButton17.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton17.Image"))); this.ToolStripButton17.Name = "ToolStripButton17"; this.ToolStripButton17.RightToLeftAutoMirrorImage = true; - this.ToolStripButton17.Size = new System.Drawing.Size(34, 28); + this.ToolStripButton17.Size = new System.Drawing.Size(28, 28); this.ToolStripButton17.Text = "삭제"; // // ToolStripButton18 @@ -1735,7 +1679,7 @@ namespace vmsnet this.ToolStripButton18.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton18.Image"))); this.ToolStripButton18.Name = "ToolStripButton18"; this.ToolStripButton18.RightToLeftAutoMirrorImage = true; - this.ToolStripButton18.Size = new System.Drawing.Size(34, 28); + this.ToolStripButton18.Size = new System.Drawing.Size(28, 28); this.ToolStripButton18.Text = "처음으로 이동"; // // ToolStripButton19 @@ -1744,13 +1688,13 @@ namespace vmsnet this.ToolStripButton19.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton19.Image"))); this.ToolStripButton19.Name = "ToolStripButton19"; this.ToolStripButton19.RightToLeftAutoMirrorImage = true; - this.ToolStripButton19.Size = new System.Drawing.Size(34, 28); + this.ToolStripButton19.Size = new System.Drawing.Size(28, 28); this.ToolStripButton19.Text = "이전으로 이동"; // // ToolStripSeparator9 // this.ToolStripSeparator9.Name = "ToolStripSeparator9"; - this.ToolStripSeparator9.Size = new System.Drawing.Size(6, 33); + this.ToolStripSeparator9.Size = new System.Drawing.Size(6, 31); // // ToolStripTextBox3 // @@ -1758,14 +1702,14 @@ namespace vmsnet this.ToolStripTextBox3.AutoSize = false; this.ToolStripTextBox3.Font = new System.Drawing.Font("맑은 고딕", 9F); this.ToolStripTextBox3.Name = "ToolStripTextBox3"; - this.ToolStripTextBox3.Size = new System.Drawing.Size(70, 31); + this.ToolStripTextBox3.Size = new System.Drawing.Size(50, 23); this.ToolStripTextBox3.Text = "0"; this.ToolStripTextBox3.ToolTipText = "현재 위치"; // // ToolStripSeparator10 // this.ToolStripSeparator10.Name = "ToolStripSeparator10"; - this.ToolStripSeparator10.Size = new System.Drawing.Size(6, 33); + this.ToolStripSeparator10.Size = new System.Drawing.Size(6, 31); // // ToolStripButton20 // @@ -1773,7 +1717,7 @@ namespace vmsnet this.ToolStripButton20.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton20.Image"))); this.ToolStripButton20.Name = "ToolStripButton20"; this.ToolStripButton20.RightToLeftAutoMirrorImage = true; - this.ToolStripButton20.Size = new System.Drawing.Size(34, 28); + this.ToolStripButton20.Size = new System.Drawing.Size(28, 28); this.ToolStripButton20.Text = "다음으로 이동"; // // ToolStripButton21 @@ -1782,23 +1726,22 @@ namespace vmsnet this.ToolStripButton21.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton21.Image"))); this.ToolStripButton21.Name = "ToolStripButton21"; this.ToolStripButton21.RightToLeftAutoMirrorImage = true; - this.ToolStripButton21.Size = new System.Drawing.Size(34, 28); + this.ToolStripButton21.Size = new System.Drawing.Size(28, 28); this.ToolStripButton21.Text = "마지막으로 이동"; // // ToolStripSeparator11 // this.ToolStripSeparator11.Name = "ToolStripSeparator11"; - this.ToolStripSeparator11.Size = new System.Drawing.Size(6, 33); + this.ToolStripSeparator11.Size = new System.Drawing.Size(6, 31); // // TabPage4 // this.TabPage4.Controls.Add(this.dv_grp); this.TabPage4.Controls.Add(this.label2); this.TabPage4.Controls.Add(this.bn_group); - this.TabPage4.Location = new System.Drawing.Point(4, 28); - this.TabPage4.Margin = new System.Windows.Forms.Padding(4); + this.TabPage4.Location = new System.Drawing.Point(4, 22); this.TabPage4.Name = "TabPage4"; - this.TabPage4.Size = new System.Drawing.Size(1510, 896); + this.TabPage4.Size = new System.Drawing.Size(1055, 593); this.TabPage4.TabIndex = 3; this.TabPage4.Text = "그룹설정"; this.TabPage4.UseVisualStyleBackColor = true; @@ -1852,8 +1795,7 @@ namespace vmsnet dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.dv_grp.DefaultCellStyle = dataGridViewCellStyle23; this.dv_grp.Dock = System.Windows.Forms.DockStyle.Fill; - this.dv_grp.Location = new System.Drawing.Point(0, 33); - this.dv_grp.Margin = new System.Windows.Forms.Padding(4); + this.dv_grp.Location = new System.Drawing.Point(0, 31); this.dv_grp.Name = "dv_grp"; dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle24.BackColor = System.Drawing.SystemColors.Control; @@ -1866,7 +1808,7 @@ namespace vmsnet this.dv_grp.RowHeadersVisible = false; this.dv_grp.RowHeadersWidth = 62; this.dv_grp.RowTemplate.Height = 23; - this.dv_grp.Size = new System.Drawing.Size(1510, 805); + this.dv_grp.Size = new System.Drawing.Size(1055, 523); this.dv_grp.TabIndex = 2; this.dv_grp.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dv_grp_DataError); // @@ -2186,10 +2128,9 @@ namespace vmsnet this.label2.Dock = System.Windows.Forms.DockStyle.Bottom; this.label2.Font = new System.Drawing.Font("맑은 고딕", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129))); this.label2.ForeColor = System.Drawing.Color.Red; - this.label2.Location = new System.Drawing.Point(0, 838); - this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label2.Location = new System.Drawing.Point(0, 554); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(1510, 58); + this.label2.Size = new System.Drawing.Size(1055, 39); this.label2.TabIndex = 4; this.label2.Text = "Null Balance 알람기준값 설명 : HIGH(입력값을 초과하는 경우 발생), LOW(입력값 미만인 경우 발생)"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -2220,7 +2161,7 @@ namespace vmsnet this.bn_group.MovePreviousItem = this.ToolStripButton12; this.bn_group.Name = "bn_group"; this.bn_group.PositionItem = this.ToolStripTextBox2; - this.bn_group.Size = new System.Drawing.Size(1510, 33); + this.bn_group.Size = new System.Drawing.Size(1055, 31); this.bn_group.TabIndex = 3; this.bn_group.Text = "BindingNavigator1"; // @@ -2230,13 +2171,13 @@ namespace vmsnet this.ToolStripButton9.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton9.Image"))); this.ToolStripButton9.Name = "ToolStripButton9"; this.ToolStripButton9.RightToLeftAutoMirrorImage = true; - this.ToolStripButton9.Size = new System.Drawing.Size(34, 28); + this.ToolStripButton9.Size = new System.Drawing.Size(28, 28); this.ToolStripButton9.Text = "새로 추가"; // // ToolStripLabel2 // this.ToolStripLabel2.Name = "ToolStripLabel2"; - this.ToolStripLabel2.Size = new System.Drawing.Size(39, 28); + this.ToolStripLabel2.Size = new System.Drawing.Size(27, 28); this.ToolStripLabel2.Text = "/{0}"; this.ToolStripLabel2.ToolTipText = "전체 항목 수"; // @@ -2246,7 +2187,7 @@ namespace vmsnet this.ToolStripButton10.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton10.Image"))); this.ToolStripButton10.Name = "ToolStripButton10"; this.ToolStripButton10.RightToLeftAutoMirrorImage = true; - this.ToolStripButton10.Size = new System.Drawing.Size(34, 28); + this.ToolStripButton10.Size = new System.Drawing.Size(28, 28); this.ToolStripButton10.Text = "삭제"; // // ToolStripButton11 @@ -2255,7 +2196,7 @@ namespace vmsnet this.ToolStripButton11.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton11.Image"))); this.ToolStripButton11.Name = "ToolStripButton11"; this.ToolStripButton11.RightToLeftAutoMirrorImage = true; - this.ToolStripButton11.Size = new System.Drawing.Size(34, 28); + this.ToolStripButton11.Size = new System.Drawing.Size(28, 28); this.ToolStripButton11.Text = "처음으로 이동"; // // ToolStripButton12 @@ -2264,13 +2205,13 @@ namespace vmsnet this.ToolStripButton12.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton12.Image"))); this.ToolStripButton12.Name = "ToolStripButton12"; this.ToolStripButton12.RightToLeftAutoMirrorImage = true; - this.ToolStripButton12.Size = new System.Drawing.Size(34, 28); + this.ToolStripButton12.Size = new System.Drawing.Size(28, 28); this.ToolStripButton12.Text = "이전으로 이동"; // // ToolStripSeparator4 // this.ToolStripSeparator4.Name = "ToolStripSeparator4"; - this.ToolStripSeparator4.Size = new System.Drawing.Size(6, 33); + this.ToolStripSeparator4.Size = new System.Drawing.Size(6, 31); // // ToolStripTextBox2 // @@ -2278,14 +2219,14 @@ namespace vmsnet this.ToolStripTextBox2.AutoSize = false; this.ToolStripTextBox2.Font = new System.Drawing.Font("맑은 고딕", 9F); this.ToolStripTextBox2.Name = "ToolStripTextBox2"; - this.ToolStripTextBox2.Size = new System.Drawing.Size(70, 31); + this.ToolStripTextBox2.Size = new System.Drawing.Size(50, 23); this.ToolStripTextBox2.Text = "0"; this.ToolStripTextBox2.ToolTipText = "현재 위치"; // // ToolStripSeparator5 // this.ToolStripSeparator5.Name = "ToolStripSeparator5"; - this.ToolStripSeparator5.Size = new System.Drawing.Size(6, 33); + this.ToolStripSeparator5.Size = new System.Drawing.Size(6, 31); // // ToolStripButton13 // @@ -2293,7 +2234,7 @@ namespace vmsnet this.ToolStripButton13.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton13.Image"))); this.ToolStripButton13.Name = "ToolStripButton13"; this.ToolStripButton13.RightToLeftAutoMirrorImage = true; - this.ToolStripButton13.Size = new System.Drawing.Size(34, 28); + this.ToolStripButton13.Size = new System.Drawing.Size(28, 28); this.ToolStripButton13.Text = "다음으로 이동"; // // ToolStripButton14 @@ -2302,22 +2243,21 @@ namespace vmsnet this.ToolStripButton14.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton14.Image"))); this.ToolStripButton14.Name = "ToolStripButton14"; this.ToolStripButton14.RightToLeftAutoMirrorImage = true; - this.ToolStripButton14.Size = new System.Drawing.Size(34, 28); + this.ToolStripButton14.Size = new System.Drawing.Size(28, 28); this.ToolStripButton14.Text = "마지막으로 이동"; // // ToolStripSeparator6 // this.ToolStripSeparator6.Name = "ToolStripSeparator6"; - this.ToolStripSeparator6.Size = new System.Drawing.Size(6, 33); + this.ToolStripSeparator6.Size = new System.Drawing.Size(6, 31); // // TabPage3 // this.TabPage3.Controls.Add(this.dv_channel); this.TabPage3.Controls.Add(this.bn_channel); - this.TabPage3.Location = new System.Drawing.Point(4, 28); - this.TabPage3.Margin = new System.Windows.Forms.Padding(4); + this.TabPage3.Location = new System.Drawing.Point(4, 22); this.TabPage3.Name = "TabPage3"; - this.TabPage3.Size = new System.Drawing.Size(1510, 896); + this.TabPage3.Size = new System.Drawing.Size(1055, 593); this.TabPage3.TabIndex = 2; this.TabPage3.Text = "셀설정"; this.TabPage3.UseVisualStyleBackColor = true; @@ -2370,8 +2310,7 @@ namespace vmsnet dataGridViewCellStyle29.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.dv_channel.DefaultCellStyle = dataGridViewCellStyle29; this.dv_channel.Dock = System.Windows.Forms.DockStyle.Fill; - this.dv_channel.Location = new System.Drawing.Point(0, 34); - this.dv_channel.Margin = new System.Windows.Forms.Padding(4); + this.dv_channel.Location = new System.Drawing.Point(0, 31); this.dv_channel.Name = "dv_channel"; dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle30.BackColor = System.Drawing.SystemColors.Control; @@ -2384,7 +2323,7 @@ namespace vmsnet this.dv_channel.RowHeadersVisible = false; this.dv_channel.RowHeadersWidth = 62; this.dv_channel.RowTemplate.Height = 23; - this.dv_channel.Size = new System.Drawing.Size(1510, 862); + this.dv_channel.Size = new System.Drawing.Size(1055, 562); this.dv_channel.TabIndex = 1; this.dv_channel.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dv_channel_CellClick); this.dv_channel.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dv_channel_CellFormatting); @@ -2575,40 +2514,40 @@ namespace vmsnet this.DECPOS변경ToolStripMenuItem, this.UNIT변경ToolStripMenuItem}); this.ContextMenuStrip2.Name = "ContextMenuStrip1"; - this.ContextMenuStrip2.Size = new System.Drawing.Size(211, 164); + this.ContextMenuStrip2.Size = new System.Drawing.Size(159, 114); // // bt_editid // this.bt_editid.Name = "bt_editid"; - this.bt_editid.Size = new System.Drawing.Size(210, 32); + this.bt_editid.Size = new System.Drawing.Size(158, 22); this.bt_editid.Text = "장치ID일괄변경"; this.bt_editid.Click += new System.EventHandler(this.ToolStripMenuItem1_Click); // // bt_editcell // this.bt_editcell.Name = "bt_editcell"; - this.bt_editcell.Size = new System.Drawing.Size(210, 32); + this.bt_editcell.Size = new System.Drawing.Size(158, 22); this.bt_editcell.Text = "셀이름일괄변경"; this.bt_editcell.Click += new System.EventHandler(this.bt_editcell_Click); // // 그룹ID변경ToolStripMenuItem // this.그룹ID변경ToolStripMenuItem.Name = "그룹ID변경ToolStripMenuItem"; - this.그룹ID변경ToolStripMenuItem.Size = new System.Drawing.Size(210, 32); + this.그룹ID변경ToolStripMenuItem.Size = new System.Drawing.Size(158, 22); this.그룹ID변경ToolStripMenuItem.Text = "그룹ID변경"; this.그룹ID변경ToolStripMenuItem.Click += new System.EventHandler(this.그룹ID변경ToolStripMenuItem_Click); // // DECPOS변경ToolStripMenuItem // this.DECPOS변경ToolStripMenuItem.Name = "DECPOS변경ToolStripMenuItem"; - this.DECPOS변경ToolStripMenuItem.Size = new System.Drawing.Size(210, 32); + this.DECPOS변경ToolStripMenuItem.Size = new System.Drawing.Size(158, 22); this.DECPOS변경ToolStripMenuItem.Text = "DECPOS 변경"; this.DECPOS변경ToolStripMenuItem.Click += new System.EventHandler(this.DECPOS변경ToolStripMenuItem_Click); // // UNIT변경ToolStripMenuItem // this.UNIT변경ToolStripMenuItem.Name = "UNIT변경ToolStripMenuItem"; - this.UNIT변경ToolStripMenuItem.Size = new System.Drawing.Size(210, 32); + this.UNIT변경ToolStripMenuItem.Size = new System.Drawing.Size(158, 22); this.UNIT변경ToolStripMenuItem.Text = "UNIT 변경"; this.UNIT변경ToolStripMenuItem.Click += new System.EventHandler(this.UNIT변경ToolStripMenuItem_Click); // @@ -2647,7 +2586,7 @@ namespace vmsnet this.bn_channel.MovePreviousItem = this.ToolStripButton6; this.bn_channel.Name = "bn_channel"; this.bn_channel.PositionItem = this.ToolStripTextBox1; - this.bn_channel.Size = new System.Drawing.Size(1510, 34); + this.bn_channel.Size = new System.Drawing.Size(1055, 31); this.bn_channel.TabIndex = 2; this.bn_channel.Text = "BindingNavigator1"; // @@ -2657,13 +2596,13 @@ namespace vmsnet this.ToolStripButton3.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton3.Image"))); this.ToolStripButton3.Name = "ToolStripButton3"; this.ToolStripButton3.RightToLeftAutoMirrorImage = true; - this.ToolStripButton3.Size = new System.Drawing.Size(34, 29); + this.ToolStripButton3.Size = new System.Drawing.Size(28, 28); this.ToolStripButton3.Text = "새로 추가"; // // ToolStripLabel1 // this.ToolStripLabel1.Name = "ToolStripLabel1"; - this.ToolStripLabel1.Size = new System.Drawing.Size(39, 29); + this.ToolStripLabel1.Size = new System.Drawing.Size(27, 28); this.ToolStripLabel1.Text = "/{0}"; this.ToolStripLabel1.ToolTipText = "전체 항목 수"; // @@ -2673,7 +2612,7 @@ namespace vmsnet this.ToolStripButton4.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton4.Image"))); this.ToolStripButton4.Name = "ToolStripButton4"; this.ToolStripButton4.RightToLeftAutoMirrorImage = true; - this.ToolStripButton4.Size = new System.Drawing.Size(34, 29); + this.ToolStripButton4.Size = new System.Drawing.Size(28, 28); this.ToolStripButton4.Text = "삭제"; // // ToolStripButton5 @@ -2682,7 +2621,7 @@ namespace vmsnet this.ToolStripButton5.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton5.Image"))); this.ToolStripButton5.Name = "ToolStripButton5"; this.ToolStripButton5.RightToLeftAutoMirrorImage = true; - this.ToolStripButton5.Size = new System.Drawing.Size(34, 29); + this.ToolStripButton5.Size = new System.Drawing.Size(28, 28); this.ToolStripButton5.Text = "처음으로 이동"; // // ToolStripButton6 @@ -2691,13 +2630,13 @@ namespace vmsnet this.ToolStripButton6.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton6.Image"))); this.ToolStripButton6.Name = "ToolStripButton6"; this.ToolStripButton6.RightToLeftAutoMirrorImage = true; - this.ToolStripButton6.Size = new System.Drawing.Size(34, 29); + this.ToolStripButton6.Size = new System.Drawing.Size(28, 28); this.ToolStripButton6.Text = "이전으로 이동"; // // ToolStripSeparator1 // this.ToolStripSeparator1.Name = "ToolStripSeparator1"; - this.ToolStripSeparator1.Size = new System.Drawing.Size(6, 34); + this.ToolStripSeparator1.Size = new System.Drawing.Size(6, 31); // // ToolStripTextBox1 // @@ -2705,14 +2644,14 @@ namespace vmsnet this.ToolStripTextBox1.AutoSize = false; this.ToolStripTextBox1.Font = new System.Drawing.Font("맑은 고딕", 9F); this.ToolStripTextBox1.Name = "ToolStripTextBox1"; - this.ToolStripTextBox1.Size = new System.Drawing.Size(70, 31); + this.ToolStripTextBox1.Size = new System.Drawing.Size(50, 23); this.ToolStripTextBox1.Text = "0"; this.ToolStripTextBox1.ToolTipText = "현재 위치"; // // ToolStripSeparator2 // this.ToolStripSeparator2.Name = "ToolStripSeparator2"; - this.ToolStripSeparator2.Size = new System.Drawing.Size(6, 34); + this.ToolStripSeparator2.Size = new System.Drawing.Size(6, 31); // // ToolStripButton7 // @@ -2720,7 +2659,7 @@ namespace vmsnet this.ToolStripButton7.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton7.Image"))); this.ToolStripButton7.Name = "ToolStripButton7"; this.ToolStripButton7.RightToLeftAutoMirrorImage = true; - this.ToolStripButton7.Size = new System.Drawing.Size(34, 29); + this.ToolStripButton7.Size = new System.Drawing.Size(28, 28); this.ToolStripButton7.Text = "다음으로 이동"; // // ToolStripButton8 @@ -2729,18 +2668,18 @@ namespace vmsnet this.ToolStripButton8.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripButton8.Image"))); this.ToolStripButton8.Name = "ToolStripButton8"; this.ToolStripButton8.RightToLeftAutoMirrorImage = true; - this.ToolStripButton8.Size = new System.Drawing.Size(34, 29); + this.ToolStripButton8.Size = new System.Drawing.Size(28, 28); this.ToolStripButton8.Text = "마지막으로 이동"; // // ToolStripSeparator3 // this.ToolStripSeparator3.Name = "ToolStripSeparator3"; - this.ToolStripSeparator3.Size = new System.Drawing.Size(6, 34); + this.ToolStripSeparator3.Size = new System.Drawing.Size(6, 31); // // ToolStripSeparator7 // this.ToolStripSeparator7.Name = "ToolStripSeparator7"; - this.ToolStripSeparator7.Size = new System.Drawing.Size(6, 34); + this.ToolStripSeparator7.Size = new System.Drawing.Size(6, 31); // // bt_remakelist // @@ -2748,7 +2687,7 @@ namespace vmsnet this.bt_remakelist.Image = ((System.Drawing.Image)(resources.GetObject("bt_remakelist.Image"))); this.bt_remakelist.ImageTransparentColor = System.Drawing.Color.Magenta; this.bt_remakelist.Name = "bt_remakelist"; - this.bt_remakelist.Size = new System.Drawing.Size(106, 29); + this.bt_remakelist.Size = new System.Drawing.Size(71, 28); this.bt_remakelist.Text = "목록재구성"; this.bt_remakelist.Click += new System.EventHandler(this.ToolStripButton15_Click); // @@ -2757,7 +2696,7 @@ namespace vmsnet this.toolStripButton15.Image = global::vmsnet.Properties.Resources.applix; this.toolStripButton15.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton15.Name = "toolStripButton15"; - this.toolStripButton15.Size = new System.Drawing.Size(130, 29); + this.toolStripButton15.Size = new System.Drawing.Size(95, 28); this.toolStripButton15.Text = "셀이름변경"; this.toolStripButton15.Click += new System.EventHandler(this.toolStripButton15_Click_1); // @@ -2766,16 +2705,43 @@ namespace vmsnet this.bs_normal.DataMember = "NORMAL"; this.bs_normal.DataSource = this.DocumentElement1; // + // tb_savetermCellInfo + // + this.tb_savetermCellInfo.ForeColor = System.Drawing.Color.Red; + this.tb_savetermCellInfo.Location = new System.Drawing.Point(130, 175); + this.tb_savetermCellInfo.Name = "tb_savetermCellInfo"; + this.tb_savetermCellInfo.Size = new System.Drawing.Size(40, 29); + this.tb_savetermCellInfo.TabIndex = 67; + this.tb_savetermCellInfo.Text = "0"; + this.tb_savetermCellInfo.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // label24 + // + this.label24.AutoSize = true; + this.label24.Location = new System.Drawing.Point(6, 177); + this.label24.Name = "label24"; + this.label24.Size = new System.Drawing.Size(122, 21); + this.label24.TabIndex = 65; + this.label24.Text = "셀정보저장주기"; + // + // label25 + // + this.label25.AutoSize = true; + this.label25.Location = new System.Drawing.Point(179, 179); + this.label25.Name = "label25"; + this.label25.Size = new System.Drawing.Size(26, 21); + this.label25.TabIndex = 66; + this.label25.Text = "분"; + // // Frm_Config // - this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 18F); + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1518, 994); + this.ClientSize = new System.Drawing.Size(1063, 663); this.Controls.Add(this.TabControl1); this.Controls.Add(this.StatusStrip1); this.Controls.Add(this.ToolStrip1); this.KeyPreview = true; - this.Margin = new System.Windows.Forms.Padding(4); this.Name = "Frm_Config"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "프로그램설정"; @@ -3071,6 +3037,9 @@ namespace vmsnet private DataGridViewTextBoxColumn NBLDataGridViewTextBoxColumn; private ToolStripButton toolStripButton15; private TextBox txtValue; + internal TextBox tb_savetermCellInfo; + internal Label label24; + internal Label label25; } } diff --git a/cVMS.NET_CS/Setting/Frm_Config.cs b/cVMS.NET_CS/Setting/Frm_Config.cs index 2afaa11..7a3c617 100644 --- a/cVMS.NET_CS/Setting/Frm_Config.cs +++ b/cVMS.NET_CS/Setting/Frm_Config.cs @@ -180,6 +180,8 @@ namespace vmsnet this.chk_lsb.Checked = PUB.CONFIG.lsb; this.tb_trashper.Text = PUB.CONFIG.trashper.ToString(); this.tb_saveterm.Text = PUB.CONFIG.saveterm.ToString(); + this.tb_savetermCellInfo.Text = PUB.CONFIG.savetermcellinfo.ToString(); + this.chk_2nddata.Checked = PUB.CONFIG.seconddata; this.chk_3rdData.Checked = PUB.CONFIG.thirddata; this.chk_4thData.Checked = PUB.CONFIG.getdata4; @@ -348,6 +350,25 @@ namespace vmsnet return; } + if (short.TryParse(this.tb_saveterm.Text, out short v_saveterm) == false) + { + UTIL.MsgE("저장주기를 입력하세요"); + this.tb_saveterm.Focus(); + return; + } + if (short.TryParse(this.tb_savetermCellInfo.Text, out short v_savetermCellInfo) == false) + { + UTIL.MsgE("셀정보 저장주기를 입력하세요"); + this.tb_savetermCellInfo.Focus(); + return; + } + if(short.TryParse(this.tb_trashper.Text, out short v_trashper) == false) + { + UTIL.MsgE("디스크 정리주기를 입력하세요"); + this.tb_trashper.Focus(); + return; + } + //데이터베이스적용 PUB.DS.Clear(); PUB.DS.Merge(this.DocumentElement1); @@ -367,8 +388,10 @@ namespace vmsnet PUB.CONFIG.synctime = this.chk_synctime.Checked; PUB.CONFIG.databasefolder = this.tb_savepath.Text; PUB.CONFIG.lsb = this.chk_lsb.Checked; - PUB.CONFIG.trashper = short.Parse(this.tb_trashper.Text); - PUB.CONFIG.saveterm = short.Parse(this.tb_saveterm.Text); + PUB.CONFIG.trashper = v_trashper;// short.Parse(this.tb_trashper.Text); + PUB.CONFIG.saveterm = v_saveterm;// short.Parse(this.tb_saveterm.Text); + PUB.CONFIG.savetermcellinfo = v_savetermCellInfo;// short.Parse(this.tb_savetermCellInfo.Text); + PUB.CONFIG.seconddata = this.chk_2nddata.Checked; PUB.CONFIG.thirddata = this.chk_3rdData.Checked; PUB.CONFIG.getdata4 = this.chk_4thData.Checked; diff --git a/cVMS.NET_CS/Setting/Frm_Config.resx b/cVMS.NET_CS/Setting/Frm_Config.resx index 051d5a2..4a93c8f 100644 --- a/cVMS.NET_CS/Setting/Frm_Config.resx +++ b/cVMS.NET_CS/Setting/Frm_Config.resx @@ -124,7 +124,7 @@ iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAWfSURBVFhH7ZZrTFNnHMaZFu/Oy3QxE5cQk12yGS+oUbm0 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAWfSURBVFhH7ZZrTFNnHMaZFu/Oy3QxE5cQk12yGS+oUbm0 WqWES6HQc3oDoqCACDjBTRCxjhF1uDjdCNOBMgzqFJB6w4EDKZeWm7QqKligBHFbsmTf9sFkybP8j3JG 3zoU93VP8qTved/n/3venvRDPTz+1ziUd9Vj4cGfJCl51ZIbedUTOo03JH+RaU17wtlVj4Xs3H9W7jVP n7zrE4uP/jwfFV0haHXmwD58BEN/lAumNe3RGWUoSzMs57X0xdWJ+V/VzkPdw0QM/F6Ent8O4t6TXeh6 @@ -263,7 +263,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK YKyG2WBogqMYJQOtCEVRFBGdTBCJfRnkS4VaaWNT5sqx1BUxRXxDHYxAJLvkusEeBaPAB+5z4Jzn+t3X /aLhnEfjo8m+dCoa+7/C3O2Hqe0zDC+8KG+cRZHZhdzaaWTVTCLDMIY0vfM04Nfh77/G/sEhwpEDbO3t I7TxE8urEVy99fT/AL5gWDLrTB/hnF4XsW0khCu5ln8DmJliT2AXrcNBsU1gj/MH4nMeKwBrPktM28xM @@ -278,7 +278,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK YKyG2WBogqMYJQOtCEVRFBGdTBCJfRnkS4VaaWNT5sqx1BUxRXxDHYxAJLvkusEeBaPAB+5z4Jzn+t3X /aLhnEfjo8m+dCoa+7/C3O2Hqe0zDC+8KG+cRZHZhdzaaWTVTCLDMIY0vfM04Nfh77/G/sEhwpEDbO3t I7TxE8urEVy99fT/AL5gWDLrTB/hnF4XsW0khCu5ln8DmJliT2AXrcNBsU1gj/MH4nMeKwBrPktM28xM @@ -623,7 +623,7 @@ iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAZPSURBVFhH7ZJrTFRnHsatvaXtZpveku1lm/RLP7SdghFZ + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAZPSURBVFhH7ZJrTFRnHsatvaXtZpveku1lm/RLP7SdghFZ 15Tih03ELt0IzDlzgVK8FFbFWky7EWozbdNL2rCVRUS8UECwVooSUFRSRSwCMzADBRGYC2eYGeZ6zpxz hmGm2mzybN7jMpEDDNp+9Ul+Oe+85/9/nv/7zlm27K7u6g60umTw2ZSPTIUpe/rPpZSYjC/tMf2XQNbS 3kemQlIj7/vdWlNiSkr50Fj9bo0Zp4c42LgopsTr4CI3EIzekNbmQBTtIzx21VlAateUGJLkPncunW75 diff --git a/cVMS.NET_CS/pub.cs b/cVMS.NET_CS/pub.cs index 7caad9b..92f2e56 100644 --- a/cVMS.NET_CS/pub.cs +++ b/cVMS.NET_CS/pub.cs @@ -14,6 +14,7 @@ using System.Runtime.CompilerServices; using System.Linq; using System.Threading.Tasks; using vmsnet; +using System.Xml; namespace vmsnet { @@ -84,6 +85,7 @@ namespace vmsnet public static FMain mainWindow; public static DocumentElement DS = new DocumentElement(); public static bool runerror = false; ////실행오류 + public static DateTime LastWindowCellinfoSaved = DateTime.Now; public static string lastStatueMessage = ""; @@ -122,7 +124,7 @@ namespace vmsnet } public static void RaiseRemoteCommandEvent(rCommand cmd, object data = null) - { + { RemoteCommandEvent?.Invoke(null, new RemoteCommand(cmd, data)); } @@ -596,15 +598,22 @@ namespace vmsnet public static void SaveGroupClass(HMI.CGROUP[] grous, System.IO.FileInfo fi) { + + LastWindowCellinfoSaved = DateTime.Now; + ////그룹정보를 파일로 직렬화저장 try { if (fi.Directory.Exists == false) fi.Directory.Create(); - System.IO.FileStream fs2 = new System.IO.FileStream(fi.FullName, System.IO.FileMode.Create); + + var tempfile = fi.FullName + ".temp"; + System.IO.FileStream fs2 = new System.IO.FileStream(tempfile, System.IO.FileMode.Create); System.Runtime.Serialization.Formatters.Binary.BinaryFormatter bf2 = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter(); bf2.Serialize(fs2, grous); fs2.Close(); PUB.log.Add(AR.Log.ETYPE.NORMAL, "그룹정보파일 저장완료"); + System.IO.File.Copy(tempfile, fi.FullName, true); + } catch (Exception ex) {