Compare commits
2 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
ff49739d59 | |
|
|
9956a62395 |
BIN
INT63DC_2C.suo
BIN
INT63DC_2C.suo
Binary file not shown.
|
|
@ -887,6 +887,7 @@ namespace INT63DC_2C
|
|||
private bool m_IsPart11;
|
||||
private bool m_IsSorterCheckEnable;
|
||||
private bool m_IsModbus;
|
||||
private bool m_IsDeleteAfterBackup;
|
||||
|
||||
private int m_NumberOfLoginFailures;
|
||||
private int m_DecimalPlaces;
|
||||
|
|
@ -1027,6 +1028,11 @@ namespace INT63DC_2C
|
|||
get { return this.m_IsModbus; }
|
||||
set { this.m_IsModbus = value; }
|
||||
}
|
||||
public bool IsDeleteAfterBackup
|
||||
{
|
||||
get { return this.m_IsDeleteAfterBackup; }
|
||||
set { this.m_IsDeleteAfterBackup = value; }
|
||||
}
|
||||
|
||||
public int NumberOfLoginFailures
|
||||
{
|
||||
|
|
@ -1268,6 +1274,7 @@ namespace INT63DC_2C
|
|||
this.IsPart11 = false;
|
||||
this.IsSorterCheckEnable = false;
|
||||
this.IsModbus = false;
|
||||
this.IsDeleteAfterBackup = false;
|
||||
|
||||
this.NumberOfLoginFailures = 5;
|
||||
this.DecimalPlaces = 1;
|
||||
|
|
@ -1294,7 +1301,7 @@ namespace INT63DC_2C
|
|||
this.AutomaticLogout = 30;
|
||||
|
||||
this.Unit = "g";
|
||||
this.SerialNumber = "25I0000";
|
||||
this.SerialNumber = "26A0000";
|
||||
this.EmptyWeight = "0";
|
||||
this.ComPort = "COM2";
|
||||
this.User_Level1_Name = "Level 1";
|
||||
|
|
@ -1328,7 +1335,7 @@ namespace INT63DC_2C
|
|||
public bool IsWeightViewForward;
|
||||
public bool IsOptDataStatistics;
|
||||
public bool IsSorterCheckEnable;
|
||||
public bool DummyBool6;
|
||||
public bool IsDeleteAfterBackup;
|
||||
public bool DummyBool7;
|
||||
|
||||
public int DecimalPlaces;
|
||||
|
|
@ -1523,7 +1530,6 @@ namespace INT63DC_2C
|
|||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region ProductItem
|
||||
public class ProductItem
|
||||
{
|
||||
|
|
@ -4249,4 +4255,95 @@ namespace INT63DC_2C
|
|||
#endregion
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region DatabackupFileInfo1
|
||||
public class DatabackupFileInfo1
|
||||
{
|
||||
#region Field
|
||||
private int m_Index;
|
||||
private string m_Name;
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
public DatabackupFileInfo1(int index, string name)
|
||||
{
|
||||
this.Index = index;
|
||||
this.Name = name;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Property
|
||||
public int Index
|
||||
{
|
||||
get { return this.m_Index; }
|
||||
set { this.m_Index = value; }
|
||||
}
|
||||
public string Name
|
||||
{
|
||||
get { return this.m_Name; }
|
||||
set { this.m_Name = value; }
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
#endregion
|
||||
#region DatabackupFileInfo2
|
||||
public class DatabackupFileInfo2
|
||||
{
|
||||
#region Field
|
||||
private Collection<DatabackupFileInfo1> m_Files;
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
public DatabackupFileInfo2()
|
||||
{
|
||||
this.Files = new Collection<DatabackupFileInfo1>();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Property
|
||||
public Collection<DatabackupFileInfo1> Files
|
||||
{
|
||||
get { return this.m_Files; }
|
||||
set { this.m_Files = value; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Method
|
||||
public void Add(int index, string name)
|
||||
{
|
||||
this.Files.Add(new DatabackupFileInfo1(index, name));
|
||||
}
|
||||
public void Clear()
|
||||
{
|
||||
this.Files.Clear();
|
||||
}
|
||||
public int GetIndex(string name)
|
||||
{
|
||||
int index = -1;
|
||||
for (int i = 0; i < this.Files.Count; i++)
|
||||
{
|
||||
if (this.Files[i].Name == name)
|
||||
index = this.Files[i].Index;
|
||||
}
|
||||
|
||||
return index;
|
||||
}
|
||||
public void RemoveAt(string name)
|
||||
{
|
||||
int index = -1;
|
||||
for (int i = 0; i < this.Files.Count; i++)
|
||||
{
|
||||
if (this.Files[i].Name == name)
|
||||
{
|
||||
index = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (index != -1)
|
||||
this.Files.RemoveAt(index);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
|
|
|||
|
|
@ -124,6 +124,8 @@ namespace INT63DC_2C.DialogForms
|
|||
this.labelMessage1.Text = "중량 Limit 설정 확인하세요!";
|
||||
break;
|
||||
case 12:
|
||||
this.labelErrorCode.Text = "Info 12";
|
||||
this.labelMessage1.Text = "최대 10개의 파일을 선택할 수 있습니다";
|
||||
break;
|
||||
case 13:
|
||||
this.labelErrorCode.Text = "Error 13";
|
||||
|
|
@ -291,6 +293,8 @@ namespace INT63DC_2C.DialogForms
|
|||
this.labelMessage1.Text = "Confirm input range (Weight Limit)";
|
||||
break;
|
||||
case 12:
|
||||
this.labelErrorCode.Text = "Info 12";
|
||||
this.labelMessage1.Text = "You can select up to 10 files";
|
||||
break;
|
||||
case 13:
|
||||
this.labelErrorCode.Text = "Error 13";
|
||||
|
|
@ -449,7 +453,7 @@ namespace INT63DC_2C.DialogForms
|
|||
break;
|
||||
case 9:
|
||||
this.labelErrorCode.Text = "錯誤 09";
|
||||
this.labelMessage1.Text = "USB没有文件夹需要更新文件다";
|
||||
this.labelMessage1.Text = "USB没有文件夹需要更新文件";
|
||||
break;
|
||||
case 10:
|
||||
this.labelErrorCode.Text = "錯誤 10";
|
||||
|
|
@ -460,6 +464,8 @@ namespace INT63DC_2C.DialogForms
|
|||
this.labelMessage1.Text = "确认输入范围(重量限制)";
|
||||
break;
|
||||
case 12:
|
||||
this.labelErrorCode.Text = "信息 12";
|
||||
this.labelMessage1.Text = "您最多可以选择 10 个文件";
|
||||
break;
|
||||
case 13:
|
||||
this.labelErrorCode.Text = "錯誤 13";
|
||||
|
|
@ -637,6 +643,8 @@ namespace INT63DC_2C.DialogForms
|
|||
this.labelMessage1.Text = "Potvrďte vstupní rozsah (hmotnostní limit)";
|
||||
break;
|
||||
case 12:
|
||||
this.labelErrorCode.Text = "Info 12";
|
||||
this.labelMessage1.Text = "Můžete vybrat až 10 souborů";
|
||||
break;
|
||||
case 13:
|
||||
this.labelErrorCode.Text = "Chybě 13";
|
||||
|
|
@ -806,6 +814,8 @@ namespace INT63DC_2C.DialogForms
|
|||
this.labelMessage1.Text = "Eingabebereich bestätigen (Gewichtsgrenze)";
|
||||
break;
|
||||
case 12:
|
||||
this.labelErrorCode.Text = "Info 12";
|
||||
this.labelMessage1.Text = "Sie können bis zu 10 Dateien auswählen";
|
||||
break;
|
||||
case 13:
|
||||
this.labelErrorCode.Text = "Fehler 13";
|
||||
|
|
@ -974,6 +984,8 @@ namespace INT63DC_2C.DialogForms
|
|||
this.labelMessage1.Text = "重量制限設定を確認してください!";
|
||||
break;
|
||||
case 12:
|
||||
this.labelErrorCode.Text = "注意 12";
|
||||
this.labelMessage1.Text = "最大 10 個のファイルを選択できます";
|
||||
break;
|
||||
case 13:
|
||||
this.labelErrorCode.Text = "エラㅡ 13";
|
||||
|
|
@ -2344,8 +2356,6 @@ namespace INT63DC_2C.DialogForms
|
|||
y = Screen.PrimaryScreen.Bounds.Height / 2 - this.Size.Height / 2;
|
||||
|
||||
this.Location = new Point(x, y);
|
||||
|
||||
this.Size = new Size(450, 165);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
|
|||
|
|
@ -660,8 +660,6 @@ namespace INT63DC_2C.DialogForms
|
|||
y = Screen.PrimaryScreen.Bounds.Height / 2 - this.Size.Height / 2;
|
||||
|
||||
this.Location = new Point(x, y);
|
||||
|
||||
this.Size = new Size(450, 170);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
|
|||
|
|
@ -33,16 +33,24 @@
|
|||
this.buttonBackup = new SmartX.SmartButton();
|
||||
this.buttonBack = new SmartX.SmartButton();
|
||||
this.labelTitle = new SmartX.SmartLabel();
|
||||
this.labelStaticSaveFile = new SmartX.SmartLabel();
|
||||
this.labelStaticBackupEnable = new SmartX.SmartLabel();
|
||||
this.buttonUSBID = new SmartX.SmartButton();
|
||||
this.listBoxDataList = new System.Windows.Forms.ListBox();
|
||||
this.labelTitleSavedFiles = new SmartX.SmartLabel();
|
||||
this.labelTitleBackupEnable = new SmartX.SmartLabel();
|
||||
this.labelFileCount = new SmartX.SmartLabel();
|
||||
this.labelStaticWarning1 = new SmartX.SmartLabel();
|
||||
this.labelStaticWarning2 = new SmartX.SmartLabel();
|
||||
this.radioButtonDisable = new System.Windows.Forms.RadioButton();
|
||||
this.radioButtonEnable = new System.Windows.Forms.RadioButton();
|
||||
this.buttonDataBackupEnable = new SmartX.SmartButton();
|
||||
this.labelBackupFileCount = new SmartX.SmartLabel();
|
||||
this.labelTitleFilesToBackup = new SmartX.SmartLabel();
|
||||
this.listBoxBackupList = new SmartX.SmartListBox();
|
||||
this.listBoxDataListCHK = new SmartX.SmartListBox();
|
||||
this.listBoxDataList = new SmartX.SmartListBox();
|
||||
this.buttonScrollDown = new SmartX.SmartButton();
|
||||
this.buttonScrollUp = new SmartX.SmartButton();
|
||||
this.buttonFileRemove = new SmartX.SmartButton();
|
||||
this.buttonFileAdd = new SmartX.SmartButton();
|
||||
this.buttonDeleteAfterBackup = new SmartX.SmartButton();
|
||||
this.labelTitleDeleteAfterBackup = new SmartX.SmartLabel();
|
||||
this.smartGroupBox1 = new SmartX.SmartGroupBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.smartForm1)).BeginInit();
|
||||
this.smartGroupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// smartForm1
|
||||
|
|
@ -129,7 +137,7 @@
|
|||
this.labelTitle.BackPictureBox2 = null;
|
||||
this.labelTitle.BorderColor = System.Drawing.Color.Black;
|
||||
this.labelTitle.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.labelTitle.Font = new System.Drawing.Font("New Gulim", 35F, System.Drawing.FontStyle.Bold);
|
||||
this.labelTitle.Font = new System.Drawing.Font("새굴림", 35F, System.Drawing.FontStyle.Bold);
|
||||
this.labelTitle.InitVisible = true;
|
||||
this.labelTitle.LineSpacing = 0F;
|
||||
this.labelTitle.Location = new System.Drawing.Point(199, 7);
|
||||
|
|
@ -141,84 +149,43 @@
|
|||
this.labelTitle.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelTitle.Wordwrap = false;
|
||||
//
|
||||
// labelStaticSaveFile
|
||||
// labelTitleSavedFiles
|
||||
//
|
||||
this.labelStaticSaveFile.BackPictureBox = this.smartForm1;
|
||||
this.labelStaticSaveFile.BackPictureBox1 = null;
|
||||
this.labelStaticSaveFile.BackPictureBox2 = null;
|
||||
this.labelStaticSaveFile.BorderColor = System.Drawing.Color.Black;
|
||||
this.labelStaticSaveFile.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.labelStaticSaveFile.Font = new System.Drawing.Font("New Gulim", 20F, System.Drawing.FontStyle.Bold);
|
||||
this.labelStaticSaveFile.InitVisible = true;
|
||||
this.labelStaticSaveFile.LineSpacing = 0F;
|
||||
this.labelStaticSaveFile.Location = new System.Drawing.Point(151, 306);
|
||||
this.labelStaticSaveFile.Name = "labelStaticSaveFile";
|
||||
this.labelStaticSaveFile.Size = new System.Drawing.Size(236, 47);
|
||||
this.labelStaticSaveFile.TabIndex = 22;
|
||||
this.labelStaticSaveFile.Text = "저장 파일";
|
||||
this.labelStaticSaveFile.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
|
||||
this.labelStaticSaveFile.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelStaticSaveFile.Wordwrap = false;
|
||||
this.labelTitleSavedFiles.BackPictureBox = this.smartForm1;
|
||||
this.labelTitleSavedFiles.BackPictureBox1 = null;
|
||||
this.labelTitleSavedFiles.BackPictureBox2 = null;
|
||||
this.labelTitleSavedFiles.BorderColor = System.Drawing.Color.Black;
|
||||
this.labelTitleSavedFiles.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.labelTitleSavedFiles.Font = new System.Drawing.Font("새굴림", 14F, System.Drawing.FontStyle.Bold);
|
||||
this.labelTitleSavedFiles.InitVisible = true;
|
||||
this.labelTitleSavedFiles.LineSpacing = 0F;
|
||||
this.labelTitleSavedFiles.Location = new System.Drawing.Point(19, 14);
|
||||
this.labelTitleSavedFiles.Name = "labelTitleSavedFiles";
|
||||
this.labelTitleSavedFiles.Size = new System.Drawing.Size(225, 35);
|
||||
this.labelTitleSavedFiles.TabIndex = 22;
|
||||
this.labelTitleSavedFiles.Text = "저장된 파일";
|
||||
this.labelTitleSavedFiles.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
|
||||
this.labelTitleSavedFiles.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelTitleSavedFiles.Wordwrap = false;
|
||||
//
|
||||
// labelStaticBackupEnable
|
||||
// labelTitleBackupEnable
|
||||
//
|
||||
this.labelStaticBackupEnable.BackPictureBox = this.smartForm1;
|
||||
this.labelStaticBackupEnable.BackPictureBox1 = null;
|
||||
this.labelStaticBackupEnable.BackPictureBox2 = null;
|
||||
this.labelStaticBackupEnable.BorderColor = System.Drawing.Color.Black;
|
||||
this.labelStaticBackupEnable.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.labelStaticBackupEnable.Font = new System.Drawing.Font("New Gulim", 20F, System.Drawing.FontStyle.Bold);
|
||||
this.labelStaticBackupEnable.InitVisible = true;
|
||||
this.labelStaticBackupEnable.LineSpacing = 0F;
|
||||
this.labelStaticBackupEnable.Location = new System.Drawing.Point(151, 213);
|
||||
this.labelStaticBackupEnable.Name = "labelStaticBackupEnable";
|
||||
this.labelStaticBackupEnable.Size = new System.Drawing.Size(330, 50);
|
||||
this.labelStaticBackupEnable.TabIndex = 21;
|
||||
this.labelStaticBackupEnable.Text = "백업파일 생성 여부";
|
||||
this.labelStaticBackupEnable.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
|
||||
this.labelStaticBackupEnable.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelStaticBackupEnable.Wordwrap = false;
|
||||
//
|
||||
// buttonUSBID
|
||||
//
|
||||
this.buttonUSBID.BackPictureBox = null;
|
||||
this.buttonUSBID.BackPictureBox1 = null;
|
||||
this.buttonUSBID.BackPictureBox2 = null;
|
||||
this.buttonUSBID.ButtonColor = System.Drawing.Color.Gray;
|
||||
this.buttonUSBID.ButtonImageAutoSize = true;
|
||||
this.buttonUSBID.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
|
||||
this.buttonUSBID.DisableImage = null;
|
||||
this.buttonUSBID.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonUSBID.DownImage")));
|
||||
this.buttonUSBID.Font = new System.Drawing.Font("Arial", 25F, System.Drawing.FontStyle.Bold);
|
||||
this.buttonUSBID.GroupID = 0;
|
||||
this.buttonUSBID.InitVisible = true;
|
||||
this.buttonUSBID.Location = new System.Drawing.Point(125, 117);
|
||||
this.buttonUSBID.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
|
||||
this.buttonUSBID.Name = "buttonUSBID";
|
||||
this.buttonUSBID.NestedClickEventPrevent = false;
|
||||
this.buttonUSBID.OutlinePixel = 1;
|
||||
this.buttonUSBID.RepeatInterval = 200;
|
||||
this.buttonUSBID.RepeatIntervalAccelerate = null;
|
||||
this.buttonUSBID.SafeInterval = 200;
|
||||
this.buttonUSBID.Size = new System.Drawing.Size(326, 73);
|
||||
this.buttonUSBID.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
|
||||
this.buttonUSBID.TabIndex = 23;
|
||||
this.buttonUSBID.Text = "1";
|
||||
this.buttonUSBID.TextColor = System.Drawing.Color.Black;
|
||||
this.buttonUSBID.TextDownColor = System.Drawing.Color.White;
|
||||
this.buttonUSBID.TextHAlign = SmartX.SmartButton.TextHorAlign.Right;
|
||||
this.buttonUSBID.TextLocation = new System.Drawing.Point(-60, 0);
|
||||
this.buttonUSBID.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
|
||||
this.buttonUSBID.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonUSBID.UpImage")));
|
||||
this.buttonUSBID.Click += new System.EventHandler(this.buttonUSBID_Click);
|
||||
//
|
||||
// listBoxDataList
|
||||
//
|
||||
this.listBoxDataList.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular);
|
||||
this.listBoxDataList.Location = new System.Drawing.Point(510, 316);
|
||||
this.listBoxDataList.Name = "listBoxDataList";
|
||||
this.listBoxDataList.Size = new System.Drawing.Size(355, 290);
|
||||
this.listBoxDataList.TabIndex = 24;
|
||||
this.labelTitleBackupEnable.BackPictureBox = this.smartForm1;
|
||||
this.labelTitleBackupEnable.BackPictureBox1 = null;
|
||||
this.labelTitleBackupEnable.BackPictureBox2 = null;
|
||||
this.labelTitleBackupEnable.BorderColor = System.Drawing.Color.Black;
|
||||
this.labelTitleBackupEnable.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.labelTitleBackupEnable.Font = new System.Drawing.Font("새굴림", 14F, System.Drawing.FontStyle.Bold);
|
||||
this.labelTitleBackupEnable.InitVisible = true;
|
||||
this.labelTitleBackupEnable.LineSpacing = 0F;
|
||||
this.labelTitleBackupEnable.Location = new System.Drawing.Point(78, 140);
|
||||
this.labelTitleBackupEnable.Name = "labelTitleBackupEnable";
|
||||
this.labelTitleBackupEnable.Size = new System.Drawing.Size(300, 30);
|
||||
this.labelTitleBackupEnable.TabIndex = 21;
|
||||
this.labelTitleBackupEnable.Text = "데이터 백업";
|
||||
this.labelTitleBackupEnable.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
|
||||
this.labelTitleBackupEnable.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelTitleBackupEnable.Wordwrap = false;
|
||||
//
|
||||
// labelFileCount
|
||||
//
|
||||
|
|
@ -227,78 +194,401 @@
|
|||
this.labelFileCount.BackPictureBox2 = null;
|
||||
this.labelFileCount.BorderColor = System.Drawing.Color.Black;
|
||||
this.labelFileCount.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.labelFileCount.Font = new System.Drawing.Font("Arial", 20F, System.Drawing.FontStyle.Bold);
|
||||
this.labelFileCount.Font = new System.Drawing.Font("Arial", 18F, System.Drawing.FontStyle.Bold);
|
||||
this.labelFileCount.InitVisible = true;
|
||||
this.labelFileCount.LineSpacing = 0F;
|
||||
this.labelFileCount.Location = new System.Drawing.Point(434, 306);
|
||||
this.labelFileCount.Location = new System.Drawing.Point(250, 14);
|
||||
this.labelFileCount.Name = "labelFileCount";
|
||||
this.labelFileCount.Size = new System.Drawing.Size(70, 47);
|
||||
this.labelFileCount.Size = new System.Drawing.Size(55, 35);
|
||||
this.labelFileCount.TabIndex = 25;
|
||||
this.labelFileCount.Text = "00";
|
||||
this.labelFileCount.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
|
||||
this.labelFileCount.TextHAlign = SmartX.SmartLabel.TextHorAlign.Right;
|
||||
this.labelFileCount.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelFileCount.Wordwrap = false;
|
||||
//
|
||||
// labelStaticWarning1
|
||||
// buttonDataBackupEnable
|
||||
//
|
||||
this.labelStaticWarning1.BackPictureBox = this.smartForm1;
|
||||
this.labelStaticWarning1.BackPictureBox1 = null;
|
||||
this.labelStaticWarning1.BackPictureBox2 = null;
|
||||
this.labelStaticWarning1.BorderColor = System.Drawing.Color.Black;
|
||||
this.labelStaticWarning1.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.labelStaticWarning1.Font = new System.Drawing.Font("New Gulim", 18F, System.Drawing.FontStyle.Bold);
|
||||
this.labelStaticWarning1.ForeColor = System.Drawing.Color.Red;
|
||||
this.labelStaticWarning1.InitVisible = true;
|
||||
this.labelStaticWarning1.LineSpacing = 0F;
|
||||
this.labelStaticWarning1.Location = new System.Drawing.Point(151, 474);
|
||||
this.labelStaticWarning1.Name = "labelStaticWarning1";
|
||||
this.labelStaticWarning1.Size = new System.Drawing.Size(182, 37);
|
||||
this.labelStaticWarning1.TabIndex = 26;
|
||||
this.labelStaticWarning1.Text = "※주의";
|
||||
this.labelStaticWarning1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
|
||||
this.labelStaticWarning1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelStaticWarning1.Wordwrap = false;
|
||||
this.buttonDataBackupEnable.BackPictureBox = null;
|
||||
this.buttonDataBackupEnable.BackPictureBox1 = null;
|
||||
this.buttonDataBackupEnable.BackPictureBox2 = null;
|
||||
this.buttonDataBackupEnable.ButtonColor = System.Drawing.Color.Gray;
|
||||
this.buttonDataBackupEnable.ButtonImageAutoSize = true;
|
||||
this.buttonDataBackupEnable.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
|
||||
this.buttonDataBackupEnable.DisableImage = null;
|
||||
this.buttonDataBackupEnable.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonDataBackupEnable.DownImage")));
|
||||
this.buttonDataBackupEnable.GroupID = 0;
|
||||
this.buttonDataBackupEnable.InitVisible = true;
|
||||
this.buttonDataBackupEnable.Location = new System.Drawing.Point(384, 140);
|
||||
this.buttonDataBackupEnable.Mode = SmartX.SmartButton.BUTTONMODE.PUSH;
|
||||
this.buttonDataBackupEnable.Name = "buttonDataBackupEnable";
|
||||
this.buttonDataBackupEnable.NestedClickEventPrevent = false;
|
||||
this.buttonDataBackupEnable.OutlinePixel = 1;
|
||||
this.buttonDataBackupEnable.RepeatInterval = 200;
|
||||
this.buttonDataBackupEnable.RepeatIntervalAccelerate = null;
|
||||
this.buttonDataBackupEnable.SafeInterval = 200;
|
||||
this.buttonDataBackupEnable.Size = new System.Drawing.Size(100, 30);
|
||||
this.buttonDataBackupEnable.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
|
||||
this.buttonDataBackupEnable.TabIndex = 55;
|
||||
this.buttonDataBackupEnable.TextColor = System.Drawing.Color.Black;
|
||||
this.buttonDataBackupEnable.TextDownColor = System.Drawing.Color.White;
|
||||
this.buttonDataBackupEnable.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
|
||||
this.buttonDataBackupEnable.TextLocation = new System.Drawing.Point(0, 0);
|
||||
this.buttonDataBackupEnable.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
|
||||
this.buttonDataBackupEnable.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonDataBackupEnable.UpImage")));
|
||||
this.buttonDataBackupEnable.Click += new System.EventHandler(this.buttonDataBackupEnable_Click);
|
||||
//
|
||||
// labelStaticWarning2
|
||||
// labelBackupFileCount
|
||||
//
|
||||
this.labelStaticWarning2.BackPictureBox = this.smartForm1;
|
||||
this.labelStaticWarning2.BackPictureBox1 = null;
|
||||
this.labelStaticWarning2.BackPictureBox2 = null;
|
||||
this.labelStaticWarning2.BorderColor = System.Drawing.Color.Black;
|
||||
this.labelStaticWarning2.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.labelStaticWarning2.Font = new System.Drawing.Font("New Gulim", 13F, System.Drawing.FontStyle.Bold);
|
||||
this.labelStaticWarning2.InitVisible = true;
|
||||
this.labelStaticWarning2.LineSpacing = 0F;
|
||||
this.labelStaticWarning2.Location = new System.Drawing.Point(151, 465);
|
||||
this.labelStaticWarning2.Name = "labelStaticWarning2";
|
||||
this.labelStaticWarning2.Size = new System.Drawing.Size(353, 122);
|
||||
this.labelStaticWarning2.TabIndex = 27;
|
||||
this.labelStaticWarning2.Text = "USB 메모리 장치로 데이터를 백업할 경우, 시스템에 저장된 데이터는 삭제됩니다.";
|
||||
this.labelStaticWarning2.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
|
||||
this.labelStaticWarning2.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelStaticWarning2.Wordwrap = true;
|
||||
this.labelBackupFileCount.BackPictureBox = this.smartForm1;
|
||||
this.labelBackupFileCount.BackPictureBox1 = null;
|
||||
this.labelBackupFileCount.BackPictureBox2 = null;
|
||||
this.labelBackupFileCount.BorderColor = System.Drawing.Color.Black;
|
||||
this.labelBackupFileCount.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.labelBackupFileCount.Font = new System.Drawing.Font("Arial", 18F, System.Drawing.FontStyle.Bold);
|
||||
this.labelBackupFileCount.InitVisible = true;
|
||||
this.labelBackupFileCount.LineSpacing = 0F;
|
||||
this.labelBackupFileCount.Location = new System.Drawing.Point(774, 14);
|
||||
this.labelBackupFileCount.Name = "labelBackupFileCount";
|
||||
this.labelBackupFileCount.Size = new System.Drawing.Size(55, 35);
|
||||
this.labelBackupFileCount.TabIndex = 62;
|
||||
this.labelBackupFileCount.Text = "00";
|
||||
this.labelBackupFileCount.TextHAlign = SmartX.SmartLabel.TextHorAlign.Right;
|
||||
this.labelBackupFileCount.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelBackupFileCount.Wordwrap = false;
|
||||
//
|
||||
// radioButtonDisable
|
||||
// labelTitleFilesToBackup
|
||||
//
|
||||
this.radioButtonDisable.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208)))));
|
||||
this.radioButtonDisable.Font = new System.Drawing.Font("New Gulim", 20F, System.Drawing.FontStyle.Bold);
|
||||
this.radioButtonDisable.Location = new System.Drawing.Point(715, 213);
|
||||
this.radioButtonDisable.Name = "radioButtonDisable";
|
||||
this.radioButtonDisable.Size = new System.Drawing.Size(150, 50);
|
||||
this.radioButtonDisable.TabIndex = 32;
|
||||
this.radioButtonDisable.Text = "Disable";
|
||||
this.radioButtonDisable.Click += new System.EventHandler(this.radioButtonEnable_Click);
|
||||
this.labelTitleFilesToBackup.BackPictureBox = this.smartForm1;
|
||||
this.labelTitleFilesToBackup.BackPictureBox1 = null;
|
||||
this.labelTitleFilesToBackup.BackPictureBox2 = null;
|
||||
this.labelTitleFilesToBackup.BorderColor = System.Drawing.Color.Black;
|
||||
this.labelTitleFilesToBackup.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.labelTitleFilesToBackup.Font = new System.Drawing.Font("새굴림", 14F, System.Drawing.FontStyle.Bold);
|
||||
this.labelTitleFilesToBackup.InitVisible = true;
|
||||
this.labelTitleFilesToBackup.LineSpacing = 0F;
|
||||
this.labelTitleFilesToBackup.Location = new System.Drawing.Point(543, 14);
|
||||
this.labelTitleFilesToBackup.Name = "labelTitleFilesToBackup";
|
||||
this.labelTitleFilesToBackup.Size = new System.Drawing.Size(225, 35);
|
||||
this.labelTitleFilesToBackup.TabIndex = 61;
|
||||
this.labelTitleFilesToBackup.Text = "백업할 파일";
|
||||
this.labelTitleFilesToBackup.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
|
||||
this.labelTitleFilesToBackup.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelTitleFilesToBackup.Wordwrap = false;
|
||||
//
|
||||
// radioButtonEnable
|
||||
// listBoxBackupList
|
||||
//
|
||||
this.radioButtonEnable.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(208)))), ((int)(((byte)(208)))));
|
||||
this.radioButtonEnable.Font = new System.Drawing.Font("New Gulim", 20F, System.Drawing.FontStyle.Bold);
|
||||
this.radioButtonEnable.Location = new System.Drawing.Point(510, 213);
|
||||
this.radioButtonEnable.Name = "radioButtonEnable";
|
||||
this.radioButtonEnable.Size = new System.Drawing.Size(150, 50);
|
||||
this.radioButtonEnable.TabIndex = 33;
|
||||
this.radioButtonEnable.Text = "Enable";
|
||||
this.radioButtonEnable.Click += new System.EventHandler(this.radioButtonEnable_Click);
|
||||
this.listBoxBackupList.BackColor = System.Drawing.Color.White;
|
||||
this.listBoxBackupList.BackPictureBox = null;
|
||||
this.listBoxBackupList.BackPictureBox1 = null;
|
||||
this.listBoxBackupList.BackPictureBox2 = null;
|
||||
this.listBoxBackupList.ColumnAlign = SmartX.SmartListBox.COLUMNALIGNS.CENTER;
|
||||
this.listBoxBackupList.ColumnDelimiter = '\0';
|
||||
this.listBoxBackupList.ColumnOffsets = null;
|
||||
this.listBoxBackupList.Font = new System.Drawing.Font("새굴림", 12F, System.Drawing.FontStyle.Regular);
|
||||
this.listBoxBackupList.FontColor = System.Drawing.Color.Black;
|
||||
this.listBoxBackupList.InitVisible = true;
|
||||
this.listBoxBackupList.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD;
|
||||
this.listBoxBackupList.ItemOffsetGap = 5;
|
||||
this.listBoxBackupList.ItemOffsetX = 0;
|
||||
this.listBoxBackupList.ItemOffsetY = 0;
|
||||
this.listBoxBackupList.Location = new System.Drawing.Point(543, 55);
|
||||
this.listBoxBackupList.MouseMoveEventSpace = 3;
|
||||
this.listBoxBackupList.MouseMoveSpace = 10;
|
||||
this.listBoxBackupList.Name = "listBoxBackupList";
|
||||
this.listBoxBackupList.OutLineColor = System.Drawing.Color.Transparent;
|
||||
this.listBoxBackupList.SelectColor = System.Drawing.Color.LightSkyBlue;
|
||||
this.listBoxBackupList.SelectFilled = true;
|
||||
this.listBoxBackupList.SelectFontColor = System.Drawing.Color.AliceBlue;
|
||||
this.listBoxBackupList.SelectItemIndex = -1;
|
||||
this.listBoxBackupList.SeparationlineColor1 = System.Drawing.Color.Gray;
|
||||
this.listBoxBackupList.SeparationlineColor2 = System.Drawing.Color.LightGray;
|
||||
this.listBoxBackupList.SeparationLineStyle = SmartX.SmartListBox.SEPARATIONLINETYPES.None;
|
||||
this.listBoxBackupList.SeparationlineVisibleBottom = true;
|
||||
this.listBoxBackupList.SeparationlineVisibleTop = true;
|
||||
this.listBoxBackupList.Size = new System.Drawing.Size(286, 352);
|
||||
this.listBoxBackupList.TabIndex = 60;
|
||||
this.listBoxBackupList.Text = "smartListBox1";
|
||||
//
|
||||
// listBoxDataListCHK
|
||||
//
|
||||
this.listBoxDataListCHK.BackColor = System.Drawing.Color.White;
|
||||
this.listBoxDataListCHK.BackPictureBox = null;
|
||||
this.listBoxDataListCHK.BackPictureBox1 = null;
|
||||
this.listBoxDataListCHK.BackPictureBox2 = null;
|
||||
this.listBoxDataListCHK.ColumnAlign = SmartX.SmartListBox.COLUMNALIGNS.CENTER;
|
||||
this.listBoxDataListCHK.ColumnDelimiter = '\0';
|
||||
this.listBoxDataListCHK.ColumnOffsets = null;
|
||||
this.listBoxDataListCHK.Font = new System.Drawing.Font("새굴림", 12F, System.Drawing.FontStyle.Regular);
|
||||
this.listBoxDataListCHK.FontColor = System.Drawing.Color.Black;
|
||||
this.listBoxDataListCHK.InitVisible = true;
|
||||
this.listBoxDataListCHK.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD;
|
||||
this.listBoxDataListCHK.ItemOffsetGap = 5;
|
||||
this.listBoxDataListCHK.ItemOffsetX = 0;
|
||||
this.listBoxDataListCHK.ItemOffsetY = 0;
|
||||
this.listBoxDataListCHK.Location = new System.Drawing.Point(266, 55);
|
||||
this.listBoxDataListCHK.MouseMoveEventSpace = 3;
|
||||
this.listBoxDataListCHK.MouseMoveSpace = 10;
|
||||
this.listBoxDataListCHK.Name = "listBoxDataListCHK";
|
||||
this.listBoxDataListCHK.OutLineColor = System.Drawing.Color.Transparent;
|
||||
this.listBoxDataListCHK.SelectColor = System.Drawing.Color.LightSkyBlue;
|
||||
this.listBoxDataListCHK.SelectFilled = true;
|
||||
this.listBoxDataListCHK.SelectFontColor = System.Drawing.Color.AliceBlue;
|
||||
this.listBoxDataListCHK.SelectItemIndex = -1;
|
||||
this.listBoxDataListCHK.SeparationlineColor1 = System.Drawing.Color.Gray;
|
||||
this.listBoxDataListCHK.SeparationlineColor2 = System.Drawing.Color.LightGray;
|
||||
this.listBoxDataListCHK.SeparationLineStyle = SmartX.SmartListBox.SEPARATIONLINETYPES.None;
|
||||
this.listBoxDataListCHK.SeparationlineVisibleBottom = true;
|
||||
this.listBoxDataListCHK.SeparationlineVisibleTop = true;
|
||||
this.listBoxDataListCHK.Size = new System.Drawing.Size(39, 352);
|
||||
this.listBoxDataListCHK.TabIndex = 59;
|
||||
this.listBoxDataListCHK.Text = "smartListBox2";
|
||||
this.listBoxDataListCHK.SelectedIndexChanged += new System.EventHandler(this.listBoxDataListCHK_SelectedIndexChanged);
|
||||
//
|
||||
// listBoxDataList
|
||||
//
|
||||
this.listBoxDataList.BackColor = System.Drawing.Color.White;
|
||||
this.listBoxDataList.BackPictureBox = null;
|
||||
this.listBoxDataList.BackPictureBox1 = null;
|
||||
this.listBoxDataList.BackPictureBox2 = null;
|
||||
this.listBoxDataList.ColumnAlign = SmartX.SmartListBox.COLUMNALIGNS.CENTER;
|
||||
this.listBoxDataList.ColumnDelimiter = '\0';
|
||||
this.listBoxDataList.ColumnOffsets = null;
|
||||
this.listBoxDataList.Font = new System.Drawing.Font("새굴림", 12F, System.Drawing.FontStyle.Regular);
|
||||
this.listBoxDataList.FontColor = System.Drawing.Color.Black;
|
||||
this.listBoxDataList.InitVisible = true;
|
||||
this.listBoxDataList.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD;
|
||||
this.listBoxDataList.ItemOffsetGap = 5;
|
||||
this.listBoxDataList.ItemOffsetX = 0;
|
||||
this.listBoxDataList.ItemOffsetY = 0;
|
||||
this.listBoxDataList.Location = new System.Drawing.Point(19, 55);
|
||||
this.listBoxDataList.MouseMoveEventSpace = 3;
|
||||
this.listBoxDataList.MouseMoveSpace = 10;
|
||||
this.listBoxDataList.Name = "listBoxDataList";
|
||||
this.listBoxDataList.OutLineColor = System.Drawing.Color.Transparent;
|
||||
this.listBoxDataList.SelectColor = System.Drawing.Color.LightSkyBlue;
|
||||
this.listBoxDataList.SelectFilled = true;
|
||||
this.listBoxDataList.SelectFontColor = System.Drawing.Color.AliceBlue;
|
||||
this.listBoxDataList.SelectItemIndex = -1;
|
||||
this.listBoxDataList.SeparationlineColor1 = System.Drawing.Color.Gray;
|
||||
this.listBoxDataList.SeparationlineColor2 = System.Drawing.Color.LightGray;
|
||||
this.listBoxDataList.SeparationLineStyle = SmartX.SmartListBox.SEPARATIONLINETYPES.None;
|
||||
this.listBoxDataList.SeparationlineVisibleBottom = true;
|
||||
this.listBoxDataList.SeparationlineVisibleTop = true;
|
||||
this.listBoxDataList.Size = new System.Drawing.Size(247, 352);
|
||||
this.listBoxDataList.TabIndex = 58;
|
||||
this.listBoxDataList.Text = "smartListBox1";
|
||||
this.listBoxDataList.SelectedIndexChanged += new System.EventHandler(this.listBoxDataList_SelectedIndexChanged);
|
||||
//
|
||||
// buttonScrollDown
|
||||
//
|
||||
this.buttonScrollDown.BackPictureBox = null;
|
||||
this.buttonScrollDown.BackPictureBox1 = null;
|
||||
this.buttonScrollDown.BackPictureBox2 = null;
|
||||
this.buttonScrollDown.ButtonColor = System.Drawing.Color.Gainsboro;
|
||||
this.buttonScrollDown.ButtonImageAutoSize = true;
|
||||
this.buttonScrollDown.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
|
||||
this.buttonScrollDown.DisableImage = null;
|
||||
this.buttonScrollDown.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonScrollDown.DownImage")));
|
||||
this.buttonScrollDown.Font = new System.Drawing.Font("Arial", 15F, System.Drawing.FontStyle.Regular);
|
||||
this.buttonScrollDown.GroupID = 0;
|
||||
this.buttonScrollDown.InitVisible = true;
|
||||
this.buttonScrollDown.Location = new System.Drawing.Point(311, 237);
|
||||
this.buttonScrollDown.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
|
||||
this.buttonScrollDown.Name = "buttonScrollDown";
|
||||
this.buttonScrollDown.NestedClickEventPrevent = false;
|
||||
this.buttonScrollDown.OutlinePixel = 1;
|
||||
this.buttonScrollDown.RepeatInterval = 200;
|
||||
this.buttonScrollDown.RepeatIntervalAccelerate = null;
|
||||
this.buttonScrollDown.SafeInterval = 200;
|
||||
this.buttonScrollDown.Size = new System.Drawing.Size(52, 170);
|
||||
this.buttonScrollDown.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
|
||||
this.buttonScrollDown.TabIndex = 66;
|
||||
this.buttonScrollDown.Text = "▼";
|
||||
this.buttonScrollDown.TextColor = System.Drawing.Color.Black;
|
||||
this.buttonScrollDown.TextDownColor = System.Drawing.Color.White;
|
||||
this.buttonScrollDown.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
|
||||
this.buttonScrollDown.TextLocation = new System.Drawing.Point(0, 0);
|
||||
this.buttonScrollDown.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
|
||||
this.buttonScrollDown.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonScrollDown.UpImage")));
|
||||
this.buttonScrollDown.Click += new System.EventHandler(this.buttonScrollDown_Click);
|
||||
//
|
||||
// buttonScrollUp
|
||||
//
|
||||
this.buttonScrollUp.BackPictureBox = null;
|
||||
this.buttonScrollUp.BackPictureBox1 = null;
|
||||
this.buttonScrollUp.BackPictureBox2 = null;
|
||||
this.buttonScrollUp.ButtonColor = System.Drawing.Color.Gainsboro;
|
||||
this.buttonScrollUp.ButtonImageAutoSize = true;
|
||||
this.buttonScrollUp.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
|
||||
this.buttonScrollUp.DisableImage = null;
|
||||
this.buttonScrollUp.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonScrollUp.DownImage")));
|
||||
this.buttonScrollUp.Font = new System.Drawing.Font("Arial", 15F, System.Drawing.FontStyle.Regular);
|
||||
this.buttonScrollUp.GroupID = 0;
|
||||
this.buttonScrollUp.InitVisible = true;
|
||||
this.buttonScrollUp.Location = new System.Drawing.Point(311, 55);
|
||||
this.buttonScrollUp.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
|
||||
this.buttonScrollUp.Name = "buttonScrollUp";
|
||||
this.buttonScrollUp.NestedClickEventPrevent = false;
|
||||
this.buttonScrollUp.OutlinePixel = 1;
|
||||
this.buttonScrollUp.RepeatInterval = 200;
|
||||
this.buttonScrollUp.RepeatIntervalAccelerate = null;
|
||||
this.buttonScrollUp.SafeInterval = 200;
|
||||
this.buttonScrollUp.Size = new System.Drawing.Size(52, 170);
|
||||
this.buttonScrollUp.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
|
||||
this.buttonScrollUp.TabIndex = 65;
|
||||
this.buttonScrollUp.Text = "▲";
|
||||
this.buttonScrollUp.TextColor = System.Drawing.Color.Black;
|
||||
this.buttonScrollUp.TextDownColor = System.Drawing.Color.White;
|
||||
this.buttonScrollUp.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
|
||||
this.buttonScrollUp.TextLocation = new System.Drawing.Point(0, 0);
|
||||
this.buttonScrollUp.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
|
||||
this.buttonScrollUp.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonScrollUp.UpImage")));
|
||||
this.buttonScrollUp.Click += new System.EventHandler(this.buttonScrollUp_Click);
|
||||
//
|
||||
// buttonFileRemove
|
||||
//
|
||||
this.buttonFileRemove.BackPictureBox = null;
|
||||
this.buttonFileRemove.BackPictureBox1 = null;
|
||||
this.buttonFileRemove.BackPictureBox2 = null;
|
||||
this.buttonFileRemove.ButtonColor = System.Drawing.Color.Gainsboro;
|
||||
this.buttonFileRemove.ButtonImageAutoSize = true;
|
||||
this.buttonFileRemove.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
|
||||
this.buttonFileRemove.DisableImage = null;
|
||||
this.buttonFileRemove.DownImage = null;
|
||||
this.buttonFileRemove.Font = new System.Drawing.Font("Arial", 15F, System.Drawing.FontStyle.Regular);
|
||||
this.buttonFileRemove.GroupID = 0;
|
||||
this.buttonFileRemove.InitVisible = true;
|
||||
this.buttonFileRemove.Location = new System.Drawing.Point(412, 227);
|
||||
this.buttonFileRemove.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
|
||||
this.buttonFileRemove.Name = "buttonFileRemove";
|
||||
this.buttonFileRemove.NestedClickEventPrevent = false;
|
||||
this.buttonFileRemove.OutlinePixel = 1;
|
||||
this.buttonFileRemove.RepeatInterval = 200;
|
||||
this.buttonFileRemove.RepeatIntervalAccelerate = null;
|
||||
this.buttonFileRemove.SafeInterval = 200;
|
||||
this.buttonFileRemove.Size = new System.Drawing.Size(80, 80);
|
||||
this.buttonFileRemove.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
|
||||
this.buttonFileRemove.TabIndex = 64;
|
||||
this.buttonFileRemove.Text = "◀";
|
||||
this.buttonFileRemove.TextColor = System.Drawing.Color.Black;
|
||||
this.buttonFileRemove.TextDownColor = System.Drawing.Color.White;
|
||||
this.buttonFileRemove.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
|
||||
this.buttonFileRemove.TextLocation = new System.Drawing.Point(0, 0);
|
||||
this.buttonFileRemove.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
|
||||
this.buttonFileRemove.UpImage = null;
|
||||
this.buttonFileRemove.Click += new System.EventHandler(this.buttonFileRemove_Click);
|
||||
//
|
||||
// buttonFileAdd
|
||||
//
|
||||
this.buttonFileAdd.BackPictureBox = null;
|
||||
this.buttonFileAdd.BackPictureBox1 = null;
|
||||
this.buttonFileAdd.BackPictureBox2 = null;
|
||||
this.buttonFileAdd.ButtonColor = System.Drawing.Color.Gainsboro;
|
||||
this.buttonFileAdd.ButtonImageAutoSize = true;
|
||||
this.buttonFileAdd.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
|
||||
this.buttonFileAdd.DisableImage = null;
|
||||
this.buttonFileAdd.DownImage = null;
|
||||
this.buttonFileAdd.Font = new System.Drawing.Font("Arial", 15F, System.Drawing.FontStyle.Regular);
|
||||
this.buttonFileAdd.GroupID = 0;
|
||||
this.buttonFileAdd.InitVisible = true;
|
||||
this.buttonFileAdd.Location = new System.Drawing.Point(412, 141);
|
||||
this.buttonFileAdd.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
|
||||
this.buttonFileAdd.Name = "buttonFileAdd";
|
||||
this.buttonFileAdd.NestedClickEventPrevent = false;
|
||||
this.buttonFileAdd.OutlinePixel = 1;
|
||||
this.buttonFileAdd.RepeatInterval = 200;
|
||||
this.buttonFileAdd.RepeatIntervalAccelerate = null;
|
||||
this.buttonFileAdd.SafeInterval = 200;
|
||||
this.buttonFileAdd.Size = new System.Drawing.Size(80, 80);
|
||||
this.buttonFileAdd.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
|
||||
this.buttonFileAdd.TabIndex = 63;
|
||||
this.buttonFileAdd.Text = "▶";
|
||||
this.buttonFileAdd.TextColor = System.Drawing.Color.Black;
|
||||
this.buttonFileAdd.TextDownColor = System.Drawing.Color.White;
|
||||
this.buttonFileAdd.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
|
||||
this.buttonFileAdd.TextLocation = new System.Drawing.Point(0, 0);
|
||||
this.buttonFileAdd.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
|
||||
this.buttonFileAdd.UpImage = null;
|
||||
this.buttonFileAdd.Click += new System.EventHandler(this.buttonFileAdd_Click);
|
||||
//
|
||||
// buttonDeleteAfterBackup
|
||||
//
|
||||
this.buttonDeleteAfterBackup.BackPictureBox = null;
|
||||
this.buttonDeleteAfterBackup.BackPictureBox1 = null;
|
||||
this.buttonDeleteAfterBackup.BackPictureBox2 = null;
|
||||
this.buttonDeleteAfterBackup.ButtonColor = System.Drawing.Color.Gray;
|
||||
this.buttonDeleteAfterBackup.ButtonImageAutoSize = true;
|
||||
this.buttonDeleteAfterBackup.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
|
||||
this.buttonDeleteAfterBackup.DisableImage = null;
|
||||
this.buttonDeleteAfterBackup.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonDeleteAfterBackup.DownImage")));
|
||||
this.buttonDeleteAfterBackup.GroupID = 0;
|
||||
this.buttonDeleteAfterBackup.InitVisible = true;
|
||||
this.buttonDeleteAfterBackup.Location = new System.Drawing.Point(831, 140);
|
||||
this.buttonDeleteAfterBackup.Mode = SmartX.SmartButton.BUTTONMODE.PUSH;
|
||||
this.buttonDeleteAfterBackup.Name = "buttonDeleteAfterBackup";
|
||||
this.buttonDeleteAfterBackup.NestedClickEventPrevent = false;
|
||||
this.buttonDeleteAfterBackup.OutlinePixel = 1;
|
||||
this.buttonDeleteAfterBackup.RepeatInterval = 200;
|
||||
this.buttonDeleteAfterBackup.RepeatIntervalAccelerate = null;
|
||||
this.buttonDeleteAfterBackup.SafeInterval = 200;
|
||||
this.buttonDeleteAfterBackup.Size = new System.Drawing.Size(100, 30);
|
||||
this.buttonDeleteAfterBackup.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
|
||||
this.buttonDeleteAfterBackup.TabIndex = 68;
|
||||
this.buttonDeleteAfterBackup.TextColor = System.Drawing.Color.Black;
|
||||
this.buttonDeleteAfterBackup.TextDownColor = System.Drawing.Color.White;
|
||||
this.buttonDeleteAfterBackup.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
|
||||
this.buttonDeleteAfterBackup.TextLocation = new System.Drawing.Point(0, 0);
|
||||
this.buttonDeleteAfterBackup.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
|
||||
this.buttonDeleteAfterBackup.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonDeleteAfterBackup.UpImage")));
|
||||
this.buttonDeleteAfterBackup.Click += new System.EventHandler(this.buttonDeleteAfterBackup_Click);
|
||||
//
|
||||
// labelTitleDeleteAfterBackup
|
||||
//
|
||||
this.labelTitleDeleteAfterBackup.BackPictureBox = this.smartForm1;
|
||||
this.labelTitleDeleteAfterBackup.BackPictureBox1 = null;
|
||||
this.labelTitleDeleteAfterBackup.BackPictureBox2 = null;
|
||||
this.labelTitleDeleteAfterBackup.BorderColor = System.Drawing.Color.Black;
|
||||
this.labelTitleDeleteAfterBackup.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.labelTitleDeleteAfterBackup.Font = new System.Drawing.Font("새굴림", 14F, System.Drawing.FontStyle.Bold);
|
||||
this.labelTitleDeleteAfterBackup.InitVisible = true;
|
||||
this.labelTitleDeleteAfterBackup.LineSpacing = 0F;
|
||||
this.labelTitleDeleteAfterBackup.Location = new System.Drawing.Point(525, 140);
|
||||
this.labelTitleDeleteAfterBackup.Name = "labelTitleDeleteAfterBackup";
|
||||
this.labelTitleDeleteAfterBackup.Size = new System.Drawing.Size(300, 30);
|
||||
this.labelTitleDeleteAfterBackup.TabIndex = 69;
|
||||
this.labelTitleDeleteAfterBackup.Text = "백업 후 삭제";
|
||||
this.labelTitleDeleteAfterBackup.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
|
||||
this.labelTitleDeleteAfterBackup.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelTitleDeleteAfterBackup.Wordwrap = false;
|
||||
//
|
||||
// smartGroupBox1
|
||||
//
|
||||
this.smartGroupBox1.BackPictureBox = this.smartForm1;
|
||||
this.smartGroupBox1.BackPictureBox1 = null;
|
||||
this.smartGroupBox1.Controls.Add(this.listBoxDataListCHK);
|
||||
this.smartGroupBox1.Controls.Add(this.labelTitleSavedFiles);
|
||||
this.smartGroupBox1.Controls.Add(this.labelFileCount);
|
||||
this.smartGroupBox1.Controls.Add(this.listBoxDataList);
|
||||
this.smartGroupBox1.Controls.Add(this.buttonScrollDown);
|
||||
this.smartGroupBox1.Controls.Add(this.listBoxBackupList);
|
||||
this.smartGroupBox1.Controls.Add(this.buttonScrollUp);
|
||||
this.smartGroupBox1.Controls.Add(this.labelTitleFilesToBackup);
|
||||
this.smartGroupBox1.Controls.Add(this.buttonFileRemove);
|
||||
this.smartGroupBox1.Controls.Add(this.labelBackupFileCount);
|
||||
this.smartGroupBox1.Controls.Add(this.buttonFileAdd);
|
||||
this.smartGroupBox1.FrameLineColor1 = System.Drawing.Color.Black;
|
||||
this.smartGroupBox1.FrameLineColor2 = System.Drawing.Color.Black;
|
||||
this.smartGroupBox1.FrameLineThickness = 1;
|
||||
this.smartGroupBox1.FrameStyle = SmartX.SmartGroupBox.FRAMESTYLES.None;
|
||||
this.smartGroupBox1.Image = null;
|
||||
this.smartGroupBox1.InitVisible = true;
|
||||
this.smartGroupBox1.Location = new System.Drawing.Point(86, 213);
|
||||
this.smartGroupBox1.Name = "smartGroupBox1";
|
||||
this.smartGroupBox1.RoundRadius = 10;
|
||||
this.smartGroupBox1.Size = new System.Drawing.Size(855, 437);
|
||||
this.smartGroupBox1.TabIndex = 71;
|
||||
this.smartGroupBox1.Text = "smartGroupBox1";
|
||||
this.smartGroupBox1.TextColor = System.Drawing.Color.Black;
|
||||
//
|
||||
// FormDataBackup
|
||||
//
|
||||
|
|
@ -306,15 +596,11 @@
|
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
||||
this.AutoScroll = true;
|
||||
this.ClientSize = new System.Drawing.Size(1024, 768);
|
||||
this.Controls.Add(this.radioButtonEnable);
|
||||
this.Controls.Add(this.radioButtonDisable);
|
||||
this.Controls.Add(this.labelStaticWarning1);
|
||||
this.Controls.Add(this.labelStaticWarning2);
|
||||
this.Controls.Add(this.labelFileCount);
|
||||
this.Controls.Add(this.listBoxDataList);
|
||||
this.Controls.Add(this.buttonUSBID);
|
||||
this.Controls.Add(this.labelStaticSaveFile);
|
||||
this.Controls.Add(this.labelStaticBackupEnable);
|
||||
this.Controls.Add(this.smartGroupBox1);
|
||||
this.Controls.Add(this.labelTitleDeleteAfterBackup);
|
||||
this.Controls.Add(this.buttonDeleteAfterBackup);
|
||||
this.Controls.Add(this.buttonDataBackupEnable);
|
||||
this.Controls.Add(this.labelTitleBackupEnable);
|
||||
this.Controls.Add(this.labelTitle);
|
||||
this.Controls.Add(this.buttonBackup);
|
||||
this.Controls.Add(this.buttonBack);
|
||||
|
|
@ -322,6 +608,7 @@
|
|||
this.Name = "FormDataBackup";
|
||||
this.Text = "FormDataBackup";
|
||||
((System.ComponentModel.ISupportInitialize)(this.smartForm1)).EndInit();
|
||||
this.smartGroupBox1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
|
@ -332,14 +619,21 @@
|
|||
private SmartX.SmartButton buttonBackup;
|
||||
private SmartX.SmartButton buttonBack;
|
||||
private SmartX.SmartLabel labelTitle;
|
||||
private SmartX.SmartLabel labelStaticSaveFile;
|
||||
private SmartX.SmartLabel labelStaticBackupEnable;
|
||||
public SmartX.SmartButton buttonUSBID;
|
||||
private System.Windows.Forms.ListBox listBoxDataList;
|
||||
private SmartX.SmartLabel labelTitleSavedFiles;
|
||||
private SmartX.SmartLabel labelTitleBackupEnable;
|
||||
private SmartX.SmartLabel labelFileCount;
|
||||
private SmartX.SmartLabel labelStaticWarning1;
|
||||
private SmartX.SmartLabel labelStaticWarning2;
|
||||
private System.Windows.Forms.RadioButton radioButtonDisable;
|
||||
private System.Windows.Forms.RadioButton radioButtonEnable;
|
||||
private SmartX.SmartButton buttonDataBackupEnable;
|
||||
private SmartX.SmartLabel labelBackupFileCount;
|
||||
private SmartX.SmartLabel labelTitleFilesToBackup;
|
||||
private SmartX.SmartListBox listBoxBackupList;
|
||||
private SmartX.SmartListBox listBoxDataListCHK;
|
||||
private SmartX.SmartListBox listBoxDataList;
|
||||
private SmartX.SmartButton buttonScrollDown;
|
||||
private SmartX.SmartButton buttonScrollUp;
|
||||
private SmartX.SmartButton buttonFileRemove;
|
||||
private SmartX.SmartButton buttonFileAdd;
|
||||
private SmartX.SmartButton buttonDeleteAfterBackup;
|
||||
private SmartX.SmartLabel labelTitleDeleteAfterBackup;
|
||||
private SmartX.SmartGroupBox smartGroupBox1;
|
||||
}
|
||||
}
|
||||
|
|
@ -8,8 +8,9 @@ using System.IO;
|
|||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using INT63DC_2C.DialogForms;
|
||||
using SmartX;
|
||||
using INT63DC_ImageDll;
|
||||
using INT63DC_2C.DialogForms;
|
||||
|
||||
namespace INT63DC_2C.Forms
|
||||
{
|
||||
|
|
@ -17,7 +18,8 @@ namespace INT63DC_2C.Forms
|
|||
{
|
||||
#region Field
|
||||
private FormMain m_ParentForm;
|
||||
private int FileIndex;
|
||||
|
||||
private DatabackupFileInfo2 SelectedFiles;
|
||||
#endregion
|
||||
|
||||
#region Constructor
|
||||
|
|
@ -50,10 +52,10 @@ namespace INT63DC_2C.Forms
|
|||
#region English
|
||||
this.labelTitle.Text = "Data backup";
|
||||
|
||||
this.labelStaticBackupEnable.Text = "Create backup file";
|
||||
this.labelStaticSaveFile.Text = "Saved files";
|
||||
this.labelStaticWarning1.Text = "※ Caution";
|
||||
this.labelStaticWarning2.Text = "The saved data in this system is deleted if the backup is performed through USB memory device.";
|
||||
this.labelTitleBackupEnable.Text = "Enable backup";
|
||||
this.labelTitleDeleteAfterBackup.Text = "Delete after backup";
|
||||
this.labelTitleSavedFiles.Text = "Saved files";
|
||||
this.labelTitleFilesToBackup.Text = "Files to Back Up";
|
||||
|
||||
this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupDisable));
|
||||
this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.engBackupDown));
|
||||
|
|
@ -68,16 +70,10 @@ namespace INT63DC_2C.Forms
|
|||
#region Chinese
|
||||
this.labelTitle.Text = "数据备份";
|
||||
|
||||
this.labelStaticBackupEnable.Text = "备份";
|
||||
this.labelStaticSaveFile.Text = "文件";
|
||||
this.labelStaticWarning1.Text = "※注意:";
|
||||
this.labelStaticWarning2.Text = "当数据保存到USB中后,系统数据被删除";
|
||||
|
||||
this.radioButtonEnable.Text = "启用";
|
||||
this.radioButtonDisable.Text = "禁用";
|
||||
|
||||
this.buttonUSBID.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormDataBackupUSBIDDown));
|
||||
this.buttonUSBID.UpImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnFormDataBackupUSBIDUp));
|
||||
this.labelTitleBackupEnable.Text = "启用备份";
|
||||
this.labelTitleDeleteAfterBackup.Text = "备份后删除";
|
||||
this.labelTitleSavedFiles.Text = "已保存文件";
|
||||
this.labelTitleFilesToBackup.Text = "待备份文件";
|
||||
|
||||
this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackupDisable));
|
||||
this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.chnBackupDown));
|
||||
|
|
@ -92,12 +88,10 @@ namespace INT63DC_2C.Forms
|
|||
#region Czech
|
||||
this.labelTitle.Text = "Záloha dat";
|
||||
|
||||
this.labelStaticBackupEnable.Text = "Zálohovat";
|
||||
this.labelStaticSaveFile.Text = "Soubor";
|
||||
this.labelStaticWarning1.Text = "※ Pozor";
|
||||
this.labelStaticWarning2.Text = "Po provedení zálohy na USB se data v systému se smažou!";
|
||||
this.radioButtonEnable.Text = "Povolit";
|
||||
this.radioButtonDisable.Text = "Zakázat";
|
||||
this.labelTitleBackupEnable.Text = "Povolit zálohování";
|
||||
this.labelTitleDeleteAfterBackup.Text = "Odstranit po zálohování";
|
||||
this.labelTitleSavedFiles.Text = "Soubor";
|
||||
this.labelTitleFilesToBackup.Text = "Soubory k zálohování";
|
||||
|
||||
this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackupDisable));
|
||||
this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.czeBackupDown));
|
||||
|
|
@ -112,12 +106,10 @@ namespace INT63DC_2C.Forms
|
|||
#region German
|
||||
this.labelTitle.Text = "Datensicherung";
|
||||
|
||||
this.labelStaticBackupEnable.Text = "Sicherung";
|
||||
this.labelStaticSaveFile.Text = "Datei";
|
||||
this.labelStaticWarning1.Text = "※ Vorsicht";
|
||||
this.labelStaticWarning2.Text = "Nach der USB-Sicherung werden die Daten im System gelöscht!";
|
||||
this.radioButtonEnable.Text = "Aktivieren";
|
||||
this.radioButtonDisable.Text = "Deaktivieren";
|
||||
this.labelTitleBackupEnable.Text = "Sicherung aktivieren";
|
||||
this.labelTitleDeleteAfterBackup.Text = "Nach der Sicherung löschen";
|
||||
this.labelTitleSavedFiles.Text = "Datei";
|
||||
this.labelTitleFilesToBackup.Text = "Zu sichernde Dateien";
|
||||
|
||||
this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackupDisable));
|
||||
this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.gerBackupDown));
|
||||
|
|
@ -132,13 +124,10 @@ namespace INT63DC_2C.Forms
|
|||
#region Japanese
|
||||
this.labelTitle.Text = "デㅡタバックアップ";
|
||||
|
||||
this.labelStaticBackupEnable.Text = "バックアップ";
|
||||
this.labelStaticSaveFile.Text = "ファイル";
|
||||
this.labelStaticWarning1.Text = "※ 注意";
|
||||
this.labelStaticWarning2.Text = "システム内のデㅡタは削除される USBメモリにデㅡタをバックアップする場合";
|
||||
|
||||
this.radioButtonEnable.Text = "有効";
|
||||
this.radioButtonDisable.Text = "無効";
|
||||
this.labelTitleBackupEnable.Text = "バックアップを有効にする";
|
||||
this.labelTitleDeleteAfterBackup.Text = "バックアップ後に削除";
|
||||
this.labelTitleSavedFiles.Text = "ファイル";
|
||||
this.labelTitleFilesToBackup.Text = "バックアップ待ち";
|
||||
|
||||
this.buttonBackup.DisableImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.jpnBackupDisable));
|
||||
this.buttonBackup.DownImage = new Bitmap(images.GetImage(ImageDll.ButtonImages.jpnBackupDown));
|
||||
|
|
@ -155,73 +144,54 @@ namespace INT63DC_2C.Forms
|
|||
}
|
||||
private void DefaultSetting()
|
||||
{
|
||||
this.FileIndex = 0;
|
||||
this.SelectedFiles = new DatabackupFileInfo2();
|
||||
}
|
||||
|
||||
public void EnableBackupButton(bool enable)
|
||||
private void UpdateFileList()
|
||||
{
|
||||
this.buttonBackup.Enabled = enable;
|
||||
this.Refresh();
|
||||
}
|
||||
|
||||
public void DisplayRefresh()
|
||||
{
|
||||
bool directoryCheck = false;
|
||||
|
||||
this.ParentForm.SystemConfig.CurrentForm = DataStore.FormStore.FormDataBackup;
|
||||
this.listBoxDataList.ClearAll();
|
||||
this.listBoxDataListCHK.ClearAll();
|
||||
this.listBoxBackupList.ClearAll();
|
||||
this.SelectedFiles.Clear();
|
||||
|
||||
DirectoryInfo dir = new DirectoryInfo(this.ParentForm.PathDataBackupFolder);
|
||||
bool directoryCheck = dir.Exists;
|
||||
|
||||
directoryCheck = dir.Exists;
|
||||
// 폴더 체크
|
||||
if (directoryCheck == false)
|
||||
dir.Create();
|
||||
|
||||
FileInfo[] files = dir.GetFiles();
|
||||
|
||||
this.listBoxDataList.Items.Clear();
|
||||
|
||||
// ListBox
|
||||
if (files.Length != 0)
|
||||
{
|
||||
foreach (FileInfo file in files)
|
||||
{
|
||||
this.listBoxDataList.Items.Add(file.Name);
|
||||
this.listBoxDataList.AddItem(file.Name);
|
||||
this.listBoxDataListCHK.AddItem("");
|
||||
}
|
||||
}
|
||||
|
||||
this.labelFileCount.Text = files.Length.ToString();
|
||||
this.labelBackupFileCount.Text = this.listBoxBackupList.ItemCount.ToString();
|
||||
}
|
||||
|
||||
public void DisplayRefresh()
|
||||
{
|
||||
this.ParentForm.SystemConfig.CurrentForm = DataStore.FormStore.FormDataBackup;
|
||||
|
||||
// DataBackup Enable
|
||||
if (this.ParentForm.SystemConfig.IsDataBackup == true)
|
||||
{
|
||||
this.radioButtonEnable.Checked = true;
|
||||
this.radioButtonDisable.Checked = false;
|
||||
}
|
||||
this.buttonDataBackupEnable.ButtonDown();
|
||||
else
|
||||
{
|
||||
this.radioButtonEnable.Checked = false;
|
||||
this.radioButtonDisable.Checked = true;
|
||||
}
|
||||
|
||||
this.labelFileCount.Text = this.listBoxDataList.Items.Count.ToString();
|
||||
|
||||
this.buttonUSBID.Text = this.ParentForm.SystemConfig.UsbID.ToString();
|
||||
}
|
||||
|
||||
private void FileCopy(FileInfo file, string fileName)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (this.FileIndex == 0)
|
||||
{
|
||||
file.CopyTo(fileName);
|
||||
this.FileIndex = 0;
|
||||
}
|
||||
this.buttonDataBackupEnable.ButtonUp();
|
||||
// Delete After Backup
|
||||
if (this.ParentForm.SystemConfig.IsDeleteAfterBackup == true)
|
||||
this.buttonDeleteAfterBackup.ButtonDown();
|
||||
else
|
||||
{
|
||||
file.CopyTo(fileName.Insert(fileName.Length - 4, "_" + this.FileIndex.ToString()));
|
||||
this.FileIndex = 0;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
this.FileIndex++;
|
||||
this.FileCopy(file, fileName);
|
||||
}
|
||||
this.buttonDeleteAfterBackup.ButtonUp();
|
||||
// Update File List
|
||||
this.UpdateFileList();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
@ -236,61 +206,18 @@ namespace INT63DC_2C.Forms
|
|||
#endregion
|
||||
|
||||
#region Event Handler
|
||||
private void buttonUSBID_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.buttonUSBID.Text, 2, 0, false, this.ParentForm.SystemConfig.Language);
|
||||
|
||||
if (myKeyPad.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
if (myKeyPad.doubleValue < 0 || myKeyPad.doubleValue > 99)
|
||||
{
|
||||
// 입력범위를 확인하세요
|
||||
DialogFormMessage myMsg = new DialogFormMessage(1, this.ParentForm.SystemConfig.Language);
|
||||
myMsg.ShowDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.buttonUSBID.Text = myKeyPad.doubleValue.ToString();
|
||||
|
||||
this.ParentForm.SystemConfig.UsbID = myKeyPad.IntValue;
|
||||
|
||||
this.ParentForm.SaveSystemConfigurationFile1(this.ParentForm.SystemConfig);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void radioButtonEnable_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.radioButtonEnable.Checked == true)
|
||||
this.ParentForm.SystemConfig.IsDataBackup = true;
|
||||
else
|
||||
this.ParentForm.SystemConfig.IsDataBackup = false;
|
||||
|
||||
this.ParentForm.SaveSystemConfigurationFile1(this.ParentForm.SystemConfig);
|
||||
}
|
||||
|
||||
private void buttonBackup_Click(object sender, EventArgs e)
|
||||
{
|
||||
int count = 0;
|
||||
bool directoryCheck = false;
|
||||
string filePath = "";
|
||||
SmartX.SmartSplash splash;
|
||||
SmartSplash splash;
|
||||
string srcFilePath = "", dstFilePath1 = "", dstFilePath2 = ""; ;
|
||||
|
||||
splash = new SmartX.SmartSplash();
|
||||
splash = new SmartSplash();
|
||||
splash.CenterPosition = true;
|
||||
splash.AnimationInterval = 100;
|
||||
splash.LoadingImagePathname = "SmartLoading4";
|
||||
|
||||
count = this.listBoxDataList.Items.Count;
|
||||
|
||||
// ADC값 로그, 통신 로그 찍기 중지
|
||||
this.ParentForm.timerAdcLog.Enabled = false;
|
||||
this.ParentForm.IsCommunicationLogOpen = false;
|
||||
this.ParentForm.IsCom3LogOpen = false;
|
||||
this.ParentForm.IsAdcLogOpen = false;
|
||||
this.ParentForm.smartFileCommunicationLog.Close();
|
||||
this.ParentForm.smartFileCom3Log.Close();
|
||||
this.ParentForm.smartFileAdcLog.Close();
|
||||
count = this.listBoxBackupList.ItemCount;
|
||||
|
||||
if (count == 0)
|
||||
{
|
||||
|
|
@ -316,24 +243,27 @@ namespace INT63DC_2C.Forms
|
|||
|
||||
try
|
||||
{
|
||||
filePath = "하드 디스크\\";
|
||||
DirectoryInfo dir = new DirectoryInfo(this.ParentForm.PathDataBackupFolder);
|
||||
|
||||
directoryCheck = dir.Exists;
|
||||
// 폴더 체크
|
||||
if (directoryCheck == false)
|
||||
dstFilePath1 = string.Format("하드 디스크\\{0}\\{1:yyyMMdd_HHmmss}\\", this.ParentForm.SystemConfig.SerialNumber, DateTime.Now);
|
||||
DirectoryInfo dir = new DirectoryInfo(dstFilePath1);
|
||||
if (dir.Exists == false)
|
||||
dir.Create();
|
||||
|
||||
FileInfo[] files = dir.GetFiles();
|
||||
|
||||
foreach (FileInfo file in files)
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
this.FileCopy(file, filePath + file.Name);
|
||||
srcFilePath = string.Format("{0}{1}", this.ParentForm.PathDataBackupFolder, this.SelectedFiles.Files[i].Name);
|
||||
dstFilePath2 = string.Format("{0}{1}", dstFilePath1, this.SelectedFiles.Files[i].Name);
|
||||
File.Copy(srcFilePath, dstFilePath2, true);
|
||||
|
||||
this.listBoxDataList.Items.Remove(file.Name);
|
||||
file.Delete();
|
||||
if (this.ParentForm.SystemConfig.IsDeleteAfterBackup == true)
|
||||
File.Delete(srcFilePath);
|
||||
}
|
||||
this.labelFileCount.Text = this.listBoxDataList.Items.Count.ToString();
|
||||
|
||||
this.UpdateFileList();
|
||||
this.SelectedFiles.Clear();
|
||||
this.listBoxBackupList.ClearAll();
|
||||
this.labelFileCount.Text = this.listBoxDataList.ItemCount.ToString();
|
||||
this.labelBackupFileCount.Text = this.listBoxBackupList.ItemCount.ToString();
|
||||
|
||||
DialogFormMessage msg = new DialogFormMessage(count.ToString(), this.ParentForm.SystemConfig.Language, "Data backup");
|
||||
splash.Finish();
|
||||
msg.ShowDialog();
|
||||
|
|
@ -346,12 +276,88 @@ namespace INT63DC_2C.Forms
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonBack_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.ParentForm.ChildFormMenu.DisplayRefresh();
|
||||
((FormMain)(Owner)).smartForm.Show((int)DataStore.FormStore.FormMenu);
|
||||
}
|
||||
private void buttonFileAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.listBoxDataListCHK.Items[this.listBoxDataListCHK.SelectItemIndex].ToString() != "V")
|
||||
{
|
||||
if (this.listBoxBackupList.ItemCount < 10)
|
||||
{
|
||||
int index = this.listBoxDataList.SelectItemIndex;
|
||||
string name = this.listBoxDataList.Items[index].ToString();
|
||||
|
||||
this.SelectedFiles.Add(index, name);
|
||||
this.listBoxBackupList.AddItem(name);
|
||||
|
||||
this.listBoxDataListCHK.Items[index] = "V";
|
||||
this.listBoxDataListCHK.Refresh();
|
||||
}
|
||||
else
|
||||
{
|
||||
DialogFormMessage msg = new DialogFormMessage(12, this.ParentForm.SystemConfig.Language);
|
||||
msg.ShowDialog();
|
||||
}
|
||||
|
||||
this.labelBackupFileCount.Text = this.listBoxBackupList.ItemCount.ToString();
|
||||
}
|
||||
}
|
||||
private void buttonFileRemove_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.listBoxBackupList.SelectItemIndex != -1)
|
||||
{
|
||||
string name = this.listBoxBackupList.Items[this.listBoxBackupList.SelectItemIndex].ToString();
|
||||
int fileIndex = this.SelectedFiles.GetIndex(name);
|
||||
int listboxIndex = this.listBoxBackupList.SelectItemIndex;
|
||||
|
||||
this.listBoxDataListCHK.Items[fileIndex] = "";
|
||||
this.listBoxDataListCHK.Refresh();
|
||||
this.listBoxBackupList.RemoveItem(listboxIndex);
|
||||
this.SelectedFiles.RemoveAt(name);
|
||||
this.labelBackupFileCount.Text = this.listBoxBackupList.ItemCount.ToString();
|
||||
}
|
||||
}
|
||||
private void buttonScrollUp_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.listBoxDataList.ScrollUp(100);
|
||||
this.listBoxDataListCHK.ScrollUp(100);
|
||||
}
|
||||
private void buttonScrollDown_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.listBoxDataList.ScrollDown(100);
|
||||
this.listBoxDataListCHK.ScrollDown(100);
|
||||
}
|
||||
private void buttonDataBackupEnable_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.buttonDataBackupEnable.ButtonStatus == SmartButton.BUTSTATUS.DOWN)
|
||||
this.ParentForm.SystemConfig.IsDataBackup = true;
|
||||
else
|
||||
this.ParentForm.SystemConfig.IsDataBackup = false;
|
||||
|
||||
this.ParentForm.SaveSystemConfigurationFile1(this.ParentForm.SystemConfig);
|
||||
}
|
||||
|
||||
private void buttonDeleteAfterBackup_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.buttonDeleteAfterBackup.ButtonStatus == SmartButton.BUTSTATUS.DOWN)
|
||||
this.ParentForm.SystemConfig.IsDeleteAfterBackup = true;
|
||||
else
|
||||
this.ParentForm.SystemConfig.IsDeleteAfterBackup = false;
|
||||
|
||||
this.ParentForm.SaveSystemConfigurationFile1(this.ParentForm.SystemConfig);
|
||||
}
|
||||
|
||||
private void listBoxDataList_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.listBoxDataListCHK.SelectItemIndex = this.listBoxDataList.SelectItemIndex;
|
||||
}
|
||||
private void listBoxDataListCHK_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.listBoxDataList.SelectItemIndex = this.listBoxDataListCHK.SelectItemIndex;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -133,6 +133,9 @@
|
|||
this.smartLabel3 = new SmartX.SmartLabel();
|
||||
this.labelComRetryCNT = new SmartX.SmartLabel();
|
||||
this.buttonComRetryCNTReset = new System.Windows.Forms.Button();
|
||||
this.listBoxDataList = new System.Windows.Forms.ListBox();
|
||||
this.buttonBackup = new System.Windows.Forms.Button();
|
||||
this.labelFileCount = new SmartX.SmartLabel();
|
||||
((System.ComponentModel.ISupportInitialize)(this.smartForm1)).BeginInit();
|
||||
this.smartGroupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
|
|
@ -1799,7 +1802,7 @@
|
|||
// buttonLogAdcOpen
|
||||
//
|
||||
this.buttonLogAdcOpen.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.buttonLogAdcOpen.Location = new System.Drawing.Point(765, 214);
|
||||
this.buttonLogAdcOpen.Location = new System.Drawing.Point(765, 380);
|
||||
this.buttonLogAdcOpen.Name = "buttonLogAdcOpen";
|
||||
this.buttonLogAdcOpen.Size = new System.Drawing.Size(100, 30);
|
||||
this.buttonLogAdcOpen.TabIndex = 177;
|
||||
|
|
@ -1809,7 +1812,7 @@
|
|||
// buttonLogAdcClose
|
||||
//
|
||||
this.buttonLogAdcClose.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.buttonLogAdcClose.Location = new System.Drawing.Point(871, 214);
|
||||
this.buttonLogAdcClose.Location = new System.Drawing.Point(871, 380);
|
||||
this.buttonLogAdcClose.Name = "buttonLogAdcClose";
|
||||
this.buttonLogAdcClose.Size = new System.Drawing.Size(100, 30);
|
||||
this.buttonLogAdcClose.TabIndex = 178;
|
||||
|
|
@ -1827,7 +1830,7 @@
|
|||
this.labelStaticLog.ForeColor = System.Drawing.Color.Black;
|
||||
this.labelStaticLog.InitVisible = true;
|
||||
this.labelStaticLog.LineSpacing = 0F;
|
||||
this.labelStaticLog.Location = new System.Drawing.Point(615, 214);
|
||||
this.labelStaticLog.Location = new System.Drawing.Point(615, 380);
|
||||
this.labelStaticLog.Name = "labelStaticLog";
|
||||
this.labelStaticLog.Size = new System.Drawing.Size(144, 30);
|
||||
this.labelStaticLog.TabIndex = 179;
|
||||
|
|
@ -1847,7 +1850,7 @@
|
|||
this.labelStaticCOM3CommLog.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelStaticCOM3CommLog.InitVisible = true;
|
||||
this.labelStaticCOM3CommLog.LineSpacing = 0F;
|
||||
this.labelStaticCOM3CommLog.Location = new System.Drawing.Point(535, 178);
|
||||
this.labelStaticCOM3CommLog.Location = new System.Drawing.Point(535, 344);
|
||||
this.labelStaticCOM3CommLog.Name = "labelStaticCOM3CommLog";
|
||||
this.labelStaticCOM3CommLog.Size = new System.Drawing.Size(224, 30);
|
||||
this.labelStaticCOM3CommLog.TabIndex = 445;
|
||||
|
|
@ -1859,7 +1862,7 @@
|
|||
// buttonCOM3LogClose
|
||||
//
|
||||
this.buttonCOM3LogClose.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.buttonCOM3LogClose.Location = new System.Drawing.Point(871, 178);
|
||||
this.buttonCOM3LogClose.Location = new System.Drawing.Point(871, 344);
|
||||
this.buttonCOM3LogClose.Name = "buttonCOM3LogClose";
|
||||
this.buttonCOM3LogClose.Size = new System.Drawing.Size(100, 30);
|
||||
this.buttonCOM3LogClose.TabIndex = 444;
|
||||
|
|
@ -1869,7 +1872,7 @@
|
|||
// buttonCOM3LogOpen
|
||||
//
|
||||
this.buttonCOM3LogOpen.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.buttonCOM3LogOpen.Location = new System.Drawing.Point(765, 178);
|
||||
this.buttonCOM3LogOpen.Location = new System.Drawing.Point(765, 344);
|
||||
this.buttonCOM3LogOpen.Name = "buttonCOM3LogOpen";
|
||||
this.buttonCOM3LogOpen.Size = new System.Drawing.Size(100, 30);
|
||||
this.buttonCOM3LogOpen.TabIndex = 443;
|
||||
|
|
@ -1887,7 +1890,7 @@
|
|||
this.labelStaticCommLog.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelStaticCommLog.InitVisible = true;
|
||||
this.labelStaticCommLog.LineSpacing = 0F;
|
||||
this.labelStaticCommLog.Location = new System.Drawing.Point(535, 142);
|
||||
this.labelStaticCommLog.Location = new System.Drawing.Point(535, 308);
|
||||
this.labelStaticCommLog.Name = "labelStaticCommLog";
|
||||
this.labelStaticCommLog.Size = new System.Drawing.Size(224, 30);
|
||||
this.labelStaticCommLog.TabIndex = 442;
|
||||
|
|
@ -1899,7 +1902,7 @@
|
|||
// buttonLogClose
|
||||
//
|
||||
this.buttonLogClose.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.buttonLogClose.Location = new System.Drawing.Point(871, 142);
|
||||
this.buttonLogClose.Location = new System.Drawing.Point(871, 308);
|
||||
this.buttonLogClose.Name = "buttonLogClose";
|
||||
this.buttonLogClose.Size = new System.Drawing.Size(100, 30);
|
||||
this.buttonLogClose.TabIndex = 441;
|
||||
|
|
@ -1909,7 +1912,7 @@
|
|||
// buttonLogOpen
|
||||
//
|
||||
this.buttonLogOpen.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.buttonLogOpen.Location = new System.Drawing.Point(765, 142);
|
||||
this.buttonLogOpen.Location = new System.Drawing.Point(765, 308);
|
||||
this.buttonLogOpen.Name = "buttonLogOpen";
|
||||
this.buttonLogOpen.Size = new System.Drawing.Size(100, 30);
|
||||
this.buttonLogOpen.TabIndex = 440;
|
||||
|
|
@ -1981,7 +1984,7 @@
|
|||
this.checkBoxCutView.ImageCheckBox = null;
|
||||
this.checkBoxCutView.ImageUnCheckBox = null;
|
||||
this.checkBoxCutView.InitVisible = true;
|
||||
this.checkBoxCutView.Location = new System.Drawing.Point(765, 250);
|
||||
this.checkBoxCutView.Location = new System.Drawing.Point(765, 431);
|
||||
this.checkBoxCutView.Name = "checkBoxCutView";
|
||||
this.checkBoxCutView.Size = new System.Drawing.Size(206, 30);
|
||||
this.checkBoxCutView.TabIndex = 463;
|
||||
|
|
@ -2003,7 +2006,7 @@
|
|||
this.checkBoxDeveloperMode.ImageCheckBox = null;
|
||||
this.checkBoxDeveloperMode.ImageUnCheckBox = null;
|
||||
this.checkBoxDeveloperMode.InitVisible = true;
|
||||
this.checkBoxDeveloperMode.Location = new System.Drawing.Point(765, 286);
|
||||
this.checkBoxDeveloperMode.Location = new System.Drawing.Point(765, 467);
|
||||
this.checkBoxDeveloperMode.Name = "checkBoxDeveloperMode";
|
||||
this.checkBoxDeveloperMode.Size = new System.Drawing.Size(206, 30);
|
||||
this.checkBoxDeveloperMode.TabIndex = 471;
|
||||
|
|
@ -2022,7 +2025,7 @@
|
|||
this.smartLabel3.ForeColor = System.Drawing.Color.Black;
|
||||
this.smartLabel3.InitVisible = true;
|
||||
this.smartLabel3.LineSpacing = 0F;
|
||||
this.smartLabel3.Location = new System.Drawing.Point(535, 376);
|
||||
this.smartLabel3.Location = new System.Drawing.Point(535, 551);
|
||||
this.smartLabel3.Name = "smartLabel3";
|
||||
this.smartLabel3.Size = new System.Drawing.Size(224, 30);
|
||||
this.smartLabel3.TabIndex = 475;
|
||||
|
|
@ -2042,7 +2045,7 @@
|
|||
this.labelComRetryCNT.ForeColor = System.Drawing.Color.Black;
|
||||
this.labelComRetryCNT.InitVisible = true;
|
||||
this.labelComRetryCNT.LineSpacing = 0F;
|
||||
this.labelComRetryCNT.Location = new System.Drawing.Point(765, 376);
|
||||
this.labelComRetryCNT.Location = new System.Drawing.Point(765, 551);
|
||||
this.labelComRetryCNT.Name = "labelComRetryCNT";
|
||||
this.labelComRetryCNT.Size = new System.Drawing.Size(100, 30);
|
||||
this.labelComRetryCNT.TabIndex = 476;
|
||||
|
|
@ -2054,19 +2057,60 @@
|
|||
// buttonComRetryCNTReset
|
||||
//
|
||||
this.buttonComRetryCNTReset.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.buttonComRetryCNTReset.Location = new System.Drawing.Point(871, 376);
|
||||
this.buttonComRetryCNTReset.Location = new System.Drawing.Point(871, 551);
|
||||
this.buttonComRetryCNTReset.Name = "buttonComRetryCNTReset";
|
||||
this.buttonComRetryCNTReset.Size = new System.Drawing.Size(100, 30);
|
||||
this.buttonComRetryCNTReset.TabIndex = 477;
|
||||
this.buttonComRetryCNTReset.Text = "Reset";
|
||||
this.buttonComRetryCNTReset.Click += new System.EventHandler(this.buttonComRetryCNTReset_Click);
|
||||
//
|
||||
// listBoxDataList
|
||||
//
|
||||
this.listBoxDataList.Font = new System.Drawing.Font("Tahoma", 15F, System.Drawing.FontStyle.Regular);
|
||||
this.listBoxDataList.Location = new System.Drawing.Point(563, 92);
|
||||
this.listBoxDataList.Name = "listBoxDataList";
|
||||
this.listBoxDataList.Size = new System.Drawing.Size(408, 146);
|
||||
this.listBoxDataList.TabIndex = 481;
|
||||
//
|
||||
// buttonBackup
|
||||
//
|
||||
this.buttonBackup.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.buttonBackup.Location = new System.Drawing.Point(871, 244);
|
||||
this.buttonBackup.Name = "buttonBackup";
|
||||
this.buttonBackup.Size = new System.Drawing.Size(100, 30);
|
||||
this.buttonBackup.TabIndex = 482;
|
||||
this.buttonBackup.Text = "backup";
|
||||
this.buttonBackup.Click += new System.EventHandler(this.buttonBackup_Click);
|
||||
//
|
||||
// labelFileCount
|
||||
//
|
||||
this.labelFileCount.BackPictureBox = this.smartForm1;
|
||||
this.labelFileCount.BackPictureBox1 = null;
|
||||
this.labelFileCount.BackPictureBox2 = null;
|
||||
this.labelFileCount.BorderColor = System.Drawing.Color.Black;
|
||||
this.labelFileCount.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.labelFileCount.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
|
||||
this.labelFileCount.ForeColor = System.Drawing.Color.Black;
|
||||
this.labelFileCount.InitVisible = true;
|
||||
this.labelFileCount.LineSpacing = 0F;
|
||||
this.labelFileCount.Location = new System.Drawing.Point(765, 244);
|
||||
this.labelFileCount.Name = "labelFileCount";
|
||||
this.labelFileCount.Size = new System.Drawing.Size(100, 30);
|
||||
this.labelFileCount.TabIndex = 483;
|
||||
this.labelFileCount.Text = "0";
|
||||
this.labelFileCount.TextHAlign = SmartX.SmartLabel.TextHorAlign.Middle;
|
||||
this.labelFileCount.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
|
||||
this.labelFileCount.Wordwrap = false;
|
||||
//
|
||||
// FormEquipmentTest
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
||||
this.AutoScroll = true;
|
||||
this.ClientSize = new System.Drawing.Size(1024, 768);
|
||||
this.Controls.Add(this.labelFileCount);
|
||||
this.Controls.Add(this.buttonBackup);
|
||||
this.Controls.Add(this.listBoxDataList);
|
||||
this.Controls.Add(this.buttonComRetryCNTReset);
|
||||
this.Controls.Add(this.labelComRetryCNT);
|
||||
this.Controls.Add(this.smartLabel3);
|
||||
|
|
@ -2203,5 +2247,8 @@
|
|||
private SmartX.SmartLabel labelWeight13;
|
||||
private SmartX.SmartButton buttonZero14;
|
||||
private SmartX.SmartButton buttonZero13;
|
||||
private System.Windows.Forms.ListBox listBoxDataList;
|
||||
private System.Windows.Forms.Button buttonBackup;
|
||||
private SmartX.SmartLabel labelFileCount;
|
||||
}
|
||||
}
|
||||
|
|
@ -5,6 +5,7 @@ using System.Collections.Generic;
|
|||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
|
@ -18,6 +19,8 @@ namespace INT63DC_2C.Forms
|
|||
public partial class FormEquipmentTest : Form
|
||||
{
|
||||
#region Field
|
||||
private int FileIndex;
|
||||
|
||||
private FormMain m_ParentForm;
|
||||
private ControlEquipmentTest ChildControl1;
|
||||
|
||||
|
|
@ -143,6 +146,8 @@ namespace INT63DC_2C.Forms
|
|||
}
|
||||
private void DefaultSetting()
|
||||
{
|
||||
this.FileIndex = 0;
|
||||
|
||||
this.ChildControl1 = new ControlEquipmentTest(this);
|
||||
this.Controls.Add(this.ChildControl1);
|
||||
this.ChildControl1.Location = new Point(0, 70);
|
||||
|
|
@ -258,6 +263,27 @@ namespace INT63DC_2C.Forms
|
|||
control.Visible = false;
|
||||
}
|
||||
}
|
||||
private void FileCopy(FileInfo file, string fileName)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (this.FileIndex == 0)
|
||||
{
|
||||
file.CopyTo(fileName);
|
||||
this.FileIndex = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
file.CopyTo(fileName.Insert(fileName.Length - 4, "_" + this.FileIndex.ToString()));
|
||||
this.FileIndex = 0;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
this.FileIndex++;
|
||||
this.FileCopy(file, fileName);
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateEquipmentStatusDisplay(DataStore.EquipmentStatus status)
|
||||
{
|
||||
|
|
@ -550,6 +576,19 @@ namespace INT63DC_2C.Forms
|
|||
this.ParentForm.TransferData(CommunicationCommand.ModeEquipmentTest, CommunicationID.MainBoard);
|
||||
|
||||
this.labelComRetryCNT.Text = this.ParentForm.SystemConfig.ComRetryCNT.ToString();
|
||||
|
||||
// Data log
|
||||
DirectoryInfo dir = new DirectoryInfo(this.ParentForm.PathDataLogFolder);
|
||||
bool directoryCheck = dir.Exists;
|
||||
// 폴더 체크
|
||||
if (directoryCheck == false)
|
||||
dir.Create();
|
||||
|
||||
FileInfo[] files = dir.GetFiles();
|
||||
this.listBoxDataList.Items.Clear();
|
||||
foreach (FileInfo file in files)
|
||||
this.listBoxDataList.Items.Add(file.Name);
|
||||
this.labelFileCount.Text = this.listBoxDataList.Items.Count.ToString();
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
@ -692,6 +731,83 @@ namespace INT63DC_2C.Forms
|
|||
this.ParentForm.SystemConfig.ComRetryCNT = 0;
|
||||
this.ParentForm.SaveSystemConfigurationFile2(this.ParentForm.SystemConfig);
|
||||
}
|
||||
private void buttonBackup_Click(object sender, EventArgs e)
|
||||
{
|
||||
int count = 0;
|
||||
bool directoryCheck = false;
|
||||
string filePath = "";
|
||||
SmartX.SmartSplash splash;
|
||||
|
||||
splash = new SmartX.SmartSplash();
|
||||
splash.CenterPosition = true;
|
||||
splash.AnimationInterval = 100;
|
||||
splash.LoadingImagePathname = "SmartLoading4";
|
||||
|
||||
count = this.listBoxDataList.Items.Count;
|
||||
|
||||
// ADC값 로그, 통신 로그 찍기 중지
|
||||
this.ParentForm.timerAdcLog.Enabled = false;
|
||||
this.ParentForm.IsCommunicationLogOpen = false;
|
||||
this.ParentForm.IsCom3LogOpen = false;
|
||||
this.ParentForm.IsAdcLogOpen = false;
|
||||
this.ParentForm.smartFileCommunicationLog.Close();
|
||||
this.ParentForm.smartFileCom3Log.Close();
|
||||
this.ParentForm.smartFileAdcLog.Close();
|
||||
|
||||
if (count == 0)
|
||||
{
|
||||
DialogFormMessage msg = new DialogFormMessage(4, this.ParentForm.SystemConfig.Language);
|
||||
msg.ShowDialog();
|
||||
return;
|
||||
}
|
||||
|
||||
splash.Start();
|
||||
|
||||
try
|
||||
{
|
||||
DirectoryInfo dinfo = new DirectoryInfo("하드 디스크\\");
|
||||
dinfo.GetDirectories();
|
||||
}
|
||||
catch
|
||||
{
|
||||
DialogFormMessage msg = new DialogFormMessage(5, this.ParentForm.SystemConfig.Language);
|
||||
splash.Finish();
|
||||
msg.ShowDialog();
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
filePath = "하드 디스크\\";
|
||||
DirectoryInfo dir = new DirectoryInfo(this.ParentForm.PathDataBackupFolder);
|
||||
|
||||
directoryCheck = dir.Exists;
|
||||
// 폴더 체크
|
||||
if (directoryCheck == false)
|
||||
dir.Create();
|
||||
|
||||
FileInfo[] files = dir.GetFiles();
|
||||
|
||||
foreach (FileInfo file in files)
|
||||
{
|
||||
this.FileCopy(file, filePath + file.Name);
|
||||
|
||||
this.listBoxDataList.Items.Remove(file.Name);
|
||||
file.Delete();
|
||||
}
|
||||
this.labelFileCount.Text = this.listBoxDataList.Items.Count.ToString();
|
||||
DialogFormMessage msg = new DialogFormMessage(count.ToString(), this.ParentForm.SystemConfig.Language, "Data backup");
|
||||
splash.Finish();
|
||||
msg.ShowDialog();
|
||||
}
|
||||
catch
|
||||
{
|
||||
DialogFormMessage msg = new DialogFormMessage(6, this.ParentForm.SystemConfig.Language);
|
||||
splash.Finish();
|
||||
msg.ShowDialog();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
private void pictureBoxStart_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ namespace INT63DC_2C.Forms
|
|||
structItem1.IsWeightViewForward = this.ParentForm.SystemConfig.IsWeightViewForward;
|
||||
structItem1.IsOptDataStatistics = this.ParentForm.SystemConfig.IsOptDataStatistics;
|
||||
structItem1.IsSorterCheckEnable = false;
|
||||
structItem1.DummyBool6 = false;
|
||||
structItem1.IsDeleteAfterBackup = false;
|
||||
structItem1.DummyBool7 = false;
|
||||
|
||||
structItem1.DecimalPlaces = this.ParentForm.SystemConfig.DecimalPlaces;
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ namespace INT63DC_2C.Forms
|
|||
}
|
||||
private void DefaultSetting()
|
||||
{
|
||||
this.labelDisplayVer.Text = "9.1.1";
|
||||
this.labelDisplayVer.Text = "9.2.0";
|
||||
this.labelSerialNo.Text = this.ParentForm.SystemConfig.SerialNumber;
|
||||
this.textBoxSerialNo.Location = new Point(395, 225);
|
||||
this.textBoxSerialNo.Visible = false;
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ namespace INT63DC_2C.Forms
|
|||
private string m_PathDataOthersFolder;
|
||||
private string m_PathEncryptionFolder;
|
||||
private string m_PathHeaderFolder;
|
||||
private string m_PathDataLogFolder;
|
||||
private static string m_PathBinFolder;
|
||||
|
||||
// 로그온 색상
|
||||
|
|
@ -219,6 +220,11 @@ namespace INT63DC_2C.Forms
|
|||
get { return this.m_PathHeaderFolder; }
|
||||
private set { this.m_PathHeaderFolder = value; }
|
||||
}
|
||||
public string PathDataLogFolder
|
||||
{
|
||||
get { return this.m_PathDataLogFolder; }
|
||||
set { this.m_PathDataLogFolder = value; }
|
||||
}
|
||||
public static string PathBinFolder
|
||||
{
|
||||
get { return m_PathBinFolder; }
|
||||
|
|
@ -379,6 +385,7 @@ namespace INT63DC_2C.Forms
|
|||
this.PathDataOthersFolder = this.PathDataFolder + "Others\\";
|
||||
this.PathEncryptionFolder = this.PathLaunchFolder + "Encryption\\";
|
||||
this.PathHeaderFolder = this.PathLaunchFolder + "Header\\";
|
||||
this.PathDataLogFolder = this.PathLaunchFolder + "Log\\";
|
||||
PathBinFolder = this.PathLaunchFolder + "Bin\\";
|
||||
|
||||
this.EquipmentStatus = DataStore.EquipmentStatus.Stop;
|
||||
|
|
@ -442,6 +449,10 @@ namespace INT63DC_2C.Forms
|
|||
if (Directory.Exists(this.PathHeaderFolder) == false)
|
||||
Directory.CreateDirectory(this.PathHeaderFolder);
|
||||
|
||||
// Log 폴더 생성
|
||||
if (Directory.Exists(this.PathDataLogFolder) == false)
|
||||
Directory.CreateDirectory(this.PathDataLogFolder);
|
||||
|
||||
// Bin 폴더 생성
|
||||
if (Directory.Exists(PathBinFolder) == false)
|
||||
Directory.CreateDirectory(PathBinFolder);
|
||||
|
|
@ -852,14 +863,14 @@ namespace INT63DC_2C.Forms
|
|||
}
|
||||
|
||||
#region Test 용 통신 로그
|
||||
fullPath = this.PathDataBackupFolder + "Communicationlog.txt";
|
||||
fullPath = this.PathDataLogFolder + "Communicationlog.txt";
|
||||
this.smartFileCommunicationLog.FilePathName = fullPath;
|
||||
//this.smartFileCommunicationLog.Open();
|
||||
//this.IsCommunicationLogOpen = true;
|
||||
#endregion
|
||||
|
||||
#region ADC 통신 로그
|
||||
fullPath = this.PathDataBackupFolder + this.SystemConfig.UsbID.ToString() + "ADC_log.txt";
|
||||
fullPath = this.PathDataLogFolder + this.SystemConfig.UsbID.ToString() + "ADC_log.txt";
|
||||
this.smartFileAdcLog.FilePathName = fullPath;
|
||||
#endregion
|
||||
}
|
||||
|
|
@ -2496,7 +2507,7 @@ namespace INT63DC_2C.Forms
|
|||
structItem.IsWeightViewForward = this.SystemConfig.IsWeightViewForward;
|
||||
structItem.IsOptDataStatistics = this.SystemConfig.IsOptDataStatistics;
|
||||
structItem.IsSorterCheckEnable = this.SystemConfig.IsSorterCheckEnable;
|
||||
structItem.DummyBool6 = false;
|
||||
structItem.IsDeleteAfterBackup = this.SystemConfig.IsDeleteAfterBackup;
|
||||
structItem.DummyBool7 = false;
|
||||
|
||||
structItem.DecimalPlaces = this.SystemConfig.DecimalPlaces;
|
||||
|
|
@ -2558,7 +2569,7 @@ namespace INT63DC_2C.Forms
|
|||
structItem.IsWeightViewForward = item.IsWeightViewForward;
|
||||
structItem.IsOptDataStatistics = item.IsOptDataStatistics;
|
||||
structItem.IsSorterCheckEnable = item.IsSorterCheckEnable;
|
||||
structItem.DummyBool6 = false;
|
||||
structItem.IsDeleteAfterBackup = item.IsDeleteAfterBackup;
|
||||
structItem.DummyBool7 = false;
|
||||
|
||||
structItem.DecimalPlaces = item.DecimalPlaces;
|
||||
|
|
@ -2625,6 +2636,7 @@ namespace INT63DC_2C.Forms
|
|||
this.SystemConfig.IsWeightViewForward = structItem.IsWeightViewForward;
|
||||
this.SystemConfig.IsOptDataStatistics = structItem.IsOptDataStatistics;
|
||||
this.SystemConfig.IsSorterCheckEnable = structItem.IsSorterCheckEnable;
|
||||
this.SystemConfig.IsDeleteAfterBackup = structItem.IsDeleteAfterBackup;
|
||||
|
||||
this.SystemConfig.DecimalPlaces = structItem.DecimalPlaces;
|
||||
this.SystemConfig.EquipmentColumns = structItem.EquipmentColumns;
|
||||
|
|
@ -8207,7 +8219,7 @@ namespace INT63DC_2C.Forms
|
|||
}
|
||||
|
||||
#region Test 용 통신 로그
|
||||
fullPath = this.PathDataBackupFolder + "COM3log.txt";
|
||||
fullPath = this.PathDataLogFolder + "COM3log.txt";
|
||||
this.smartFileCom3Log.FilePathName = fullPath;
|
||||
//this.smartUARTCom3.Open();
|
||||
//this.IsCom3LogOpen = true;
|
||||
|
|
|
|||
|
|
@ -906,4 +906,7 @@
|
|||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>xcopy /Y /E "$(SolutionDir)Document\DLL\*.dll" "$(TargetDir)"</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue