- Alarm listbox에 표시

- 시스템정보 - 시간설정 추가
main
DESKTOP-999R8N3\CJY 2023-04-04 09:09:48 +09:00
parent b031d92edb
commit 1774ce1e66
11 changed files with 1931 additions and 1011 deletions

View File

@ -32,10 +32,11 @@
this.treeView = new System.Windows.Forms.TreeView(); this.treeView = new System.Windows.Forms.TreeView();
this.smartLabel4 = new SmartX.SmartLabel(); this.smartLabel4 = new SmartX.SmartLabel();
this.smartLabel3 = new SmartX.SmartLabel(); this.smartLabel3 = new SmartX.SmartLabel();
this.smartLabel1 = new SmartX.SmartLabel(); this.labelFileName = new SmartX.SmartLabel();
this.buttonBackup = new SmartX.SmartButton(); this.buttonBackup = new SmartX.SmartButton();
this.labelCount = new SmartX.SmartLabel(); this.labelCount = new SmartX.SmartLabel();
this.smartListBox1 = new SmartX.SmartListBox(); this.listBox = new SmartX.SmartListBox();
this.smartFile1 = new SmartX.SmartFile();
this.smartGroupBox1.SuspendLayout(); this.smartGroupBox1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
@ -47,10 +48,10 @@
this.smartGroupBox1.Controls.Add(this.treeView); this.smartGroupBox1.Controls.Add(this.treeView);
this.smartGroupBox1.Controls.Add(this.smartLabel4); this.smartGroupBox1.Controls.Add(this.smartLabel4);
this.smartGroupBox1.Controls.Add(this.smartLabel3); this.smartGroupBox1.Controls.Add(this.smartLabel3);
this.smartGroupBox1.Controls.Add(this.smartLabel1); this.smartGroupBox1.Controls.Add(this.labelFileName);
this.smartGroupBox1.Controls.Add(this.buttonBackup); this.smartGroupBox1.Controls.Add(this.buttonBackup);
this.smartGroupBox1.Controls.Add(this.labelCount); this.smartGroupBox1.Controls.Add(this.labelCount);
this.smartGroupBox1.Controls.Add(this.smartListBox1); this.smartGroupBox1.Controls.Add(this.listBox);
this.smartGroupBox1.FrameLineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(52)))), ((int)(((byte)(51)))), ((int)(((byte)(65))))); this.smartGroupBox1.FrameLineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(52)))), ((int)(((byte)(51)))), ((int)(((byte)(65)))));
this.smartGroupBox1.FrameLineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(52)))), ((int)(((byte)(51)))), ((int)(((byte)(65))))); this.smartGroupBox1.FrameLineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(52)))), ((int)(((byte)(51)))), ((int)(((byte)(65)))));
this.smartGroupBox1.FrameLineThickness = 2; this.smartGroupBox1.FrameLineThickness = 2;
@ -70,6 +71,7 @@
this.treeView.Name = "treeView"; this.treeView.Name = "treeView";
this.treeView.Size = new System.Drawing.Size(299, 566); this.treeView.Size = new System.Drawing.Size(299, 566);
this.treeView.TabIndex = 81; this.treeView.TabIndex = 81;
this.treeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewLogAlarm_AfterSelect);
// //
// smartLabel4 // smartLabel4
// //
@ -115,28 +117,28 @@
this.smartLabel3.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; this.smartLabel3.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.smartLabel3.Wordwrap = false; this.smartLabel3.Wordwrap = false;
// //
// smartLabel1 // labelFileName
// //
this.smartLabel1.BackGround = this.smartGroupBox1; this.labelFileName.BackGround = this.smartGroupBox1;
this.smartLabel1.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(64)))), ((int)(((byte)(66))))); this.labelFileName.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(64)))), ((int)(((byte)(66)))));
this.smartLabel1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(218)))), ((int)(((byte)(222)))), ((int)(((byte)(226))))); this.labelFileName.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(218)))), ((int)(((byte)(222)))), ((int)(((byte)(226)))));
this.smartLabel1.BorderStyle = SmartX.SmartLabel.BorderStyles.RoundRect; this.labelFileName.BorderStyle = SmartX.SmartLabel.BorderStyles.RoundRect;
this.smartLabel1.Font = new System.Drawing.Font("새굴림", 15F, System.Drawing.FontStyle.Bold); this.labelFileName.Font = new System.Drawing.Font("새굴림", 15F, System.Drawing.FontStyle.Bold);
this.smartLabel1.LineSpacing = 0F; this.labelFileName.LineSpacing = 0F;
this.smartLabel1.Location = new System.Drawing.Point(333, 70); this.labelFileName.Location = new System.Drawing.Point(333, 70);
this.smartLabel1.Name = "smartLabel1"; this.labelFileName.Name = "labelFileName";
this.smartLabel1.OverlapOptimize = true; this.labelFileName.OverlapOptimize = true;
this.smartLabel1.PasswordChar = '\0'; this.labelFileName.PasswordChar = '\0';
this.smartLabel1.Radius = 10; this.labelFileName.Radius = 10;
this.smartLabel1.RoundRectFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(44)))), ((int)(((byte)(44))))); this.labelFileName.RoundRectFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(44)))), ((int)(((byte)(44)))));
this.smartLabel1.Size = new System.Drawing.Size(460, 36); this.labelFileName.Size = new System.Drawing.Size(460, 36);
this.smartLabel1.TabIndex = 85; this.labelFileName.TabIndex = 85;
this.smartLabel1.Text = "00"; this.labelFileName.Text = "00";
this.smartLabel1.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(218)))), ((int)(((byte)(222)))), ((int)(((byte)(226))))); this.labelFileName.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(218)))), ((int)(((byte)(222)))), ((int)(((byte)(226)))));
this.smartLabel1.TextColorDisable = System.Drawing.Color.Gray; this.labelFileName.TextColorDisable = System.Drawing.Color.Gray;
this.smartLabel1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left; this.labelFileName.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
this.smartLabel1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; this.labelFileName.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.smartLabel1.Wordwrap = false; this.labelFileName.Wordwrap = false;
// //
// buttonBackup // buttonBackup
// //
@ -196,115 +198,119 @@
this.labelCount.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; this.labelCount.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelCount.Wordwrap = false; this.labelCount.Wordwrap = false;
// //
// smartListBox1 // listBox
// //
this.smartListBox1.BackGround = null; this.listBox.BackGround = null;
this.smartListBox1.BackGroundColor = System.Drawing.Color.White; this.listBox.BackGroundColor = System.Drawing.Color.White;
this.smartListBox1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); this.listBox.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165)))));
this.smartListBox1.BorderStyle = SmartX.SmartListBox.BORDERSTYLES.FixedSingle; this.listBox.BorderStyle = SmartX.SmartListBox.BORDERSTYLES.FixedSingle;
this.smartListBox1.ColumnStyles = null; this.listBox.ColumnStyles = null;
this.smartListBox1.DataSource = null; this.listBox.DataSource = null;
this.smartListBox1.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD; this.listBox.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD;
this.smartListBox1.ItemOffsetGap = 10; this.listBox.ItemOffsetGap = 10;
this.smartListBox1.ItemOffsetX = 1; this.listBox.ItemOffsetX = 1;
this.smartListBox1.ItemOffsetY = 0; this.listBox.ItemOffsetY = 0;
this.smartListBox1.ItemTextOffsetY = 1; this.listBox.ItemTextOffsetY = 1;
this.smartListBox1.Location = new System.Drawing.Point(333, 112); this.listBox.Location = new System.Drawing.Point(333, 112);
this.smartListBox1.MouseMoveEventSpace = 3; this.listBox.MouseMoveEventSpace = 3;
this.smartListBox1.MouseMoveSpace = 10; this.listBox.MouseMoveSpace = 10;
this.smartListBox1.Name = "smartListBox1"; this.listBox.Name = "listBox";
this.smartListBox1.OverlapOptimize = true; this.listBox.OverlapOptimize = true;
this.smartListBox1.ScrollBarBackColor = System.Drawing.Color.DarkGray; this.listBox.ScrollBarBackColor = System.Drawing.Color.DarkGray;
this.smartListBox1.ScrollBarButtonColor = System.Drawing.Color.GhostWhite; this.listBox.ScrollBarButtonColor = System.Drawing.Color.GhostWhite;
this.smartListBox1.ScrollBarButtonHeight = 15; this.listBox.ScrollBarButtonHeight = 15;
this.smartListBox1.ScrollBarButtonImage = null; this.listBox.ScrollBarButtonImage = null;
this.smartListBox1.ScrollBarButtonRound = 0; this.listBox.ScrollBarButtonRound = 0;
this.smartListBox1.ScrollBarStyle = SmartX.SmartListBox.ScrollBarStyles.ScrollBar; this.listBox.ScrollBarStyle = SmartX.SmartListBox.ScrollBarStyles.ScrollBar;
this.smartListBox1.ScrollButtonHeight = 30; this.listBox.ScrollButtonHeight = 30;
this.smartListBox1.ScrollButtonWidth = 30; this.listBox.ScrollButtonWidth = 30;
// //
// //
// //
this.smartListBox1.ScrollDownButton.BackGround = null; this.listBox.ScrollDownButton.BackGround = null;
this.smartListBox1.ScrollDownButton.BackGroundColor = System.Drawing.Color.LightBlue; this.listBox.ScrollDownButton.BackGroundColor = System.Drawing.Color.LightBlue;
this.smartListBox1.ScrollDownButton.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); this.listBox.ScrollDownButton.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165)))));
this.smartListBox1.ScrollDownButton.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); this.listBox.ScrollDownButton.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129)))));
this.smartListBox1.ScrollDownButton.ButtonImageAutoSize = false; this.listBox.ScrollDownButton.ButtonImageAutoSize = false;
this.smartListBox1.ScrollDownButton.ButtonStyle = SmartX.SmartButton.ButtonStyles.Flat; this.listBox.ScrollDownButton.ButtonStyle = SmartX.SmartButton.ButtonStyles.Flat;
this.smartListBox1.ScrollDownButton.ButtonText = "▼"; this.listBox.ScrollDownButton.ButtonText = "▼";
this.smartListBox1.ScrollDownButton.ColorKeySamplePosition = new System.Drawing.Point(0, 0); this.listBox.ScrollDownButton.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.smartListBox1.ScrollDownButton.GroupID = 0; this.listBox.ScrollDownButton.GroupID = 0;
this.smartListBox1.ScrollDownButton.ImageDisable = null; this.listBox.ScrollDownButton.ImageDisable = null;
this.smartListBox1.ScrollDownButton.ImageDown = null; this.listBox.ScrollDownButton.ImageDown = null;
this.smartListBox1.ScrollDownButton.ImageUp = null; this.listBox.ScrollDownButton.ImageUp = null;
this.smartListBox1.ScrollDownButton.Location = new System.Drawing.Point(524, 492); this.listBox.ScrollDownButton.Location = new System.Drawing.Point(524, 492);
this.smartListBox1.ScrollDownButton.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; this.listBox.ScrollDownButton.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.smartListBox1.ScrollDownButton.Name = "SmartListBox_m_butScrollDown"; this.listBox.ScrollDownButton.Name = "SmartListBox_m_butScrollDown";
this.smartListBox1.ScrollDownButton.NestedClickEventPrevent = false; this.listBox.ScrollDownButton.NestedClickEventPrevent = false;
this.smartListBox1.ScrollDownButton.OutlinePixel = 1; this.listBox.ScrollDownButton.OutlinePixel = 1;
this.smartListBox1.ScrollDownButton.OverlapOptimize = true; this.listBox.ScrollDownButton.OverlapOptimize = true;
this.smartListBox1.ScrollDownButton.RepeatInterval = 200; this.listBox.ScrollDownButton.RepeatInterval = 200;
this.smartListBox1.ScrollDownButton.RepeatIntervalAccelerate = null; this.listBox.ScrollDownButton.RepeatIntervalAccelerate = null;
this.smartListBox1.ScrollDownButton.RoundSize = 10; this.listBox.ScrollDownButton.RoundSize = 10;
this.smartListBox1.ScrollDownButton.SafeInterval = 200; this.listBox.ScrollDownButton.SafeInterval = 200;
this.smartListBox1.ScrollDownButton.Size = new System.Drawing.Size(30, 30); this.listBox.ScrollDownButton.Size = new System.Drawing.Size(30, 30);
this.smartListBox1.ScrollDownButton.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; this.listBox.ScrollDownButton.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.smartListBox1.ScrollDownButton.TabIndex = 0; this.listBox.ScrollDownButton.TabIndex = 0;
this.smartListBox1.ScrollDownButton.Text = null; this.listBox.ScrollDownButton.Text = null;
this.smartListBox1.ScrollDownButton.TextColor = System.Drawing.Color.White; this.listBox.ScrollDownButton.TextColor = System.Drawing.Color.White;
this.smartListBox1.ScrollDownButton.TextColorDisable = System.Drawing.Color.Gray; this.listBox.ScrollDownButton.TextColorDisable = System.Drawing.Color.Gray;
this.smartListBox1.ScrollDownButton.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255))))); this.listBox.ScrollDownButton.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255)))));
this.smartListBox1.ScrollDownButton.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; this.listBox.ScrollDownButton.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.smartListBox1.ScrollDownButton.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; this.listBox.ScrollDownButton.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.smartListBox1.ScrollStep = 1; this.listBox.ScrollStep = 1;
// //
// //
// //
this.smartListBox1.ScrollUpButton.BackGround = null; this.listBox.ScrollUpButton.BackGround = null;
this.smartListBox1.ScrollUpButton.BackGroundColor = System.Drawing.Color.LightBlue; this.listBox.ScrollUpButton.BackGroundColor = System.Drawing.Color.LightBlue;
this.smartListBox1.ScrollUpButton.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); this.listBox.ScrollUpButton.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165)))));
this.smartListBox1.ScrollUpButton.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); this.listBox.ScrollUpButton.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129)))));
this.smartListBox1.ScrollUpButton.ButtonImageAutoSize = false; this.listBox.ScrollUpButton.ButtonImageAutoSize = false;
this.smartListBox1.ScrollUpButton.ButtonStyle = SmartX.SmartButton.ButtonStyles.Flat; this.listBox.ScrollUpButton.ButtonStyle = SmartX.SmartButton.ButtonStyles.Flat;
this.smartListBox1.ScrollUpButton.ButtonText = "▲"; this.listBox.ScrollUpButton.ButtonText = "▲";
this.smartListBox1.ScrollUpButton.ColorKeySamplePosition = new System.Drawing.Point(0, 0); this.listBox.ScrollUpButton.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.smartListBox1.ScrollUpButton.GroupID = 0; this.listBox.ScrollUpButton.GroupID = 0;
this.smartListBox1.ScrollUpButton.ImageDisable = null; this.listBox.ScrollUpButton.ImageDisable = null;
this.smartListBox1.ScrollUpButton.ImageDown = null; this.listBox.ScrollUpButton.ImageDown = null;
this.smartListBox1.ScrollUpButton.ImageUp = null; this.listBox.ScrollUpButton.ImageUp = null;
this.smartListBox1.ScrollUpButton.Location = new System.Drawing.Point(524, 2); this.listBox.ScrollUpButton.Location = new System.Drawing.Point(524, 2);
this.smartListBox1.ScrollUpButton.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; this.listBox.ScrollUpButton.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.smartListBox1.ScrollUpButton.Name = "SmartListBox_m_butScrollUp"; this.listBox.ScrollUpButton.Name = "SmartListBox_m_butScrollUp";
this.smartListBox1.ScrollUpButton.NestedClickEventPrevent = false; this.listBox.ScrollUpButton.NestedClickEventPrevent = false;
this.smartListBox1.ScrollUpButton.OutlinePixel = 1; this.listBox.ScrollUpButton.OutlinePixel = 1;
this.smartListBox1.ScrollUpButton.OverlapOptimize = true; this.listBox.ScrollUpButton.OverlapOptimize = true;
this.smartListBox1.ScrollUpButton.RepeatInterval = 200; this.listBox.ScrollUpButton.RepeatInterval = 200;
this.smartListBox1.ScrollUpButton.RepeatIntervalAccelerate = null; this.listBox.ScrollUpButton.RepeatIntervalAccelerate = null;
this.smartListBox1.ScrollUpButton.RoundSize = 10; this.listBox.ScrollUpButton.RoundSize = 10;
this.smartListBox1.ScrollUpButton.SafeInterval = 200; this.listBox.ScrollUpButton.SafeInterval = 200;
this.smartListBox1.ScrollUpButton.Size = new System.Drawing.Size(30, 30); this.listBox.ScrollUpButton.Size = new System.Drawing.Size(30, 30);
this.smartListBox1.ScrollUpButton.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; this.listBox.ScrollUpButton.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.smartListBox1.ScrollUpButton.TabIndex = 1; this.listBox.ScrollUpButton.TabIndex = 1;
this.smartListBox1.ScrollUpButton.Text = null; this.listBox.ScrollUpButton.Text = null;
this.smartListBox1.ScrollUpButton.TextColor = System.Drawing.Color.White; this.listBox.ScrollUpButton.TextColor = System.Drawing.Color.White;
this.smartListBox1.ScrollUpButton.TextColorDisable = System.Drawing.Color.Gray; this.listBox.ScrollUpButton.TextColorDisable = System.Drawing.Color.Gray;
this.smartListBox1.ScrollUpButton.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255))))); this.listBox.ScrollUpButton.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255)))));
this.smartListBox1.ScrollUpButton.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; this.listBox.ScrollUpButton.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.smartListBox1.ScrollUpButton.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; this.listBox.ScrollUpButton.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.smartListBox1.SelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(156)))), ((int)(((byte)(184))))); this.listBox.SelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(156)))), ((int)(((byte)(184)))));
this.smartListBox1.SelectFilled = true; this.listBox.SelectFilled = true;
this.smartListBox1.SelectItemIndex = -1; this.listBox.SelectItemIndex = -1;
this.smartListBox1.SelectTextColor = System.Drawing.Color.White; this.listBox.SelectTextColor = System.Drawing.Color.White;
this.smartListBox1.SeparationlineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(125)))), ((int)(((byte)(125)))), ((int)(((byte)(125))))); this.listBox.SeparationlineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(125)))), ((int)(((byte)(125)))), ((int)(((byte)(125)))));
this.smartListBox1.SeparationlineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(224))))); this.listBox.SeparationlineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(224)))));
this.smartListBox1.SeparationLineStyle = SmartX.SmartListBox.SEPARATIONLINETYPES.FixedSingle; this.listBox.SeparationLineStyle = SmartX.SmartListBox.SEPARATIONLINETYPES.FixedSingle;
this.smartListBox1.SeparationlineVisibleBottom = true; this.listBox.SeparationlineVisibleBottom = true;
this.smartListBox1.SeparationlineVisibleTop = true; this.listBox.SeparationlineVisibleTop = true;
this.smartListBox1.Size = new System.Drawing.Size(556, 524); this.listBox.Size = new System.Drawing.Size(556, 524);
this.smartListBox1.TabIndex = 82; this.listBox.TabIndex = 82;
this.smartListBox1.Text = "smartListBox1"; this.listBox.Text = "smartListBox1";
this.smartListBox1.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82))))); this.listBox.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
this.smartListBox1.TextColorDisable = System.Drawing.Color.Gray; this.listBox.TextColorDisable = System.Drawing.Color.Gray;
//
// smartFile1
//
this.smartFile1.FilePathName = "";
// //
// ControlMenuLogAlarm // ControlMenuLogAlarm
// //
@ -323,10 +329,11 @@
private SmartX.SmartGroupBox smartGroupBox1; private SmartX.SmartGroupBox smartGroupBox1;
private SmartX.SmartButton buttonBackup; private SmartX.SmartButton buttonBackup;
private SmartX.SmartLabel labelCount; private SmartX.SmartLabel labelCount;
private SmartX.SmartListBox smartListBox1; private SmartX.SmartListBox listBox;
private System.Windows.Forms.TreeView treeView; private System.Windows.Forms.TreeView treeView;
private SmartX.SmartLabel smartLabel1; private SmartX.SmartLabel labelFileName;
private SmartX.SmartLabel smartLabel3; private SmartX.SmartLabel smartLabel3;
private SmartX.SmartLabel smartLabel4; private SmartX.SmartLabel smartLabel4;
private SmartX.SmartFile smartFile1;
} }
} }

View File

@ -55,6 +55,35 @@ namespace INT_PT002.Controls
this.ListAlarmFile = new List<DataBackupYear>(); this.ListAlarmFile = new List<DataBackupYear>();
} }
public void LoadFile(string fullFilePath)
{
if (fullFilePath.Contains("_Alarm") == false)
return;
this.smartFile1.FilePathName = fullFilePath;
this.smartFile1.Open();
this.smartFile1.StringType.EncodingType = SmartX.SmartFile.Encodings.ANSI;
try
{
this.smartFile1.StringType.FillBuffer();
long lineNum = this.smartFile1.StringType.GetCount();
for (int i = 1; i < lineNum; i++)
{
this.listBox.AddItem(this.smartFile1.StringType.ReadBuffer(i));
}
}
catch
{
DialogFormMessage myMsg = new DialogFormMessage(16, this.ParentForm.ParentForm.SystemConfig.LANGUAGE);
myMsg.ShowDialog();
this.smartFile1.Close();
}
this.smartFile1.Close();
}
private void UpdateDisplayFile() private void UpdateDisplayFile()
{ {
int fileCount = 0; int fileCount = 0;
@ -162,6 +191,7 @@ namespace INT_PT002.Controls
public void DisplayRefresh() public void DisplayRefresh()
{ {
this.ParentForm.ParentForm.CurrentSystemStatus.CurrentDisplayMode = Define.E_DisplayModeStore.LogAlarm;
this.ParentForm.ParentForm.SetDisplayMode(Define.E_EquipmentMode.Menu); this.ParentForm.ParentForm.SetDisplayMode(Define.E_EquipmentMode.Menu);
this.SelecteDataType = Define.E_DataType.None; this.SelecteDataType = Define.E_DataType.None;
@ -178,17 +208,12 @@ namespace INT_PT002.Controls
} }
#endregion #endregion
#region Event Handler
private void treeViewLogAlarm_AfterSelect(object sender, TreeViewEventArgs e) private void treeViewLogAlarm_AfterSelect(object sender, TreeViewEventArgs e)
{ {
//this.labelPath.Text = e.Node.Text; this.labelFileName.Text = e.Node.Text;
//for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++) this.LoadFile(this.ParentForm.ParentForm.PathDataInspectionFolder + this.treeView.SelectedNode.FullPath);
// this.CollectionListBox[i].ClearAll();
//this.listBoxTime.ClearAll();
//this.LoadFile(this.ParentForm.ParentForm.PathDataInspectionFolder + this.treeViewInspection.SelectedNode.FullPath);
} }
#region Event Handler
#endregion #endregion
} }
} }

View File

@ -117,6 +117,12 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="smartFile1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>53</value>
</metadata>
<metadata name="$this.FormFactorShadowProperty" xml:space="preserve"> <metadata name="$this.FormFactorShadowProperty" xml:space="preserve">
<value>WEBPAD</value> <value>WEBPAD</value>
</metadata> </metadata>

View File

@ -30,13 +30,13 @@
{ {
this.smartFile1 = new SmartX.SmartFile(); this.smartFile1 = new SmartX.SmartFile();
this.smartGroupBox1 = new SmartX.SmartGroupBox(); this.smartGroupBox1 = new SmartX.SmartGroupBox();
this.treeView = new System.Windows.Forms.TreeView();
this.smartLabel4 = new SmartX.SmartLabel();
this.smartLabel3 = new SmartX.SmartLabel();
this.smartLabel1 = new SmartX.SmartLabel();
this.buttonBackup = new SmartX.SmartButton(); this.buttonBackup = new SmartX.SmartButton();
this.listBox = new SmartX.SmartListBox();
this.treeView = new System.Windows.Forms.TreeView();
this.labelFileName = new SmartX.SmartLabel();
this.labelCount = new SmartX.SmartLabel(); this.labelCount = new SmartX.SmartLabel();
this.listbox = new SmartX.SmartListBox(); this.smartLabel3 = new SmartX.SmartLabel();
this.smartLabel4 = new SmartX.SmartLabel();
this.smartGroupBox1.SuspendLayout(); this.smartGroupBox1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
@ -50,9 +50,9 @@
this.smartGroupBox1.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(52)))), ((int)(((byte)(51)))), ((int)(((byte)(65))))); this.smartGroupBox1.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(52)))), ((int)(((byte)(51)))), ((int)(((byte)(65)))));
this.smartGroupBox1.BackImage = null; this.smartGroupBox1.BackImage = null;
this.smartGroupBox1.Controls.Add(this.buttonBackup); this.smartGroupBox1.Controls.Add(this.buttonBackup);
this.smartGroupBox1.Controls.Add(this.listbox); this.smartGroupBox1.Controls.Add(this.listBox);
this.smartGroupBox1.Controls.Add(this.treeView); this.smartGroupBox1.Controls.Add(this.treeView);
this.smartGroupBox1.Controls.Add(this.smartLabel1); this.smartGroupBox1.Controls.Add(this.labelFileName);
this.smartGroupBox1.Controls.Add(this.labelCount); this.smartGroupBox1.Controls.Add(this.labelCount);
this.smartGroupBox1.Controls.Add(this.smartLabel3); this.smartGroupBox1.Controls.Add(this.smartLabel3);
this.smartGroupBox1.Controls.Add(this.smartLabel4); this.smartGroupBox1.Controls.Add(this.smartLabel4);
@ -69,80 +69,6 @@
this.smartGroupBox1.Text = "smartGroupBox1"; this.smartGroupBox1.Text = "smartGroupBox1";
this.smartGroupBox1.TextColor = System.Drawing.Color.White; this.smartGroupBox1.TextColor = System.Drawing.Color.White;
// //
// treeView
//
this.treeView.Location = new System.Drawing.Point(23, 74);
this.treeView.Name = "treeView";
this.treeView.Size = new System.Drawing.Size(299, 566);
this.treeView.TabIndex = 81;
//
// smartLabel4
//
this.smartLabel4.BackGround = this.smartGroupBox1;
this.smartLabel4.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(87)))), ((int)(((byte)(92)))), ((int)(((byte)(118)))));
this.smartLabel4.BorderColor = System.Drawing.Color.Black;
this.smartLabel4.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
this.smartLabel4.LineSpacing = 0F;
this.smartLabel4.Location = new System.Drawing.Point(19, 45);
this.smartLabel4.Name = "smartLabel4";
this.smartLabel4.OverlapOptimize = true;
this.smartLabel4.PasswordChar = '\0';
this.smartLabel4.Radius = 3;
this.smartLabel4.RoundRectFillColor = System.Drawing.Color.LightBlue;
this.smartLabel4.Size = new System.Drawing.Size(307, 23);
this.smartLabel4.TabIndex = 88;
this.smartLabel4.Text = " List";
this.smartLabel4.TextColor = System.Drawing.Color.White;
this.smartLabel4.TextColorDisable = System.Drawing.Color.Gray;
this.smartLabel4.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
this.smartLabel4.TextVAlign = SmartX.SmartLabel.TextVerAlign.Top;
this.smartLabel4.Wordwrap = true;
//
// smartLabel3
//
this.smartLabel3.BackGround = this.smartGroupBox1;
this.smartLabel3.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(92)))), ((int)(((byte)(118)))));
this.smartLabel3.BorderColor = System.Drawing.Color.Black;
this.smartLabel3.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
this.smartLabel3.LineSpacing = 0F;
this.smartLabel3.Location = new System.Drawing.Point(339, 45);
this.smartLabel3.Name = "smartLabel3";
this.smartLabel3.OverlapOptimize = true;
this.smartLabel3.PasswordChar = '\0';
this.smartLabel3.Radius = 3;
this.smartLabel3.RoundRectFillColor = System.Drawing.Color.LightBlue;
this.smartLabel3.Size = new System.Drawing.Size(548, 23);
this.smartLabel3.TabIndex = 87;
this.smartLabel3.Text = " File name";
this.smartLabel3.TextColor = System.Drawing.Color.White;
this.smartLabel3.TextColorDisable = System.Drawing.Color.Gray;
this.smartLabel3.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
this.smartLabel3.TextVAlign = SmartX.SmartLabel.TextVerAlign.Top;
this.smartLabel3.Wordwrap = false;
//
// smartLabel1
//
this.smartLabel1.BackGround = this.smartGroupBox1;
this.smartLabel1.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
this.smartLabel1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(218)))), ((int)(((byte)(222)))), ((int)(((byte)(226)))));
this.smartLabel1.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
this.smartLabel1.Font = new System.Drawing.Font("새굴림", 13F, System.Drawing.FontStyle.Regular);
this.smartLabel1.LineSpacing = 0F;
this.smartLabel1.Location = new System.Drawing.Point(343, 74);
this.smartLabel1.Name = "smartLabel1";
this.smartLabel1.OverlapOptimize = true;
this.smartLabel1.PasswordChar = '\0';
this.smartLabel1.Radius = 10;
this.smartLabel1.RoundRectFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(44)))), ((int)(((byte)(44)))));
this.smartLabel1.Size = new System.Drawing.Size(455, 36);
this.smartLabel1.TabIndex = 85;
this.smartLabel1.Text = "00";
this.smartLabel1.TextColor = System.Drawing.Color.White;
this.smartLabel1.TextColorDisable = System.Drawing.Color.Gray;
this.smartLabel1.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
this.smartLabel1.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.smartLabel1.Wordwrap = false;
//
// buttonBackup // buttonBackup
// //
this.buttonBackup.BackGround = this.smartGroupBox1; this.buttonBackup.BackGround = this.smartGroupBox1;
@ -178,6 +104,147 @@
this.buttonBackup.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle; this.buttonBackup.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonBackup.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; this.buttonBackup.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
// //
// listBox
//
this.listBox.BackGround = null;
this.listBox.BackGroundColor = System.Drawing.Color.White;
this.listBox.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165)))));
this.listBox.BorderStyle = SmartX.SmartListBox.BORDERSTYLES.FixedSingle;
this.listBox.ColumnStyles = null;
this.listBox.DataSource = null;
this.listBox.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD;
this.listBox.ItemOffsetGap = 10;
this.listBox.ItemOffsetX = 1;
this.listBox.ItemOffsetY = 0;
this.listBox.ItemTextOffsetY = 1;
this.listBox.Location = new System.Drawing.Point(343, 116);
this.listBox.MouseMoveEventSpace = 3;
this.listBox.MouseMoveSpace = 10;
this.listBox.Name = "listBox";
this.listBox.OverlapOptimize = true;
this.listBox.ScrollBarBackColor = System.Drawing.Color.DarkGray;
this.listBox.ScrollBarButtonColor = System.Drawing.Color.GhostWhite;
this.listBox.ScrollBarButtonHeight = 15;
this.listBox.ScrollBarButtonImage = null;
this.listBox.ScrollBarButtonRound = 0;
this.listBox.ScrollBarStyle = SmartX.SmartListBox.ScrollBarStyles.ScrollBar;
this.listBox.ScrollButtonHeight = 30;
this.listBox.ScrollButtonWidth = 30;
//
//
//
this.listBox.ScrollDownButton.BackGround = null;
this.listBox.ScrollDownButton.BackGroundColor = System.Drawing.Color.LightBlue;
this.listBox.ScrollDownButton.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165)))));
this.listBox.ScrollDownButton.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129)))));
this.listBox.ScrollDownButton.ButtonImageAutoSize = false;
this.listBox.ScrollDownButton.ButtonStyle = SmartX.SmartButton.ButtonStyles.Flat;
this.listBox.ScrollDownButton.ButtonText = "▼";
this.listBox.ScrollDownButton.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.listBox.ScrollDownButton.GroupID = 0;
this.listBox.ScrollDownButton.ImageDisable = null;
this.listBox.ScrollDownButton.ImageDown = null;
this.listBox.ScrollDownButton.ImageUp = null;
this.listBox.ScrollDownButton.Location = new System.Drawing.Point(508, 492);
this.listBox.ScrollDownButton.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.listBox.ScrollDownButton.Name = "SmartListBox_m_butScrollDown";
this.listBox.ScrollDownButton.NestedClickEventPrevent = false;
this.listBox.ScrollDownButton.OutlinePixel = 1;
this.listBox.ScrollDownButton.OverlapOptimize = true;
this.listBox.ScrollDownButton.RepeatInterval = 200;
this.listBox.ScrollDownButton.RepeatIntervalAccelerate = null;
this.listBox.ScrollDownButton.RoundSize = 10;
this.listBox.ScrollDownButton.SafeInterval = 200;
this.listBox.ScrollDownButton.Size = new System.Drawing.Size(30, 30);
this.listBox.ScrollDownButton.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.listBox.ScrollDownButton.TabIndex = 0;
this.listBox.ScrollDownButton.Text = null;
this.listBox.ScrollDownButton.TextColor = System.Drawing.Color.White;
this.listBox.ScrollDownButton.TextColorDisable = System.Drawing.Color.Gray;
this.listBox.ScrollDownButton.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255)))));
this.listBox.ScrollDownButton.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.listBox.ScrollDownButton.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.listBox.ScrollStep = 1;
//
//
//
this.listBox.ScrollUpButton.BackGround = null;
this.listBox.ScrollUpButton.BackGroundColor = System.Drawing.Color.LightBlue;
this.listBox.ScrollUpButton.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165)))));
this.listBox.ScrollUpButton.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129)))));
this.listBox.ScrollUpButton.ButtonImageAutoSize = false;
this.listBox.ScrollUpButton.ButtonStyle = SmartX.SmartButton.ButtonStyles.Flat;
this.listBox.ScrollUpButton.ButtonText = "▲";
this.listBox.ScrollUpButton.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.listBox.ScrollUpButton.GroupID = 0;
this.listBox.ScrollUpButton.ImageDisable = null;
this.listBox.ScrollUpButton.ImageDown = null;
this.listBox.ScrollUpButton.ImageUp = null;
this.listBox.ScrollUpButton.Location = new System.Drawing.Point(508, 2);
this.listBox.ScrollUpButton.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.listBox.ScrollUpButton.Name = "SmartListBox_m_butScrollUp";
this.listBox.ScrollUpButton.NestedClickEventPrevent = false;
this.listBox.ScrollUpButton.OutlinePixel = 1;
this.listBox.ScrollUpButton.OverlapOptimize = true;
this.listBox.ScrollUpButton.RepeatInterval = 200;
this.listBox.ScrollUpButton.RepeatIntervalAccelerate = null;
this.listBox.ScrollUpButton.RoundSize = 10;
this.listBox.ScrollUpButton.SafeInterval = 200;
this.listBox.ScrollUpButton.Size = new System.Drawing.Size(30, 30);
this.listBox.ScrollUpButton.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.listBox.ScrollUpButton.TabIndex = 1;
this.listBox.ScrollUpButton.Text = null;
this.listBox.ScrollUpButton.TextColor = System.Drawing.Color.White;
this.listBox.ScrollUpButton.TextColorDisable = System.Drawing.Color.Gray;
this.listBox.ScrollUpButton.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255)))));
this.listBox.ScrollUpButton.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.listBox.ScrollUpButton.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.listBox.SelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(156)))), ((int)(((byte)(184)))));
this.listBox.SelectFilled = true;
this.listBox.SelectItemIndex = -1;
this.listBox.SelectTextColor = System.Drawing.Color.White;
this.listBox.SeparationlineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(125)))), ((int)(((byte)(125)))), ((int)(((byte)(125)))));
this.listBox.SeparationlineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(224)))));
this.listBox.SeparationLineStyle = SmartX.SmartListBox.SEPARATIONLINETYPES.FixedSingle;
this.listBox.SeparationlineVisibleBottom = true;
this.listBox.SeparationlineVisibleTop = true;
this.listBox.Size = new System.Drawing.Size(540, 524);
this.listBox.TabIndex = 82;
this.listBox.Text = "smartListBox1";
this.listBox.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
this.listBox.TextColorDisable = System.Drawing.Color.Gray;
//
// treeView
//
this.treeView.Location = new System.Drawing.Point(23, 74);
this.treeView.Name = "treeView";
this.treeView.Size = new System.Drawing.Size(299, 566);
this.treeView.TabIndex = 81;
this.treeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewHistory_AfterSelect);
//
// labelFileName
//
this.labelFileName.BackGround = this.smartGroupBox1;
this.labelFileName.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(24)))), ((int)(((byte)(32)))));
this.labelFileName.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(218)))), ((int)(((byte)(222)))), ((int)(((byte)(226)))));
this.labelFileName.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
this.labelFileName.Font = new System.Drawing.Font("새굴림", 13F, System.Drawing.FontStyle.Regular);
this.labelFileName.LineSpacing = 0F;
this.labelFileName.Location = new System.Drawing.Point(343, 74);
this.labelFileName.Name = "labelFileName";
this.labelFileName.OverlapOptimize = true;
this.labelFileName.PasswordChar = '\0';
this.labelFileName.Radius = 10;
this.labelFileName.RoundRectFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(44)))), ((int)(((byte)(44)))), ((int)(((byte)(44)))));
this.labelFileName.Size = new System.Drawing.Size(455, 36);
this.labelFileName.TabIndex = 85;
this.labelFileName.Text = "00";
this.labelFileName.TextColor = System.Drawing.Color.White;
this.labelFileName.TextColorDisable = System.Drawing.Color.Gray;
this.labelFileName.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
this.labelFileName.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelFileName.Wordwrap = false;
//
// labelCount // labelCount
// //
this.labelCount.BackGround = this.smartGroupBox1; this.labelCount.BackGround = this.smartGroupBox1;
@ -201,115 +268,49 @@
this.labelCount.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle; this.labelCount.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.labelCount.Wordwrap = false; this.labelCount.Wordwrap = false;
// //
// listbox // smartLabel3
// //
this.listbox.BackGround = null; this.smartLabel3.BackGround = this.smartGroupBox1;
this.listbox.BackGroundColor = System.Drawing.Color.White; this.smartLabel3.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(92)))), ((int)(((byte)(118)))));
this.listbox.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); this.smartLabel3.BorderColor = System.Drawing.Color.Black;
this.listbox.BorderStyle = SmartX.SmartListBox.BORDERSTYLES.FixedSingle; this.smartLabel3.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
this.listbox.ColumnStyles = null; this.smartLabel3.LineSpacing = 0F;
this.listbox.DataSource = null; this.smartLabel3.Location = new System.Drawing.Point(339, 45);
this.listbox.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD; this.smartLabel3.Name = "smartLabel3";
this.listbox.ItemOffsetGap = 10; this.smartLabel3.OverlapOptimize = true;
this.listbox.ItemOffsetX = 1; this.smartLabel3.PasswordChar = '\0';
this.listbox.ItemOffsetY = 0; this.smartLabel3.Radius = 3;
this.listbox.ItemTextOffsetY = 1; this.smartLabel3.RoundRectFillColor = System.Drawing.Color.LightBlue;
this.listbox.Location = new System.Drawing.Point(343, 116); this.smartLabel3.Size = new System.Drawing.Size(548, 23);
this.listbox.MouseMoveEventSpace = 3; this.smartLabel3.TabIndex = 87;
this.listbox.MouseMoveSpace = 10; this.smartLabel3.Text = " File name";
this.listbox.Name = "listbox"; this.smartLabel3.TextColor = System.Drawing.Color.White;
this.listbox.OverlapOptimize = true; this.smartLabel3.TextColorDisable = System.Drawing.Color.Gray;
this.listbox.ScrollBarBackColor = System.Drawing.Color.DarkGray; this.smartLabel3.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
this.listbox.ScrollBarButtonColor = System.Drawing.Color.GhostWhite; this.smartLabel3.TextVAlign = SmartX.SmartLabel.TextVerAlign.Top;
this.listbox.ScrollBarButtonHeight = 15; this.smartLabel3.Wordwrap = false;
this.listbox.ScrollBarButtonImage = null;
this.listbox.ScrollBarButtonRound = 0;
this.listbox.ScrollBarStyle = SmartX.SmartListBox.ScrollBarStyles.ScrollBar;
this.listbox.ScrollButtonHeight = 30;
this.listbox.ScrollButtonWidth = 30;
// //
// smartLabel4
// //
// this.smartLabel4.BackGround = this.smartGroupBox1;
this.listbox.ScrollDownButton.BackGround = null; this.smartLabel4.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(87)))), ((int)(((byte)(92)))), ((int)(((byte)(118)))));
this.listbox.ScrollDownButton.BackGroundColor = System.Drawing.Color.LightBlue; this.smartLabel4.BorderColor = System.Drawing.Color.Black;
this.listbox.ScrollDownButton.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165))))); this.smartLabel4.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
this.listbox.ScrollDownButton.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129))))); this.smartLabel4.LineSpacing = 0F;
this.listbox.ScrollDownButton.ButtonImageAutoSize = false; this.smartLabel4.Location = new System.Drawing.Point(19, 45);
this.listbox.ScrollDownButton.ButtonStyle = SmartX.SmartButton.ButtonStyles.Flat; this.smartLabel4.Name = "smartLabel4";
this.listbox.ScrollDownButton.ButtonText = "▼"; this.smartLabel4.OverlapOptimize = true;
this.listbox.ScrollDownButton.ColorKeySamplePosition = new System.Drawing.Point(0, 0); this.smartLabel4.PasswordChar = '\0';
this.listbox.ScrollDownButton.GroupID = 0; this.smartLabel4.Radius = 3;
this.listbox.ScrollDownButton.ImageDisable = null; this.smartLabel4.RoundRectFillColor = System.Drawing.Color.LightBlue;
this.listbox.ScrollDownButton.ImageDown = null; this.smartLabel4.Size = new System.Drawing.Size(307, 23);
this.listbox.ScrollDownButton.ImageUp = null; this.smartLabel4.TabIndex = 88;
this.listbox.ScrollDownButton.Location = new System.Drawing.Point(524, 492); this.smartLabel4.Text = " List";
this.listbox.ScrollDownButton.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; this.smartLabel4.TextColor = System.Drawing.Color.White;
this.listbox.ScrollDownButton.Name = "SmartListBox_m_butScrollDown"; this.smartLabel4.TextColorDisable = System.Drawing.Color.Gray;
this.listbox.ScrollDownButton.NestedClickEventPrevent = false; this.smartLabel4.TextHAlign = SmartX.SmartLabel.TextHorAlign.Left;
this.listbox.ScrollDownButton.OutlinePixel = 1; this.smartLabel4.TextVAlign = SmartX.SmartLabel.TextVerAlign.Top;
this.listbox.ScrollDownButton.OverlapOptimize = true; this.smartLabel4.Wordwrap = true;
this.listbox.ScrollDownButton.RepeatInterval = 200;
this.listbox.ScrollDownButton.RepeatIntervalAccelerate = null;
this.listbox.ScrollDownButton.RoundSize = 10;
this.listbox.ScrollDownButton.SafeInterval = 200;
this.listbox.ScrollDownButton.Size = new System.Drawing.Size(30, 30);
this.listbox.ScrollDownButton.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.listbox.ScrollDownButton.TabIndex = 0;
this.listbox.ScrollDownButton.Text = null;
this.listbox.ScrollDownButton.TextColor = System.Drawing.Color.White;
this.listbox.ScrollDownButton.TextColorDisable = System.Drawing.Color.Gray;
this.listbox.ScrollDownButton.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255)))));
this.listbox.ScrollDownButton.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.listbox.ScrollDownButton.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.listbox.ScrollStep = 1;
//
//
//
this.listbox.ScrollUpButton.BackGround = null;
this.listbox.ScrollUpButton.BackGroundColor = System.Drawing.Color.LightBlue;
this.listbox.ScrollUpButton.ButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(58)))), ((int)(((byte)(110)))), ((int)(((byte)(165)))));
this.listbox.ScrollUpButton.ButtonDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(76)))), ((int)(((byte)(129)))));
this.listbox.ScrollUpButton.ButtonImageAutoSize = false;
this.listbox.ScrollUpButton.ButtonStyle = SmartX.SmartButton.ButtonStyles.Flat;
this.listbox.ScrollUpButton.ButtonText = "▲";
this.listbox.ScrollUpButton.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.listbox.ScrollUpButton.GroupID = 0;
this.listbox.ScrollUpButton.ImageDisable = null;
this.listbox.ScrollUpButton.ImageDown = null;
this.listbox.ScrollUpButton.ImageUp = null;
this.listbox.ScrollUpButton.Location = new System.Drawing.Point(524, 2);
this.listbox.ScrollUpButton.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.listbox.ScrollUpButton.Name = "SmartListBox_m_butScrollUp";
this.listbox.ScrollUpButton.NestedClickEventPrevent = false;
this.listbox.ScrollUpButton.OutlinePixel = 1;
this.listbox.ScrollUpButton.OverlapOptimize = true;
this.listbox.ScrollUpButton.RepeatInterval = 200;
this.listbox.ScrollUpButton.RepeatIntervalAccelerate = null;
this.listbox.ScrollUpButton.RoundSize = 10;
this.listbox.ScrollUpButton.SafeInterval = 200;
this.listbox.ScrollUpButton.Size = new System.Drawing.Size(30, 30);
this.listbox.ScrollUpButton.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.listbox.ScrollUpButton.TabIndex = 1;
this.listbox.ScrollUpButton.Text = null;
this.listbox.ScrollUpButton.TextColor = System.Drawing.Color.White;
this.listbox.ScrollUpButton.TextColorDisable = System.Drawing.Color.Gray;
this.listbox.ScrollUpButton.TextDownColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(238)))), ((int)(((byte)(255)))));
this.listbox.ScrollUpButton.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.listbox.ScrollUpButton.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.listbox.SelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(130)))), ((int)(((byte)(156)))), ((int)(((byte)(184)))));
this.listbox.SelectFilled = true;
this.listbox.SelectItemIndex = -1;
this.listbox.SelectTextColor = System.Drawing.Color.White;
this.listbox.SeparationlineColor1 = System.Drawing.Color.FromArgb(((int)(((byte)(125)))), ((int)(((byte)(125)))), ((int)(((byte)(125)))));
this.listbox.SeparationlineColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(201)))), ((int)(((byte)(210)))), ((int)(((byte)(224)))));
this.listbox.SeparationLineStyle = SmartX.SmartListBox.SEPARATIONLINETYPES.FixedSingle;
this.listbox.SeparationlineVisibleBottom = true;
this.listbox.SeparationlineVisibleTop = true;
this.listbox.Size = new System.Drawing.Size(540, 524);
this.listbox.TabIndex = 82;
this.listbox.Text = "smartListBox1";
this.listbox.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
this.listbox.TextColorDisable = System.Drawing.Color.Gray;
// //
// ControlMenuLogHistory // ControlMenuLogHistory
// //
@ -330,9 +331,9 @@
private System.Windows.Forms.TreeView treeView; private System.Windows.Forms.TreeView treeView;
private SmartX.SmartLabel smartLabel4; private SmartX.SmartLabel smartLabel4;
private SmartX.SmartLabel smartLabel3; private SmartX.SmartLabel smartLabel3;
private SmartX.SmartLabel smartLabel1; private SmartX.SmartLabel labelFileName;
private SmartX.SmartButton buttonBackup; private SmartX.SmartButton buttonBackup;
private SmartX.SmartLabel labelCount; private SmartX.SmartLabel labelCount;
private SmartX.SmartListBox listbox; private SmartX.SmartListBox listBox;
} }
} }

View File

@ -72,7 +72,7 @@ namespace INT_PT002.Controls
long lineNum = this.smartFile1.StringType.GetCount(); long lineNum = this.smartFile1.StringType.GetCount();
for (int i = 1; i < lineNum; i++) for (int i = 1; i < lineNum; i++)
{ {
this.listbox.AddItem(this.smartFile1.StringType.ReadBuffer(i)); this.listBox.AddItem(this.smartFile1.StringType.ReadBuffer(i));
} }
} }
catch catch
@ -211,6 +211,7 @@ namespace INT_PT002.Controls
#region Event Handler #region Event Handler
private void treeViewHistory_AfterSelect(object sender, TreeViewEventArgs e) private void treeViewHistory_AfterSelect(object sender, TreeViewEventArgs e)
{ {
this.labelFileName.Text = e.Node.Text;
this.LoadFile(this.ParentForm.ParentForm.PathDataHistoryFolder + this.treeView.SelectedNode.FullPath); this.LoadFile(this.ParentForm.ParentForm.PathDataHistoryFolder + this.treeView.SelectedNode.FullPath);
} }
#endregion #endregion

File diff suppressed because it is too large Load Diff

View File

@ -33,6 +33,8 @@ namespace INT_PT002.Controls
this.ParentForm = parent; this.ParentForm = parent;
this.Initialize(); this.Initialize();
this.timer.Start();
} }
#endregion #endregion
@ -260,12 +262,26 @@ namespace INT_PT002.Controls
public void DisplayRefresh() public void DisplayRefresh()
{ {
DateTime currentTime = DateTime.Now;
this.ParentForm.ParentForm.CurrentSystemStatus.CurrentDisplayMode = Define.E_DisplayModeStore.Information; this.ParentForm.ParentForm.CurrentSystemStatus.CurrentDisplayMode = Define.E_DisplayModeStore.Information;
this.ParentForm.ParentForm.SetDisplayMode(Define.E_EquipmentMode.Menu); this.ParentForm.ParentForm.SetDisplayMode(Define.E_EquipmentMode.Menu);
this.smartKeyboard1.Hide(); this.smartKeyboard1.Hide();
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Read, CommunicationID.MainBoard, CommunicationAddress._1502_ProgramVersion, ""); this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Read, CommunicationID.MainBoard, CommunicationAddress._1502_ProgramVersion, "");
this.labelCurrentTime.Text = currentTime.ToString("yyyy-MM-dd HH:mm:ss");
this.upDownYear.Value = currentTime.Year;
this.upDownMonth.Value = currentTime.Month;
this.upDownDate.Value = currentTime.Day;
this.upDownHour.Value = currentTime.Hour;
this.upDownMinute.Value = currentTime.Minute;
if(this.timer.IsStart == true)
this.timer.Start();
this.buttonSave.Visible = false;
} }
#endregion #endregion
@ -331,6 +347,42 @@ namespace INT_PT002.Controls
this.DisplayProgramUpdateCheck(dr); this.DisplayProgramUpdateCheck(dr);
} }
private void buttonTimeSetting_Click(object sender, EventArgs e)
{
if (this.timer.IsStart == true)
this.timer.Stop();
this.buttonSave.Visible = true;
}
private void buttonSave_Click(object sender, EventArgs e)
{
DateTime time;
try
{
time = new DateTime(int.Parse(this.upDownYear.Value.ToString()), int.Parse(this.upDownMonth.Value.ToString()),
int.Parse(this.upDownDate.Value.ToString()), int.Parse(this.upDownHour.Value.ToString()), int.Parse(this.upDownMinute.Value.ToString()), 00);
}
catch
{
this.DisplayRefresh();
return;
}
this.ParentForm.ParentForm.SetCurrentTime(time);
this.timer.Start();
this.buttonSave.Visible = false;
}
private void timer_Tick(object sender, EventArgs e)
{
DateTime currentTime = DateTime.Now;
this.labelCurrentTime.Text = currentTime.ToString("yyyy-MM-dd HH:mm:ss");
this.upDownHour.Value = currentTime.Hour;
this.upDownMinute.Value = currentTime.Minute;
this.ParentForm.ParentForm.ChildFormMainDisplay.UpdateDisplayTime();
}
#endregion #endregion
} }
} }

View File

@ -532,6 +532,12 @@
rkJggg== rkJggg==
</value> </value>
</data> </data>
<metadata name="timer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>37</value>
</metadata>
<metadata name="$this.FormFactorShadowProperty" xml:space="preserve"> <metadata name="$this.FormFactorShadowProperty" xml:space="preserve">
<value>WEBPAD</value> <value>WEBPAD</value>
</metadata> </metadata>

View File

@ -36,6 +36,7 @@
this.timer = new System.Windows.Forms.Timer(); this.timer = new System.Windows.Forms.Timer();
this.smartFileIO = new SmartX.SmartFile(); this.smartFileIO = new SmartX.SmartFile();
this.timer1 = new System.Windows.Forms.Timer(); this.timer1 = new System.Windows.Forms.Timer();
this.smartConfigs = new SmartX.SmartConfigs();
this.SuspendLayout(); this.SuspendLayout();
// //
// smartForm1 // smartForm1
@ -117,6 +118,7 @@
private System.Windows.Forms.Timer timer; private System.Windows.Forms.Timer timer;
private SmartX.SmartFile smartFileIO; private SmartX.SmartFile smartFileIO;
private System.Windows.Forms.Timer timer1; private System.Windows.Forms.Timer timer1;
private SmartX.SmartConfigs smartConfigs;
} }
} }

View File

@ -350,6 +350,15 @@ namespace INT_PT002.Forms
} }
} }
/// <summary>
/// Set Time
/// </summary>
/// <param name="mode"></param>
public void SetCurrentTime(DateTime time)
{
this.smartConfigs.ControlPanel.SetSystemDateTime(time);
}
#region SmartFile #region SmartFile
public void OpenSmartFileIO() public void OpenSmartFileIO()
{ {

View File

@ -224,6 +224,9 @@
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>582, 17</value> <value>582, 17</value>
</metadata> </metadata>
<metadata name="smartConfigs.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>669, 17</value>
</metadata>
<metadata name="$this.FormFactorShadowProperty" xml:space="preserve"> <metadata name="$this.FormFactorShadowProperty" xml:space="preserve">
<value>WEBPAD</value> <value>WEBPAD</value>
</metadata> </metadata>