초기 커밋.

This commit is contained in:
2025-12-19 13:59:34 +09:00
parent 1c0b03f88c
commit 79fea6964b
184 changed files with 94471 additions and 0 deletions

374
LFP_Manager/Forms/FmxChangePw.Designer.cs generated Normal file
View File

@@ -0,0 +1,374 @@
namespace LFP_Manager.Forms
{
partial class FmxChangePw
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
this.RbMaster = new System.Windows.Forms.RadioButton();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.RbEngineer = new System.Windows.Forms.RadioButton();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
this.RbTechnician = new System.Windows.Forms.RadioButton();
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
this.LbCurrentLevel = new DevExpress.XtraLayout.SimpleLabelItem();
this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup();
this.TePW = new DevExpress.XtraEditors.TextEdit();
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlGroup3 = new DevExpress.XtraLayout.LayoutControlGroup();
this.BtnApply = new DevExpress.XtraEditors.SimpleButton();
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
this.BtnClose = new DevExpress.XtraEditors.SimpleButton();
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
this.TmrDisplay = new System.Windows.Forms.Timer(this.components);
this.RbUser = new System.Windows.Forms.RadioButton();
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.LbCurrentLevel)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.TePW.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.RbUser);
this.layoutControl1.Controls.Add(this.BtnClose);
this.layoutControl1.Controls.Add(this.BtnApply);
this.layoutControl1.Controls.Add(this.TePW);
this.layoutControl1.Controls.Add(this.RbTechnician);
this.layoutControl1.Controls.Add(this.RbEngineer);
this.layoutControl1.Controls.Add(this.RbMaster);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 0);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(751, 0, 650, 400);
this.layoutControl1.Root = this.Root;
this.layoutControl1.Size = new System.Drawing.Size(500, 233);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// Root
//
this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.Root.GroupBordersVisible = false;
this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.emptySpaceItem1,
this.layoutControlGroup1,
this.layoutControlGroup2,
this.layoutControlGroup3,
this.layoutControlItem5,
this.layoutControlItem6});
this.Root.Name = "Root";
this.Root.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.Root.Size = new System.Drawing.Size(500, 233);
this.Root.TextVisible = false;
//
// emptySpaceItem1
//
this.emptySpaceItem1.AllowHotTrack = false;
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 176);
this.emptySpaceItem1.Name = "emptySpaceItem1";
this.emptySpaceItem1.Size = new System.Drawing.Size(498, 16);
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
//
// layoutControlGroup1
//
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem2,
this.layoutControlItem1,
this.layoutControlItem3,
this.layoutControlItem7});
this.layoutControlGroup1.Location = new System.Drawing.Point(0, 61);
this.layoutControlGroup1.Name = "layoutControlGroup1";
this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup1.Size = new System.Drawing.Size(498, 58);
this.layoutControlGroup1.Text = "Control Level";
//
// RbMaster
//
this.RbMaster.Location = new System.Drawing.Point(7, 89);
this.RbMaster.Name = "RbMaster";
this.RbMaster.Size = new System.Drawing.Size(118, 25);
this.RbMaster.TabIndex = 8;
this.RbMaster.TabStop = true;
this.RbMaster.Text = "Master";
this.RbMaster.UseVisualStyleBackColor = true;
this.RbMaster.CheckedChanged += new System.EventHandler(this.RbMaster_CheckedChanged);
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.RbMaster;
this.layoutControlItem2.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem2.MaxSize = new System.Drawing.Size(0, 29);
this.layoutControlItem2.MinSize = new System.Drawing.Size(24, 29);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(122, 29);
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// RbEngineer
//
this.RbEngineer.Location = new System.Drawing.Point(129, 89);
this.RbEngineer.Name = "RbEngineer";
this.RbEngineer.Size = new System.Drawing.Size(119, 25);
this.RbEngineer.TabIndex = 9;
this.RbEngineer.TabStop = true;
this.RbEngineer.Text = "Engineer";
this.RbEngineer.UseVisualStyleBackColor = true;
this.RbEngineer.CheckedChanged += new System.EventHandler(this.RbEngineer_CheckedChanged);
//
// layoutControlItem1
//
this.layoutControlItem1.Control = this.RbEngineer;
this.layoutControlItem1.Location = new System.Drawing.Point(122, 0);
this.layoutControlItem1.MinSize = new System.Drawing.Size(24, 29);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(123, 29);
this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
// RbTechnician
//
this.RbTechnician.Location = new System.Drawing.Point(252, 89);
this.RbTechnician.Name = "RbTechnician";
this.RbTechnician.Size = new System.Drawing.Size(118, 25);
this.RbTechnician.TabIndex = 10;
this.RbTechnician.TabStop = true;
this.RbTechnician.Text = "Technician";
this.RbTechnician.UseVisualStyleBackColor = true;
this.RbTechnician.CheckedChanged += new System.EventHandler(this.RbTechnician_CheckedChanged);
//
// layoutControlItem3
//
this.layoutControlItem3.Control = this.RbTechnician;
this.layoutControlItem3.Location = new System.Drawing.Point(245, 0);
this.layoutControlItem3.MinSize = new System.Drawing.Size(24, 29);
this.layoutControlItem3.Name = "layoutControlItem3";
this.layoutControlItem3.Size = new System.Drawing.Size(122, 29);
this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem3.TextVisible = false;
//
// LbCurrentLevel
//
this.LbCurrentLevel.AllowHotTrack = false;
this.LbCurrentLevel.Location = new System.Drawing.Point(0, 0);
this.LbCurrentLevel.MaxSize = new System.Drawing.Size(0, 32);
this.LbCurrentLevel.MinSize = new System.Drawing.Size(126, 32);
this.LbCurrentLevel.Name = "LbCurrentLevel";
this.LbCurrentLevel.Size = new System.Drawing.Size(490, 32);
this.LbCurrentLevel.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.LbCurrentLevel.Text = " Current Level: ";
this.LbCurrentLevel.TextSize = new System.Drawing.Size(85, 14);
//
// layoutControlGroup2
//
this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.LbCurrentLevel});
this.layoutControlGroup2.Location = new System.Drawing.Point(0, 0);
this.layoutControlGroup2.Name = "layoutControlGroup2";
this.layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup2.Size = new System.Drawing.Size(498, 61);
this.layoutControlGroup2.Text = "Control Level";
//
// TePW
//
this.TePW.Location = new System.Drawing.Point(7, 147);
this.TePW.Name = "TePW";
this.TePW.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 11F);
this.TePW.Properties.Appearance.Options.UseFont = true;
this.TePW.Properties.Appearance.Options.UseTextOptions = true;
this.TePW.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.TePW.Properties.PasswordChar = '*';
this.TePW.Size = new System.Drawing.Size(486, 24);
this.TePW.StyleController = this.layoutControl1;
this.TePW.TabIndex = 11;
//
// layoutControlItem4
//
this.layoutControlItem4.Control = this.TePW;
this.layoutControlItem4.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem4.MaxSize = new System.Drawing.Size(0, 28);
this.layoutControlItem4.MinSize = new System.Drawing.Size(171, 28);
this.layoutControlItem4.Name = "layoutControlItem4";
this.layoutControlItem4.Size = new System.Drawing.Size(490, 28);
this.layoutControlItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem4.TextVisible = false;
//
// layoutControlGroup3
//
this.layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem4});
this.layoutControlGroup3.Location = new System.Drawing.Point(0, 119);
this.layoutControlGroup3.Name = "layoutControlGroup3";
this.layoutControlGroup3.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup3.Size = new System.Drawing.Size(498, 57);
this.layoutControlGroup3.Text = "Password";
//
// BtnApply
//
this.BtnApply.Location = new System.Drawing.Point(3, 195);
this.BtnApply.Name = "BtnApply";
this.BtnApply.Size = new System.Drawing.Size(245, 35);
this.BtnApply.StyleController = this.layoutControl1;
this.BtnApply.TabIndex = 12;
this.BtnApply.Text = "Apply";
this.BtnApply.Click += new System.EventHandler(this.BtnApply_Click);
//
// layoutControlItem5
//
this.layoutControlItem5.Control = this.BtnApply;
this.layoutControlItem5.Location = new System.Drawing.Point(0, 192);
this.layoutControlItem5.MinSize = new System.Drawing.Size(89, 26);
this.layoutControlItem5.Name = "layoutControlItem5";
this.layoutControlItem5.Size = new System.Drawing.Size(249, 39);
this.layoutControlItem5.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem5.TextVisible = false;
//
// BtnClose
//
this.BtnClose.Location = new System.Drawing.Point(252, 195);
this.BtnClose.Name = "BtnClose";
this.BtnClose.Size = new System.Drawing.Size(245, 35);
this.BtnClose.StyleController = this.layoutControl1;
this.BtnClose.TabIndex = 13;
this.BtnClose.Text = "Close";
this.BtnClose.Click += new System.EventHandler(this.BtnClose_Click);
//
// layoutControlItem6
//
this.layoutControlItem6.Control = this.BtnClose;
this.layoutControlItem6.Location = new System.Drawing.Point(249, 192);
this.layoutControlItem6.MinSize = new System.Drawing.Size(89, 26);
this.layoutControlItem6.Name = "layoutControlItem6";
this.layoutControlItem6.Size = new System.Drawing.Size(249, 39);
this.layoutControlItem6.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem6.TextVisible = false;
//
// TmrDisplay
//
this.TmrDisplay.Interval = 500;
this.TmrDisplay.Tick += new System.EventHandler(this.TmrDisplay_Tick);
//
// RbUser
//
this.RbUser.Location = new System.Drawing.Point(374, 89);
this.RbUser.Name = "RbUser";
this.RbUser.Size = new System.Drawing.Size(119, 25);
this.RbUser.TabIndex = 14;
this.RbUser.TabStop = true;
this.RbUser.Text = "User";
this.RbUser.UseVisualStyleBackColor = true;
this.RbUser.CheckedChanged += new System.EventHandler(this.RbUser_CheckedChanged);
//
// layoutControlItem7
//
this.layoutControlItem7.Control = this.RbUser;
this.layoutControlItem7.Location = new System.Drawing.Point(367, 0);
this.layoutControlItem7.Name = "layoutControlItem7";
this.layoutControlItem7.Size = new System.Drawing.Size(123, 29);
this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem7.TextVisible = false;
//
// FmxLevelConfig
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(500, 233);
this.Controls.Add(this.layoutControl1);
this.IconOptions.Image = global::LFP_Manager.Properties.Resources.AMO_LOGO1;
this.Name = "FmxLevelConfig";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Control Level Config";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FmxLevelConfig_FormClosing);
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.LbCurrentLevel)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.TePW.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraLayout.LayoutControlGroup Root;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
private System.Windows.Forms.RadioButton RbTechnician;
private System.Windows.Forms.RadioButton RbEngineer;
private System.Windows.Forms.RadioButton RbMaster;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup2;
private DevExpress.XtraLayout.SimpleLabelItem LbCurrentLevel;
private DevExpress.XtraEditors.TextEdit TePW;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup3;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
private DevExpress.XtraEditors.SimpleButton BtnClose;
private DevExpress.XtraEditors.SimpleButton BtnApply;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
private System.Windows.Forms.Timer TmrDisplay;
private System.Windows.Forms.RadioButton RbUser;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
}
}

View File

@@ -0,0 +1,184 @@
using DevExpress.XtraEditors;
using DevExpress.XtraPrinting.Native.LayoutAdjustment;
using LFP_Manager.DataStructure;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace LFP_Manager.Forms
{
public partial class FmxChangePw : DevExpress.XtraEditors.XtraForm
{
#region VARIABLES
CommConfig Config;
#endregion
#region CONSTRUCTORS
public FmxChangePw()
{
InitializeComponent();
}
public FmxChangePw(CommConfig aConfig)
{
InitializeComponent();
Config = aConfig;
switch (Config.ControlLevel)
{
case 0: // User Level
RbUser.Checked = true;
break;
case 1: // Technician Level
RbTechnician.Checked = true;
break;
case 2: // Engineer Level
RbEngineer.Checked = true;
break;
case 3: // Master Level
RbMaster.Checked = true;
break;
default: // User Level
RbUser.Checked = true;
break;
}
DisplayStatus();
TmrDisplay.Start();
}
#endregion
#region BUTTON EVENT
private void BtnClose_Click(object sender, EventArgs e)
{
Close();
}
private void BtnApply_Click(object sender, EventArgs e)
{
string cPW = TePW.Text;
if (RbMaster.Checked)
{
if (Config.MasterPw == cPW)
{
Config.ControlLevel = 3;
MessageBox.Show("Complete change to Mastar Level", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("Wrong password for Master Level", "Fail", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
else if (RbEngineer.Checked)
{
if (Config.EngineerPw == cPW)
{
Config.ControlLevel = 2;
MessageBox.Show("Complete change to Engineer Level", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("Wrong password for Engineer Level", "Fail", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
else if (RbTechnician.Checked)
{
if (Config.TechnicianPw == cPW)
{
Config.ControlLevel = 1;
MessageBox.Show("Complete change to Technician Level", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("Wrong password for Technician Level", "Fail", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
else if (RbUser.Checked)
{
Config.ControlLevel = 0;
}
}
#endregion
#region DISPLAY FUNCTION
private void DisplayStatus()
{
switch (Config.ControlLevel)
{
case 0: // User Level
LbCurrentLevel.Text = " Current Level: User Level";
break;
case 1: // Technician Level
LbCurrentLevel.Text = " Current Level: Technician Level";
break;
case 2: // Engineer Level
LbCurrentLevel.Text = " Current Level: Engineer Level";
break;
case 3: // Master Level
LbCurrentLevel.Text = " Current Level: Master Level";
break;
}
}
#endregion
#region FORM EVENT
private void FmxLevelConfig_FormClosing(object sender, FormClosingEventArgs e)
{
TmrDisplay.Stop();
}
#endregion
#region COMPONENT EVENT
private void RbMaster_CheckedChanged(object sender, EventArgs e)
{
if (RbMaster.Checked)
{
TePW.Enabled = true;
}
TePW.Text = "";
}
private void RbEngineer_CheckedChanged(object sender, EventArgs e)
{
if (RbEngineer.Checked)
{
TePW.Enabled = true;
}
TePW.Text = "";
}
private void RbTechnician_CheckedChanged(object sender, EventArgs e)
{
if (RbTechnician.Checked)
{
TePW.Enabled = true;
}
TePW.Text = "";
}
private void RbUser_CheckedChanged(object sender, EventArgs e)
{
if (RbUser.Checked)
{
TePW.Enabled = false;
}
TePW.Text = "";
}
#endregion
#region TIMER EVENT
private void TmrDisplay_Tick(object sender, EventArgs e)
{
DisplayStatus();
}
#endregion
}
}

View File

@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="TmrDisplay.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View File

@@ -0,0 +1,195 @@
namespace LFP_Manager.Forms
{
partial class FmxInformation
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
this.LbDeviceId = new DevExpress.XtraEditors.LabelControl();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
this.BtnClose = new DevExpress.XtraEditors.SimpleButton();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem();
this.TmrDisplay = new System.Windows.Forms.Timer(this.components);
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.BtnClose);
this.layoutControl1.Controls.Add(this.LbDeviceId);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 0);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1018, 137, 650, 400);
this.layoutControl1.Root = this.Root;
this.layoutControl1.Size = new System.Drawing.Size(767, 398);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// Root
//
this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.Root.GroupBordersVisible = false;
this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.emptySpaceItem1,
this.layoutControlItem2,
this.layoutControlGroup1});
this.Root.Name = "Root";
this.Root.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.Root.Size = new System.Drawing.Size(767, 398);
this.Root.TextVisible = false;
//
// LbDeviceId
//
this.LbDeviceId.Appearance.Font = new System.Drawing.Font("Tahoma", 20F);
this.LbDeviceId.Appearance.Options.UseFont = true;
this.LbDeviceId.Appearance.Options.UseTextOptions = true;
this.LbDeviceId.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Top;
this.LbDeviceId.Location = new System.Drawing.Point(23, 28);
this.LbDeviceId.Name = "LbDeviceId";
this.LbDeviceId.Size = new System.Drawing.Size(737, 332);
this.LbDeviceId.StyleController = this.layoutControl1;
this.LbDeviceId.TabIndex = 4;
this.LbDeviceId.Text = "-";
//
// layoutControlItem1
//
this.layoutControlItem1.Control = this.LbDeviceId;
this.layoutControlItem1.Location = new System.Drawing.Point(16, 0);
this.layoutControlItem1.MinSize = new System.Drawing.Size(74, 18);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(741, 336);
this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
// emptySpaceItem1
//
this.emptySpaceItem1.AllowHotTrack = false;
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 365);
this.emptySpaceItem1.MinSize = new System.Drawing.Size(104, 24);
this.emptySpaceItem1.Name = "emptySpaceItem1";
this.emptySpaceItem1.Size = new System.Drawing.Size(648, 31);
this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
//
// BtnClose
//
this.BtnClose.Location = new System.Drawing.Point(651, 368);
this.BtnClose.Name = "BtnClose";
this.BtnClose.Size = new System.Drawing.Size(113, 27);
this.BtnClose.StyleController = this.layoutControl1;
this.BtnClose.TabIndex = 5;
this.BtnClose.Text = "Close";
this.BtnClose.Click += new System.EventHandler(this.BtnClose_Click);
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.BtnClose;
this.layoutControlItem2.Location = new System.Drawing.Point(648, 365);
this.layoutControlItem2.MinSize = new System.Drawing.Size(89, 26);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(117, 31);
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// emptySpaceItem2
//
this.emptySpaceItem2.AllowHotTrack = false;
this.emptySpaceItem2.Location = new System.Drawing.Point(0, 0);
this.emptySpaceItem2.MinSize = new System.Drawing.Size(10, 24);
this.emptySpaceItem2.Name = "emptySpaceItem2";
this.emptySpaceItem2.Size = new System.Drawing.Size(16, 336);
this.emptySpaceItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
//
// TmrDisplay
//
this.TmrDisplay.Enabled = true;
this.TmrDisplay.Interval = 500;
this.TmrDisplay.Tick += new System.EventHandler(this.TmrDisplay_Tick);
//
// layoutControlGroup1
//
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.emptySpaceItem2,
this.layoutControlItem1});
this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0);
this.layoutControlGroup1.Name = "layoutControlGroup1";
this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup1.Size = new System.Drawing.Size(765, 365);
this.layoutControlGroup1.Text = "Device ID";
//
// FmxInformation
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(767, 398);
this.Controls.Add(this.layoutControl1);
this.IconOptions.Image = global::LFP_Manager.Properties.Resources.AMO_LOGO1;
this.Name = "FmxInformation";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Information";
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraLayout.LayoutControlGroup Root;
private DevExpress.XtraEditors.SimpleButton BtnClose;
private DevExpress.XtraEditors.LabelControl LbDeviceId;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2;
private System.Windows.Forms.Timer TmrDisplay;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
}
}

View File

@@ -0,0 +1,66 @@
using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using LFP_Manager.DataStructure;
namespace LFP_Manager.Forms
{
public partial class FmxInformation : DevExpress.XtraEditors.XtraForm
{
#region VARIABLES
private int sID;
private CommConfig Config;
private CsDeviceData.DeviceModuleData SystemData;
#endregion
#region CONSTRUCTORS
public FmxInformation(int SystemID, CommConfig aConfig, ref CsDeviceData.DeviceModuleData mData)
{
InitializeComponent();
sID = SystemID;
Config = aConfig;
SystemData = mData;
}
#endregion
#region TIMER EVENT
private void TmrDisplay_Tick(object sender, EventArgs e)
{
DisplayDeviceID();
}
#endregion
#region DISPLAY FUNCTION
private void DisplayDeviceID()
{
string tmp = "";
tmp += string.Format("Vendor Name : {0}\r\n", SystemData.Information.VendorName);
tmp += string.Format("Product Code : {0}\r\n", SystemData.Information.ProductCode);
tmp += string.Format("Major Minor Revision : {0}\r\n", SystemData.Information.MajorMinorRev);
tmp += string.Format("Model Name : {0}\r\n", SystemData.Information.ModelName);
tmp += string.Format("Hardware Serial Number : {0}\r\n", SystemData.Information.HwSerialNumber);
tmp += string.Format("Hardware Product Revision : {0}\r\n", SystemData.Information.HwProductRev);
tmp += string.Format("Manufacturing date : {0}\r\n", SystemData.Information.ManufacturingDate);
tmp += string.Format("SW Product Revision : {0}\r\n", SystemData.Information.SwProductRev);
LbDeviceId.Text = tmp;
}
#endregion
#region BUTTON EVENT
private void BtnClose_Click(object sender, EventArgs e)
{
Close();
}
#endregion
}
}

View File

@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="TmrDisplay.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View File

@@ -0,0 +1,374 @@
namespace LFP_Manager.Forms
{
partial class FmxLevelConfig
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
this.RbMaster = new System.Windows.Forms.RadioButton();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.RbEngineer = new System.Windows.Forms.RadioButton();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
this.RbTechnician = new System.Windows.Forms.RadioButton();
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
this.LbCurrentLevel = new DevExpress.XtraLayout.SimpleLabelItem();
this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup();
this.TePW = new DevExpress.XtraEditors.TextEdit();
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlGroup3 = new DevExpress.XtraLayout.LayoutControlGroup();
this.BtnApply = new DevExpress.XtraEditors.SimpleButton();
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
this.BtnClose = new DevExpress.XtraEditors.SimpleButton();
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
this.TmrDisplay = new System.Windows.Forms.Timer(this.components);
this.RbUser = new System.Windows.Forms.RadioButton();
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.LbCurrentLevel)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.TePW.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.RbUser);
this.layoutControl1.Controls.Add(this.BtnClose);
this.layoutControl1.Controls.Add(this.BtnApply);
this.layoutControl1.Controls.Add(this.TePW);
this.layoutControl1.Controls.Add(this.RbTechnician);
this.layoutControl1.Controls.Add(this.RbEngineer);
this.layoutControl1.Controls.Add(this.RbMaster);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 0);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(751, 0, 650, 400);
this.layoutControl1.Root = this.Root;
this.layoutControl1.Size = new System.Drawing.Size(500, 233);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// Root
//
this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.Root.GroupBordersVisible = false;
this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.emptySpaceItem1,
this.layoutControlGroup1,
this.layoutControlGroup2,
this.layoutControlGroup3,
this.layoutControlItem5,
this.layoutControlItem6});
this.Root.Name = "Root";
this.Root.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.Root.Size = new System.Drawing.Size(500, 233);
this.Root.TextVisible = false;
//
// emptySpaceItem1
//
this.emptySpaceItem1.AllowHotTrack = false;
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 176);
this.emptySpaceItem1.Name = "emptySpaceItem1";
this.emptySpaceItem1.Size = new System.Drawing.Size(498, 16);
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
//
// layoutControlGroup1
//
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem2,
this.layoutControlItem1,
this.layoutControlItem3,
this.layoutControlItem7});
this.layoutControlGroup1.Location = new System.Drawing.Point(0, 61);
this.layoutControlGroup1.Name = "layoutControlGroup1";
this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup1.Size = new System.Drawing.Size(498, 58);
this.layoutControlGroup1.Text = "Control Level";
//
// RbMaster
//
this.RbMaster.Location = new System.Drawing.Point(7, 89);
this.RbMaster.Name = "RbMaster";
this.RbMaster.Size = new System.Drawing.Size(118, 25);
this.RbMaster.TabIndex = 8;
this.RbMaster.TabStop = true;
this.RbMaster.Text = "Master";
this.RbMaster.UseVisualStyleBackColor = true;
this.RbMaster.CheckedChanged += new System.EventHandler(this.RbMaster_CheckedChanged);
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.RbMaster;
this.layoutControlItem2.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem2.MaxSize = new System.Drawing.Size(0, 29);
this.layoutControlItem2.MinSize = new System.Drawing.Size(24, 29);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(122, 29);
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// RbEngineer
//
this.RbEngineer.Location = new System.Drawing.Point(129, 89);
this.RbEngineer.Name = "RbEngineer";
this.RbEngineer.Size = new System.Drawing.Size(119, 25);
this.RbEngineer.TabIndex = 9;
this.RbEngineer.TabStop = true;
this.RbEngineer.Text = "Engineer";
this.RbEngineer.UseVisualStyleBackColor = true;
this.RbEngineer.CheckedChanged += new System.EventHandler(this.RbEngineer_CheckedChanged);
//
// layoutControlItem1
//
this.layoutControlItem1.Control = this.RbEngineer;
this.layoutControlItem1.Location = new System.Drawing.Point(122, 0);
this.layoutControlItem1.MinSize = new System.Drawing.Size(24, 29);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(123, 29);
this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
// RbTechnician
//
this.RbTechnician.Location = new System.Drawing.Point(252, 89);
this.RbTechnician.Name = "RbTechnician";
this.RbTechnician.Size = new System.Drawing.Size(118, 25);
this.RbTechnician.TabIndex = 10;
this.RbTechnician.TabStop = true;
this.RbTechnician.Text = "Technician";
this.RbTechnician.UseVisualStyleBackColor = true;
this.RbTechnician.CheckedChanged += new System.EventHandler(this.RbTechnician_CheckedChanged);
//
// layoutControlItem3
//
this.layoutControlItem3.Control = this.RbTechnician;
this.layoutControlItem3.Location = new System.Drawing.Point(245, 0);
this.layoutControlItem3.MinSize = new System.Drawing.Size(24, 29);
this.layoutControlItem3.Name = "layoutControlItem3";
this.layoutControlItem3.Size = new System.Drawing.Size(122, 29);
this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem3.TextVisible = false;
//
// LbCurrentLevel
//
this.LbCurrentLevel.AllowHotTrack = false;
this.LbCurrentLevel.Location = new System.Drawing.Point(0, 0);
this.LbCurrentLevel.MaxSize = new System.Drawing.Size(0, 32);
this.LbCurrentLevel.MinSize = new System.Drawing.Size(126, 32);
this.LbCurrentLevel.Name = "LbCurrentLevel";
this.LbCurrentLevel.Size = new System.Drawing.Size(490, 32);
this.LbCurrentLevel.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.LbCurrentLevel.Text = " Current Level: ";
this.LbCurrentLevel.TextSize = new System.Drawing.Size(85, 14);
//
// layoutControlGroup2
//
this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.LbCurrentLevel});
this.layoutControlGroup2.Location = new System.Drawing.Point(0, 0);
this.layoutControlGroup2.Name = "layoutControlGroup2";
this.layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup2.Size = new System.Drawing.Size(498, 61);
this.layoutControlGroup2.Text = "Control Level";
//
// TePW
//
this.TePW.Location = new System.Drawing.Point(7, 147);
this.TePW.Name = "TePW";
this.TePW.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 11F);
this.TePW.Properties.Appearance.Options.UseFont = true;
this.TePW.Properties.Appearance.Options.UseTextOptions = true;
this.TePW.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.TePW.Properties.PasswordChar = '*';
this.TePW.Size = new System.Drawing.Size(486, 24);
this.TePW.StyleController = this.layoutControl1;
this.TePW.TabIndex = 11;
//
// layoutControlItem4
//
this.layoutControlItem4.Control = this.TePW;
this.layoutControlItem4.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem4.MaxSize = new System.Drawing.Size(0, 28);
this.layoutControlItem4.MinSize = new System.Drawing.Size(171, 28);
this.layoutControlItem4.Name = "layoutControlItem4";
this.layoutControlItem4.Size = new System.Drawing.Size(490, 28);
this.layoutControlItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem4.TextVisible = false;
//
// layoutControlGroup3
//
this.layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem4});
this.layoutControlGroup3.Location = new System.Drawing.Point(0, 119);
this.layoutControlGroup3.Name = "layoutControlGroup3";
this.layoutControlGroup3.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup3.Size = new System.Drawing.Size(498, 57);
this.layoutControlGroup3.Text = "Password";
//
// BtnApply
//
this.BtnApply.Location = new System.Drawing.Point(3, 195);
this.BtnApply.Name = "BtnApply";
this.BtnApply.Size = new System.Drawing.Size(245, 35);
this.BtnApply.StyleController = this.layoutControl1;
this.BtnApply.TabIndex = 12;
this.BtnApply.Text = "Apply";
this.BtnApply.Click += new System.EventHandler(this.BtnApply_Click);
//
// layoutControlItem5
//
this.layoutControlItem5.Control = this.BtnApply;
this.layoutControlItem5.Location = new System.Drawing.Point(0, 192);
this.layoutControlItem5.MinSize = new System.Drawing.Size(89, 26);
this.layoutControlItem5.Name = "layoutControlItem5";
this.layoutControlItem5.Size = new System.Drawing.Size(249, 39);
this.layoutControlItem5.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem5.TextVisible = false;
//
// BtnClose
//
this.BtnClose.Location = new System.Drawing.Point(252, 195);
this.BtnClose.Name = "BtnClose";
this.BtnClose.Size = new System.Drawing.Size(245, 35);
this.BtnClose.StyleController = this.layoutControl1;
this.BtnClose.TabIndex = 13;
this.BtnClose.Text = "Close";
this.BtnClose.Click += new System.EventHandler(this.BtnClose_Click);
//
// layoutControlItem6
//
this.layoutControlItem6.Control = this.BtnClose;
this.layoutControlItem6.Location = new System.Drawing.Point(249, 192);
this.layoutControlItem6.MinSize = new System.Drawing.Size(89, 26);
this.layoutControlItem6.Name = "layoutControlItem6";
this.layoutControlItem6.Size = new System.Drawing.Size(249, 39);
this.layoutControlItem6.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem6.TextVisible = false;
//
// TmrDisplay
//
this.TmrDisplay.Interval = 500;
this.TmrDisplay.Tick += new System.EventHandler(this.TmrDisplay_Tick);
//
// RbUser
//
this.RbUser.Location = new System.Drawing.Point(374, 89);
this.RbUser.Name = "RbUser";
this.RbUser.Size = new System.Drawing.Size(119, 25);
this.RbUser.TabIndex = 14;
this.RbUser.TabStop = true;
this.RbUser.Text = "User";
this.RbUser.UseVisualStyleBackColor = true;
this.RbUser.CheckedChanged += new System.EventHandler(this.RbUser_CheckedChanged);
//
// layoutControlItem7
//
this.layoutControlItem7.Control = this.RbUser;
this.layoutControlItem7.Location = new System.Drawing.Point(367, 0);
this.layoutControlItem7.Name = "layoutControlItem7";
this.layoutControlItem7.Size = new System.Drawing.Size(123, 29);
this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem7.TextVisible = false;
//
// FmxLevelConfig
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(500, 233);
this.Controls.Add(this.layoutControl1);
this.IconOptions.Image = global::LFP_Manager.Properties.Resources.AMO_LOGO1;
this.Name = "FmxLevelConfig";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Control Level Config";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FmxLevelConfig_FormClosing);
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.LbCurrentLevel)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.TePW.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraLayout.LayoutControlGroup Root;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
private System.Windows.Forms.RadioButton RbTechnician;
private System.Windows.Forms.RadioButton RbEngineer;
private System.Windows.Forms.RadioButton RbMaster;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup2;
private DevExpress.XtraLayout.SimpleLabelItem LbCurrentLevel;
private DevExpress.XtraEditors.TextEdit TePW;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup3;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
private DevExpress.XtraEditors.SimpleButton BtnClose;
private DevExpress.XtraEditors.SimpleButton BtnApply;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
private System.Windows.Forms.Timer TmrDisplay;
private System.Windows.Forms.RadioButton RbUser;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
}
}

View File

@@ -0,0 +1,184 @@
using DevExpress.XtraEditors;
using DevExpress.XtraPrinting.Native.LayoutAdjustment;
using LFP_Manager.DataStructure;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace LFP_Manager.Forms
{
public partial class FmxLevelConfig : DevExpress.XtraEditors.XtraForm
{
#region VARIABLES
CommConfig Config;
#endregion
#region CONSTRUCTORS
public FmxLevelConfig()
{
InitializeComponent();
}
public FmxLevelConfig(CommConfig aConfig)
{
InitializeComponent();
Config = aConfig;
switch (Config.ControlLevel)
{
case 0: // User Level
RbUser.Checked = true;
break;
case 1: // Technician Level
RbTechnician.Checked = true;
break;
case 2: // Engineer Level
RbEngineer.Checked = true;
break;
case 3: // Master Level
RbMaster.Checked = true;
break;
default: // User Level
RbUser.Checked = true;
break;
}
DisplayStatus();
TmrDisplay.Start();
}
#endregion
#region BUTTON EVENT
private void BtnClose_Click(object sender, EventArgs e)
{
Close();
}
private void BtnApply_Click(object sender, EventArgs e)
{
string cPW = TePW.Text;
if (RbMaster.Checked)
{
if (Config.MasterPw == cPW)
{
Config.ControlLevel = 3;
MessageBox.Show("Complete change to Mastar Level", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("Wrong password for Master Level", "Fail", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
else if (RbEngineer.Checked)
{
if (Config.EngineerPw == cPW)
{
Config.ControlLevel = 2;
MessageBox.Show("Complete change to Engineer Level", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("Wrong password for Engineer Level", "Fail", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
else if (RbTechnician.Checked)
{
if (Config.TechnicianPw == cPW)
{
Config.ControlLevel = 1;
MessageBox.Show("Complete change to Technician Level", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show("Wrong password for Technician Level", "Fail", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
else if (RbUser.Checked)
{
Config.ControlLevel = 0;
}
}
#endregion
#region DISPLAY FUNCTION
private void DisplayStatus()
{
switch (Config.ControlLevel)
{
case 0: // User Level
LbCurrentLevel.Text = " Current Level: User Level";
break;
case 1: // Technician Level
LbCurrentLevel.Text = " Current Level: Technician Level";
break;
case 2: // Engineer Level
LbCurrentLevel.Text = " Current Level: Engineer Level";
break;
case 3: // Master Level
LbCurrentLevel.Text = " Current Level: Master Level";
break;
}
}
#endregion
#region FORM EVENT
private void FmxLevelConfig_FormClosing(object sender, FormClosingEventArgs e)
{
TmrDisplay.Stop();
}
#endregion
#region COMPONENT EVENT
private void RbMaster_CheckedChanged(object sender, EventArgs e)
{
if (RbMaster.Checked)
{
TePW.Enabled = true;
}
TePW.Text = "";
}
private void RbEngineer_CheckedChanged(object sender, EventArgs e)
{
if (RbEngineer.Checked)
{
TePW.Enabled = true;
}
TePW.Text = "";
}
private void RbTechnician_CheckedChanged(object sender, EventArgs e)
{
if (RbTechnician.Checked)
{
TePW.Enabled = true;
}
TePW.Text = "";
}
private void RbUser_CheckedChanged(object sender, EventArgs e)
{
if (RbUser.Checked)
{
TePW.Enabled = false;
}
TePW.Text = "";
}
#endregion
#region TIMER EVENT
private void TmrDisplay_Tick(object sender, EventArgs e)
{
DisplayStatus();
}
#endregion
}
}

View File

@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="TmrDisplay.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

238
LFP_Manager/Forms/FmxPassword.Designer.cs generated Normal file
View File

@@ -0,0 +1,238 @@
namespace LFP_Manager.Forms
{
partial class FmxPassword
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.BtnCancel = new DevExpress.XtraEditors.SimpleButton();
this.BtnOk = new DevExpress.XtraEditors.SimpleButton();
this.TeResetPW = new DevExpress.XtraEditors.TextEdit();
this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem();
this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem();
this.emptySpaceItem4 = new DevExpress.XtraLayout.EmptySpaceItem();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.TeResetPW.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.BtnCancel);
this.layoutControl1.Controls.Add(this.BtnOk);
this.layoutControl1.Controls.Add(this.TeResetPW);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 0);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(804, 0, 650, 400);
this.layoutControl1.Root = this.Root;
this.layoutControl1.Size = new System.Drawing.Size(500, 206);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// BtnCancel
//
this.BtnCancel.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
this.BtnCancel.Appearance.Options.UseFont = true;
this.BtnCancel.Location = new System.Drawing.Point(246, 169);
this.BtnCancel.Name = "BtnCancel";
this.BtnCancel.Size = new System.Drawing.Size(251, 34);
this.BtnCancel.StyleController = this.layoutControl1;
this.BtnCancel.TabIndex = 6;
this.BtnCancel.Text = "CANCEL";
this.BtnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
//
// BtnOk
//
this.BtnOk.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
this.BtnOk.Appearance.Options.UseFont = true;
this.BtnOk.Location = new System.Drawing.Point(3, 169);
this.BtnOk.Name = "BtnOk";
this.BtnOk.Size = new System.Drawing.Size(239, 34);
this.BtnOk.StyleController = this.layoutControl1;
this.BtnOk.TabIndex = 5;
this.BtnOk.Text = "OK";
this.BtnOk.Click += new System.EventHandler(this.BtnOk_Click);
//
// TeResetPW
//
this.TeResetPW.Location = new System.Drawing.Point(111, 71);
this.TeResetPW.Name = "TeResetPW";
this.TeResetPW.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F);
this.TeResetPW.Properties.Appearance.Options.UseFont = true;
this.TeResetPW.Properties.Appearance.Options.UseTextOptions = true;
this.TeResetPW.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.TeResetPW.Properties.PasswordChar = '*';
this.TeResetPW.Size = new System.Drawing.Size(282, 26);
this.TeResetPW.StyleController = this.layoutControl1;
this.TeResetPW.TabIndex = 4;
//
// Root
//
this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.Root.GroupBordersVisible = false;
this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.emptySpaceItem1,
this.layoutControlItem2,
this.layoutControlItem3,
this.layoutControlItem1,
this.emptySpaceItem2,
this.emptySpaceItem3,
this.emptySpaceItem4});
this.Root.Name = "Root";
this.Root.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.Root.Size = new System.Drawing.Size(500, 206);
this.Root.TextVisible = false;
//
// emptySpaceItem1
//
this.emptySpaceItem1.AllowHotTrack = false;
this.emptySpaceItem1.Location = new System.Drawing.Point(394, 68);
this.emptySpaceItem1.MinSize = new System.Drawing.Size(104, 24);
this.emptySpaceItem1.Name = "emptySpaceItem1";
this.emptySpaceItem1.Size = new System.Drawing.Size(104, 30);
this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.BtnOk;
this.layoutControlItem2.Location = new System.Drawing.Point(0, 166);
this.layoutControlItem2.MinSize = new System.Drawing.Size(42, 26);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(243, 38);
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// layoutControlItem3
//
this.layoutControlItem3.Control = this.BtnCancel;
this.layoutControlItem3.Location = new System.Drawing.Point(243, 166);
this.layoutControlItem3.MinSize = new System.Drawing.Size(56, 26);
this.layoutControlItem3.Name = "layoutControlItem3";
this.layoutControlItem3.Size = new System.Drawing.Size(255, 38);
this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem3.TextVisible = false;
//
// layoutControlItem1
//
this.layoutControlItem1.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 12F);
this.layoutControlItem1.AppearanceItemCaption.Options.UseFont = true;
this.layoutControlItem1.Control = this.TeResetPW;
this.layoutControlItem1.Location = new System.Drawing.Point(108, 68);
this.layoutControlItem1.MinSize = new System.Drawing.Size(188, 30);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(286, 30);
this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem1.Text = "Password";
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
// emptySpaceItem2
//
this.emptySpaceItem2.AllowHotTrack = false;
this.emptySpaceItem2.Location = new System.Drawing.Point(0, 0);
this.emptySpaceItem2.MinSize = new System.Drawing.Size(104, 24);
this.emptySpaceItem2.Name = "emptySpaceItem2";
this.emptySpaceItem2.Size = new System.Drawing.Size(498, 68);
this.emptySpaceItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
//
// emptySpaceItem3
//
this.emptySpaceItem3.AllowHotTrack = false;
this.emptySpaceItem3.Location = new System.Drawing.Point(0, 98);
this.emptySpaceItem3.MinSize = new System.Drawing.Size(104, 24);
this.emptySpaceItem3.Name = "emptySpaceItem3";
this.emptySpaceItem3.Size = new System.Drawing.Size(498, 68);
this.emptySpaceItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0);
//
// emptySpaceItem4
//
this.emptySpaceItem4.AllowHotTrack = false;
this.emptySpaceItem4.Location = new System.Drawing.Point(0, 68);
this.emptySpaceItem4.Name = "emptySpaceItem4";
this.emptySpaceItem4.Size = new System.Drawing.Size(108, 30);
this.emptySpaceItem4.TextSize = new System.Drawing.Size(0, 0);
//
// FmxPassword
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(500, 206);
this.Controls.Add(this.layoutControl1);
this.IconOptions.Image = global::LFP_Manager.Properties.Resources.AMO_LOGO1;
this.Name = "FmxPassword";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Reset Password";
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.TeResetPW.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraLayout.LayoutControlGroup Root;
private DevExpress.XtraEditors.SimpleButton BtnOk;
private DevExpress.XtraEditors.TextEdit TeResetPW;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
private DevExpress.XtraEditors.SimpleButton BtnCancel;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem3;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem4;
}
}

View File

@@ -0,0 +1,63 @@
using DevExpress.Pdf.Native;
using DevExpress.XtraEditors;
using LFP_Manager.DataStructure;
using LFP_Manager.Function;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace LFP_Manager.Forms
{
public partial class FmxPassword : DevExpress.XtraEditors.XtraForm
{
#region DELEGATE
public delegate void PasswordResut(int result);
#endregion
#region VARIABLES
private CommConfig Config;
public event PasswordResut OnResult = null;
#endregion
#region CONSTRUCTORS
public FmxPassword(CommConfig aConfig)
{
InitializeComponent();
Config = aConfig;
}
#endregion
#region BUTTON EVENT
private void BtnCancel_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
Close();
}
private void BtnOk_Click(object sender, EventArgs e)
{
string resetPW = TeResetPW.Text;
if (resetPW == "Delta Electronics")
{
this.DialogResult = DialogResult.OK;
Close();
}
else
{
MessageBox.Show("Wrong Password - Try again", "Result", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
#endregion
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,481 @@
namespace LFP_Manager.Forms
{
partial class FmxPasswordChange
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.BtnResetPW = new DevExpress.XtraEditors.SimpleButton();
this.BtnCancel = new DevExpress.XtraEditors.SimpleButton();
this.BtnOk = new DevExpress.XtraEditors.SimpleButton();
this.TeCurrentPW = new DevExpress.XtraEditors.TextEdit();
this.TeNewPW = new DevExpress.XtraEditors.TextEdit();
this.TeCornfirmPW = new DevExpress.XtraEditors.TextEdit();
this.RbMaster = new System.Windows.Forms.RadioButton();
this.RbEngineer = new System.Windows.Forms.RadioButton();
this.RbTechnician = new System.Windows.Forms.RadioButton();
this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
this.simpleLabelItem1 = new DevExpress.XtraLayout.SimpleLabelItem();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
this.simpleLabelItem2 = new DevExpress.XtraLayout.SimpleLabelItem();
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
this.simpleLabelItem3 = new DevExpress.XtraLayout.SimpleLabelItem();
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.TeCurrentPW.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.TeNewPW.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.TeCornfirmPW.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.BtnResetPW);
this.layoutControl1.Controls.Add(this.BtnCancel);
this.layoutControl1.Controls.Add(this.BtnOk);
this.layoutControl1.Controls.Add(this.TeCurrentPW);
this.layoutControl1.Controls.Add(this.TeNewPW);
this.layoutControl1.Controls.Add(this.TeCornfirmPW);
this.layoutControl1.Controls.Add(this.RbMaster);
this.layoutControl1.Controls.Add(this.RbEngineer);
this.layoutControl1.Controls.Add(this.RbTechnician);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 0);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(804, 0, 650, 400);
this.layoutControl1.Root = this.Root;
this.layoutControl1.Size = new System.Drawing.Size(500, 265);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// BtnResetPW
//
this.BtnResetPW.Location = new System.Drawing.Point(412, 180);
this.BtnResetPW.Name = "BtnResetPW";
this.BtnResetPW.Size = new System.Drawing.Size(85, 39);
this.BtnResetPW.StyleController = this.layoutControl1;
this.BtnResetPW.TabIndex = 15;
this.BtnResetPW.Text = "Reset";
this.BtnResetPW.Click += new System.EventHandler(this.BtnResetPW_Click);
//
// BtnCancel
//
this.BtnCancel.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
this.BtnCancel.Appearance.Options.UseFont = true;
this.BtnCancel.Location = new System.Drawing.Point(252, 223);
this.BtnCancel.Name = "BtnCancel";
this.BtnCancel.Size = new System.Drawing.Size(245, 39);
this.BtnCancel.StyleController = this.layoutControl1;
this.BtnCancel.TabIndex = 6;
this.BtnCancel.Text = "CANCEL";
this.BtnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
//
// BtnOk
//
this.BtnOk.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
this.BtnOk.Appearance.Options.UseFont = true;
this.BtnOk.Location = new System.Drawing.Point(3, 223);
this.BtnOk.Name = "BtnOk";
this.BtnOk.Size = new System.Drawing.Size(245, 39);
this.BtnOk.StyleController = this.layoutControl1;
this.BtnOk.TabIndex = 5;
this.BtnOk.Text = "Apply";
this.BtnOk.Click += new System.EventHandler(this.BtnOk_Click);
//
// TeCurrentPW
//
this.TeCurrentPW.Location = new System.Drawing.Point(133, 86);
this.TeCurrentPW.Name = "TeCurrentPW";
this.TeCurrentPW.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F);
this.TeCurrentPW.Properties.Appearance.Options.UseFont = true;
this.TeCurrentPW.Properties.Appearance.Options.UseTextOptions = true;
this.TeCurrentPW.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.TeCurrentPW.Properties.PasswordChar = '*';
this.TeCurrentPW.Size = new System.Drawing.Size(360, 26);
this.TeCurrentPW.StyleController = this.layoutControl1;
this.TeCurrentPW.TabIndex = 4;
//
// TeNewPW
//
this.TeNewPW.Location = new System.Drawing.Point(133, 116);
this.TeNewPW.Name = "TeNewPW";
this.TeNewPW.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F);
this.TeNewPW.Properties.Appearance.Options.UseFont = true;
this.TeNewPW.Properties.Appearance.Options.UseTextOptions = true;
this.TeNewPW.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.TeNewPW.Properties.PasswordChar = '*';
this.TeNewPW.Size = new System.Drawing.Size(360, 26);
this.TeNewPW.StyleController = this.layoutControl1;
this.TeNewPW.TabIndex = 4;
//
// TeCornfirmPW
//
this.TeCornfirmPW.Location = new System.Drawing.Point(133, 146);
this.TeCornfirmPW.Name = "TeCornfirmPW";
this.TeCornfirmPW.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F);
this.TeCornfirmPW.Properties.Appearance.Options.UseFont = true;
this.TeCornfirmPW.Properties.Appearance.Options.UseTextOptions = true;
this.TeCornfirmPW.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.TeCornfirmPW.Properties.PasswordChar = '*';
this.TeCornfirmPW.Size = new System.Drawing.Size(360, 26);
this.TeCornfirmPW.StyleController = this.layoutControl1;
this.TeCornfirmPW.TabIndex = 4;
//
// RbMaster
//
this.RbMaster.Location = new System.Drawing.Point(7, 28);
this.RbMaster.Name = "RbMaster";
this.RbMaster.Size = new System.Drawing.Size(159, 25);
this.RbMaster.TabIndex = 8;
this.RbMaster.TabStop = true;
this.RbMaster.Text = "Master";
this.RbMaster.UseVisualStyleBackColor = true;
//
// RbEngineer
//
this.RbEngineer.Location = new System.Drawing.Point(170, 28);
this.RbEngineer.Name = "RbEngineer";
this.RbEngineer.Size = new System.Drawing.Size(159, 25);
this.RbEngineer.TabIndex = 9;
this.RbEngineer.TabStop = true;
this.RbEngineer.Text = "Engineer";
this.RbEngineer.UseVisualStyleBackColor = true;
//
// RbTechnician
//
this.RbTechnician.Location = new System.Drawing.Point(333, 28);
this.RbTechnician.Name = "RbTechnician";
this.RbTechnician.Size = new System.Drawing.Size(160, 25);
this.RbTechnician.TabIndex = 10;
this.RbTechnician.TabStop = true;
this.RbTechnician.Text = "Technician";
this.RbTechnician.UseVisualStyleBackColor = true;
//
// Root
//
this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.Root.GroupBordersVisible = false;
this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.emptySpaceItem1,
this.layoutControlItem2,
this.layoutControlItem3,
this.layoutControlGroup2,
this.layoutControlGroup1,
this.layoutControlItem10});
this.Root.Name = "Root";
this.Root.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.Root.Size = new System.Drawing.Size(500, 265);
this.Root.TextVisible = false;
//
// emptySpaceItem1
//
this.emptySpaceItem1.AllowHotTrack = false;
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 177);
this.emptySpaceItem1.MinSize = new System.Drawing.Size(104, 24);
this.emptySpaceItem1.Name = "emptySpaceItem1";
this.emptySpaceItem1.Size = new System.Drawing.Size(409, 43);
this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.BtnOk;
this.layoutControlItem2.Location = new System.Drawing.Point(0, 220);
this.layoutControlItem2.MinSize = new System.Drawing.Size(27, 26);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(249, 43);
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// layoutControlItem3
//
this.layoutControlItem3.Control = this.BtnCancel;
this.layoutControlItem3.Location = new System.Drawing.Point(249, 220);
this.layoutControlItem3.MinSize = new System.Drawing.Size(56, 26);
this.layoutControlItem3.Name = "layoutControlItem3";
this.layoutControlItem3.Size = new System.Drawing.Size(249, 43);
this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem3.TextVisible = false;
//
// layoutControlGroup2
//
this.layoutControlGroup2.CustomizationFormText = "Control Level";
this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem6,
this.layoutControlItem7,
this.layoutControlItem8});
this.layoutControlGroup2.Location = new System.Drawing.Point(0, 0);
this.layoutControlGroup2.Name = "layoutControlGroup2";
this.layoutControlGroup2.OptionsItemText.TextToControlDistance = 3;
this.layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup2.Size = new System.Drawing.Size(498, 58);
this.layoutControlGroup2.Text = "Control Level";
//
// layoutControlItem6
//
this.layoutControlItem6.Control = this.RbMaster;
this.layoutControlItem6.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
this.layoutControlItem6.CustomizationFormText = "layoutControlItem2";
this.layoutControlItem6.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem6.MaxSize = new System.Drawing.Size(0, 29);
this.layoutControlItem6.MinSize = new System.Drawing.Size(24, 29);
this.layoutControlItem6.Name = "layoutControlItem6";
this.layoutControlItem6.Size = new System.Drawing.Size(163, 29);
this.layoutControlItem6.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem6.Text = "layoutControlItem2";
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem6.TextVisible = false;
//
// layoutControlItem7
//
this.layoutControlItem7.Control = this.RbEngineer;
this.layoutControlItem7.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
this.layoutControlItem7.CustomizationFormText = "layoutControlItem1";
this.layoutControlItem7.Location = new System.Drawing.Point(163, 0);
this.layoutControlItem7.MinSize = new System.Drawing.Size(24, 29);
this.layoutControlItem7.Name = "layoutControlItem7";
this.layoutControlItem7.Size = new System.Drawing.Size(163, 29);
this.layoutControlItem7.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem7.Text = "layoutControlItem1";
this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem7.TextVisible = false;
//
// layoutControlItem8
//
this.layoutControlItem8.Control = this.RbTechnician;
this.layoutControlItem8.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
this.layoutControlItem8.CustomizationFormText = "layoutControlItem3";
this.layoutControlItem8.Location = new System.Drawing.Point(326, 0);
this.layoutControlItem8.MinSize = new System.Drawing.Size(24, 29);
this.layoutControlItem8.Name = "layoutControlItem8";
this.layoutControlItem8.Size = new System.Drawing.Size(164, 29);
this.layoutControlItem8.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem8.Text = "layoutControlItem3";
this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem8.TextVisible = false;
//
// layoutControlGroup1
//
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.simpleLabelItem1,
this.layoutControlItem1,
this.simpleLabelItem2,
this.layoutControlItem4,
this.simpleLabelItem3,
this.layoutControlItem5});
this.layoutControlGroup1.Location = new System.Drawing.Point(0, 58);
this.layoutControlGroup1.Name = "layoutControlGroup1";
this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup1.Size = new System.Drawing.Size(498, 119);
this.layoutControlGroup1.Text = "Password";
//
// simpleLabelItem1
//
this.simpleLabelItem1.AllowHotTrack = false;
this.simpleLabelItem1.Location = new System.Drawing.Point(0, 0);
this.simpleLabelItem1.MaxSize = new System.Drawing.Size(0, 30);
this.simpleLabelItem1.MinSize = new System.Drawing.Size(126, 30);
this.simpleLabelItem1.Name = "simpleLabelItem1";
this.simpleLabelItem1.Size = new System.Drawing.Size(126, 30);
this.simpleLabelItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.simpleLabelItem1.Text = " Current Password";
this.simpleLabelItem1.TextSize = new System.Drawing.Size(104, 14);
//
// layoutControlItem1
//
this.layoutControlItem1.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 12F);
this.layoutControlItem1.AppearanceItemCaption.Options.UseFont = true;
this.layoutControlItem1.Control = this.TeCurrentPW;
this.layoutControlItem1.Location = new System.Drawing.Point(126, 0);
this.layoutControlItem1.MinSize = new System.Drawing.Size(188, 30);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(364, 30);
this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem1.Text = "Password";
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
// simpleLabelItem2
//
this.simpleLabelItem2.AllowHotTrack = false;
this.simpleLabelItem2.Location = new System.Drawing.Point(0, 30);
this.simpleLabelItem2.MaxSize = new System.Drawing.Size(0, 30);
this.simpleLabelItem2.MinSize = new System.Drawing.Size(126, 30);
this.simpleLabelItem2.Name = "simpleLabelItem2";
this.simpleLabelItem2.Size = new System.Drawing.Size(126, 30);
this.simpleLabelItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.simpleLabelItem2.Text = " New Password";
this.simpleLabelItem2.TextSize = new System.Drawing.Size(104, 14);
//
// layoutControlItem4
//
this.layoutControlItem4.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 12F);
this.layoutControlItem4.AppearanceItemCaption.Options.UseFont = true;
this.layoutControlItem4.Control = this.TeNewPW;
this.layoutControlItem4.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
this.layoutControlItem4.CustomizationFormText = "Password";
this.layoutControlItem4.Location = new System.Drawing.Point(126, 30);
this.layoutControlItem4.MinSize = new System.Drawing.Size(188, 30);
this.layoutControlItem4.Name = "layoutControlItem4";
this.layoutControlItem4.Size = new System.Drawing.Size(364, 30);
this.layoutControlItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem4.Text = "Password";
this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem4.TextVisible = false;
//
// simpleLabelItem3
//
this.simpleLabelItem3.AllowHotTrack = false;
this.simpleLabelItem3.Location = new System.Drawing.Point(0, 60);
this.simpleLabelItem3.MaxSize = new System.Drawing.Size(0, 30);
this.simpleLabelItem3.MinSize = new System.Drawing.Size(126, 30);
this.simpleLabelItem3.Name = "simpleLabelItem3";
this.simpleLabelItem3.Size = new System.Drawing.Size(126, 30);
this.simpleLabelItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.simpleLabelItem3.Text = " Cornfirm Password";
this.simpleLabelItem3.TextSize = new System.Drawing.Size(104, 14);
//
// layoutControlItem5
//
this.layoutControlItem5.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 12F);
this.layoutControlItem5.AppearanceItemCaption.Options.UseFont = true;
this.layoutControlItem5.Control = this.TeCornfirmPW;
this.layoutControlItem5.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
this.layoutControlItem5.CustomizationFormText = "Password";
this.layoutControlItem5.Location = new System.Drawing.Point(126, 60);
this.layoutControlItem5.MinSize = new System.Drawing.Size(188, 30);
this.layoutControlItem5.Name = "layoutControlItem5";
this.layoutControlItem5.Size = new System.Drawing.Size(364, 30);
this.layoutControlItem5.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem5.Text = "Password";
this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem5.TextVisible = false;
//
// layoutControlItem10
//
this.layoutControlItem10.Control = this.BtnResetPW;
this.layoutControlItem10.Location = new System.Drawing.Point(409, 177);
this.layoutControlItem10.MinSize = new System.Drawing.Size(89, 26);
this.layoutControlItem10.Name = "layoutControlItem10";
this.layoutControlItem10.Size = new System.Drawing.Size(89, 43);
this.layoutControlItem10.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem10.TextVisible = false;
//
// FmxPasswordChange
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(500, 265);
this.Controls.Add(this.layoutControl1);
this.IconOptions.Image = global::LFP_Manager.Properties.Resources.AMO_LOGO1;
this.Name = "FmxPasswordChange";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Change Password";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FmxPassword_FormClosed);
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.TeCurrentPW.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.TeNewPW.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.TeCornfirmPW.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.simpleLabelItem3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraLayout.LayoutControlGroup Root;
private DevExpress.XtraEditors.SimpleButton BtnOk;
private DevExpress.XtraEditors.TextEdit TeCurrentPW;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
private DevExpress.XtraEditors.SimpleButton BtnCancel;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
private DevExpress.XtraEditors.TextEdit TeNewPW;
private DevExpress.XtraEditors.TextEdit TeCornfirmPW;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
private DevExpress.XtraLayout.SimpleLabelItem simpleLabelItem1;
private DevExpress.XtraLayout.SimpleLabelItem simpleLabelItem2;
private DevExpress.XtraLayout.SimpleLabelItem simpleLabelItem3;
private System.Windows.Forms.RadioButton RbMaster;
private System.Windows.Forms.RadioButton RbEngineer;
private System.Windows.Forms.RadioButton RbTechnician;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup2;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
private DevExpress.XtraEditors.SimpleButton BtnResetPW;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10;
}
}

View File

@@ -0,0 +1,149 @@
using DevExpress.Pdf.Native;
using DevExpress.XtraEditors;
using LFP_Manager.DataStructure;
using LFP_Manager.Function;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static DevExpress.XtraPrinting.Export.Pdf.PdfImageCache;
namespace LFP_Manager.Forms
{
public partial class FmxPasswordChange : DevExpress.XtraEditors.XtraForm
{
#region DELEGATE
public delegate void PasswordResut(int result);
#endregion
#region VARIABLES
private CommConfig Config;
private int result = -1;
public event PasswordResut OnResult = null;
#endregion
#region CONSTRUCTORS
public FmxPasswordChange(CommConfig aConfig)
{
InitializeComponent();
Config = aConfig;
}
#endregion
#region FORM EVENT
private void FmxPassword_FormClosed(object sender, FormClosedEventArgs e)
{
OnResult?.Invoke(result);
}
#endregion
#region BUTTON EVENT
private void BtnCancel_Click(object sender, EventArgs e)
{
Close();
}
private void BtnOk_Click(object sender, EventArgs e)
{
string sPW;
string currPW, newPW, cornfirmPW;
currPW = TeCurrentPW.Text;
newPW = TeNewPW.Text;
cornfirmPW = TeCornfirmPW.Text;
if (newPW.Length < 4)
{
MessageBox.Show("Too short new password (Min. Length 4)", "Result", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
if (RbMaster.Checked)
{
sPW = Config.MasterPw;
}
else if (RbEngineer.Checked)
{
sPW = Config.EngineerPw;
}
else if (RbTechnician.Checked)
{
sPW = Config.TechnicianPw;
}
else
{
sPW = "";
}
if (sPW != currPW)
{
MessageBox.Show("The current password is incorrect.", "Result", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
if (newPW != cornfirmPW)
{
MessageBox.Show("The new password and its confirmation do not match.", "Result", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
if (currPW == newPW)
{
MessageBox.Show("Your new password cannot be the same as your current password.", "Result", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
if (RbMaster.Checked)
{
Config.MasterPw = newPW;
}
else if (RbEngineer.Checked)
{
Config.EngineerPw = newPW;
}
else if (RbTechnician.Checked)
{
Config.TechnicianPw = newPW;
}
else
{
return;
}
csIniControlFunction.IniSave(Application.ExecutablePath, Config);
MessageBox.Show("Password changed successfully.", "Result", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void BtnResetPW_Click(object sender, EventArgs e)
{
foreach (Form frm in Application.OpenForms)
{
if (frm.Name == "FmxPassword")
{
frm.Activate();
return;
}
}
FmxPassword PasswordForm = new FmxPassword(Config);
if (PasswordForm.ShowDialog() == DialogResult.OK)
{
Config.MasterPw = "8003";
Config.EngineerPw = "7003";
Config.TechnicianPw = "6003";
csIniControlFunction.IniSave(Application.ExecutablePath, Config);
MessageBox.Show("Password reset successful.", "Result", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
}
}
#endregion
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,152 @@
namespace LFP_Manager.Forms
{
partial class fmxCalibration
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fmxCalibration));
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
this.ucCalibration1 = new LFP_Manager.Controls.ucCalibration();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
this.btnClose = new DevExpress.XtraEditors.SimpleButton();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.tmrDisplay = new System.Windows.Forms.Timer(this.components);
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.btnClose);
this.layoutControl1.Controls.Add(this.ucCalibration1);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 0);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(668, 306, 250, 350);
this.layoutControl1.Root = this.layoutControlGroup1;
this.layoutControl1.Size = new System.Drawing.Size(612, 485);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// layoutControlGroup1
//
this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup1.GroupBordersVisible = false;
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem1,
this.layoutControlItem2});
this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0);
this.layoutControlGroup1.Name = "layoutControlGroup1";
this.layoutControlGroup1.Size = new System.Drawing.Size(612, 485);
this.layoutControlGroup1.Text = "layoutControlGroup1";
this.layoutControlGroup1.TextVisible = false;
//
// ucCalibration1
//
this.ucCalibration1.Location = new System.Drawing.Point(12, 12);
this.ucCalibration1.Name = "ucCalibration1";
this.ucCalibration1.Size = new System.Drawing.Size(588, 423);
this.ucCalibration1.TabIndex = 4;
//
// layoutControlItem1
//
this.layoutControlItem1.Control = this.ucCalibration1;
this.layoutControlItem1.CustomizationFormText = "layoutControlItem1";
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem1.MinSize = new System.Drawing.Size(104, 24);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(592, 427);
this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem1.Text = "layoutControlItem1";
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextToControlDistance = 0;
this.layoutControlItem1.TextVisible = false;
//
// btnClose
//
this.btnClose.Location = new System.Drawing.Point(12, 439);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(588, 34);
this.btnClose.StyleController = this.layoutControl1;
this.btnClose.TabIndex = 5;
this.btnClose.Text = "Close";
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.btnClose;
this.layoutControlItem2.CustomizationFormText = "layoutControlItem2";
this.layoutControlItem2.Location = new System.Drawing.Point(0, 427);
this.layoutControlItem2.MinSize = new System.Drawing.Size(93, 26);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(592, 38);
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem2.Text = "layoutControlItem2";
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextToControlDistance = 0;
this.layoutControlItem2.TextVisible = false;
//
// tmrDisplay
//
this.tmrDisplay.Interval = 500;
this.tmrDisplay.Tick += new System.EventHandler(this.tmrDisplay_Tick);
//
// fmxCalibration
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(612, 485);
this.Controls.Add(this.layoutControl1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "fmxCalibration";
this.Text = "Calibration";
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
private DevExpress.XtraEditors.SimpleButton btnClose;
private Controls.ucCalibration ucCalibration1;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
private System.Windows.Forms.Timer tmrDisplay;
}
}

View File

@@ -0,0 +1,79 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using LFP_Manager.DataStructure;
using LFP_Manager.Function;
using LFP_Manager.Controls;
namespace LFP_Manager.Forms
{
public delegate void CalibUpdateEvent(object sendor);
public delegate void CalibCmdEvent(int sId, int mode, int flag, DeviceParamData aParam, DeviceCalibration aCalib);
public partial class fmxCalibration : DevExpress.XtraEditors.XtraForm
{
#region VARIABLES
int SystemId = 0;
DeviceParamData Param;
DeviceCalibration Calib;
public event CalibUpdateEvent OnUpdate = null;
public event CalibCmdEvent OnCommand = null;
#endregion
#region CONSTRUCTORS
public fmxCalibration()
{
InitializeComponent();
}
public fmxCalibration(int sId, DeviceCalibration aCalib)
{
InitializeComponent();
SystemId = sId;
Calib = aCalib;
tmrDisplay.Enabled = true;
}
#endregion
private void btnClose_Click(object sender, EventArgs e)
{
Close();
}
#region TIMER EVENT
private void tmrDisplay_Tick(object sender, EventArgs e)
{
if (OnUpdate != null)
{
OnUpdate(this);
}
}
#endregion
#region PUBLIC FUCTIONS
public void UpdateData(DeviceParamData aParam, DeviceCalibration aCalib)
{
Param = aParam;
Calib = aCalib;
}
#endregion
}
}

File diff suppressed because it is too large Load Diff

161
LFP_Manager/Forms/fmxAntiTheft.Designer.cs generated Normal file
View File

@@ -0,0 +1,161 @@
namespace LFP_Manager.Forms
{
partial class fmxAntiTheft
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fmxAntiTheft));
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.btnClose = new DevExpress.XtraEditors.SimpleButton();
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
this.tmrDisplay = new System.Windows.Forms.Timer(this.components);
this.AntiTheftCmd = new LFP_Manager.Controls.UcAntiTheftControl();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.AntiTheftCmd);
this.layoutControl1.Controls.Add(this.btnClose);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 0);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1265, 291, 250, 350);
this.layoutControl1.Root = this.layoutControlGroup1;
this.layoutControl1.Size = new System.Drawing.Size(858, 226);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// btnClose
//
this.btnClose.Location = new System.Drawing.Point(612, 200);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(242, 22);
this.btnClose.StyleController = this.layoutControl1;
this.btnClose.TabIndex = 5;
this.btnClose.Text = "Close";
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// layoutControlGroup1
//
this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup1.GroupBordersVisible = false;
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem2,
this.emptySpaceItem1,
this.layoutControlItem1});
this.layoutControlGroup1.Name = "Root";
this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 2, 2);
this.layoutControlGroup1.Size = new System.Drawing.Size(858, 226);
this.layoutControlGroup1.TextVisible = false;
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.btnClose;
this.layoutControlItem2.CustomizationFormText = "layoutControlItem2";
this.layoutControlItem2.Location = new System.Drawing.Point(608, 196);
this.layoutControlItem2.MinSize = new System.Drawing.Size(93, 26);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(246, 26);
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// emptySpaceItem1
//
this.emptySpaceItem1.AllowHotTrack = false;
this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1";
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 196);
this.emptySpaceItem1.Name = "emptySpaceItem1";
this.emptySpaceItem1.Size = new System.Drawing.Size(608, 26);
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
//
// tmrDisplay
//
this.tmrDisplay.Interval = 500;
this.tmrDisplay.Tick += new System.EventHandler(this.tmrDisplay_Tick);
//
// AntiTheftCmd
//
this.AntiTheftCmd.Location = new System.Drawing.Point(4, 4);
this.AntiTheftCmd.Name = "AntiTheftCmd";
this.AntiTheftCmd.Size = new System.Drawing.Size(850, 192);
this.AntiTheftCmd.TabIndex = 6;
this.AntiTheftCmd.Load += new System.EventHandler(this.AntiTheftCmd_Load);
//
// layoutControlItem1
//
this.layoutControlItem1.Control = this.AntiTheftCmd;
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(854, 196);
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
// fmxAntiTheft
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(858, 226);
this.Controls.Add(this.layoutControl1);
this.IconOptions.Icon = ((System.Drawing.Icon)(resources.GetObject("fmxAntiTheft.IconOptions.Icon")));
this.Name = "fmxAntiTheft";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Anti-Theft";
this.TopMost = true;
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
private DevExpress.XtraEditors.SimpleButton btnClose;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
private System.Windows.Forms.Timer tmrDisplay;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
private Controls.UcAntiTheftControl AntiTheftCmd;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
}
}

View File

@@ -0,0 +1,127 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using LFP_Manager.DataStructure;
using LFP_Manager.Function;
using LFP_Manager.Controls;
using LFP_Manager.Threads;
namespace LFP_Manager.Forms
{
public delegate void AntiTheftUpdateEvent(object sendor);
public delegate void AntiTheftCmdEvent(int sId, int mode, int index, int flag,
ref CsDeviceData.DeviceModuleData.DeviceParamData aParam,
ref CsDeviceData.DeviceModuleData.DeviceCalibration aCalib);
public partial class fmxAntiTheft : DevExpress.XtraEditors.XtraForm
{
#region VARIABLES
int SystemId = 0;
CsDeviceData.DeviceModuleData SystemData;
CsDeviceData.DeviceModuleData.DeviceParamData Param;
CsDeviceData.DeviceModuleData.DeviceCalibration Calib;
public event AntiTheftUpdateEvent OnUpdate = null;
public event AntiTheftCmdEvent OnCommand = null;
public event SendDataUartEvent OnSendUartData = null;
#endregion
#region CONSTRUCTORS
public fmxAntiTheft(int sId, CsDeviceData.DeviceModuleData.DeviceCalibration aCalib)
{
InitializeComponent();
InitComponent();
SystemId = sId;
Calib = aCalib;
AntiTheftCmd.UpdateData(SystemId, Calib);
AntiTheftCmd.OnSendUartData += SetWriteData;
tmrDisplay.Enabled = true;
}
public void InitComponent()
{
// Cell Voltage Calibration
AntiTheftCmd.OnCommand += OnCmdEvent;
}
#endregion
#region COMMAND EVENT
private void SetWriteData(ushort WriteAddr, byte[] WriteData, bool RelyFlag, int type)
{
OnSendUartData?.Invoke(WriteAddr, WriteData, RelyFlag, type);
}
private void OnCmdEvent(int mode, int index, int flag,
ref CsDeviceData.DeviceModuleData.DeviceParamData aParam,
ref CsDeviceData.DeviceModuleData.DeviceCalibration aCalib)
{
OnCommand?.Invoke(SystemId, mode, index, flag, ref aParam, ref aCalib);
}
#endregion
#region BUTTON EVENT
private void btnClose_Click(object sender, EventArgs e)
{
Close();
}
#endregion
#region TIMER EVENT
private void tmrDisplay_Tick(object sender, EventArgs e)
{
DisplayValue();
if (OnUpdate != null)
{
OnUpdate(this);
}
}
#endregion
#region DISPLAY DATA
private void DisplayValue()
{
// Cell Voltage Parameter
AntiTheftCmd.UpdateData(SystemId, Calib);
}
#endregion
#region PUBLIC FUCTIONS
public void UpdateData(CsDeviceData.DeviceModuleData.DeviceParamData aParam,
CsDeviceData.DeviceModuleData.DeviceCalibration aCalib,
CsDeviceData.DeviceModuleData mData)
{
SystemData = mData;
Param = aParam;
Calib = aCalib;
}
#endregion
private void AntiTheftCmd_Load(object sender, EventArgs e)
{
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,162 @@
namespace LFP_Manager.Forms
{
partial class fmxCalibration
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fmxCalibration));
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.btnClose = new DevExpress.XtraEditors.SimpleButton();
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
this.tmrDisplay = new System.Windows.Forms.Timer(this.components);
this.ucCalibrationConfig = new LFP_Manager.Controls.ucCalibration();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.btnClose);
this.layoutControl1.Controls.Add(this.ucCalibrationConfig);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 0);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1265, 291, 250, 350);
this.layoutControl1.Root = this.layoutControlGroup1;
this.layoutControl1.Size = new System.Drawing.Size(814, 444);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// btnClose
//
this.btnClose.Location = new System.Drawing.Point(714, 403);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(96, 37);
this.btnClose.StyleController = this.layoutControl1;
this.btnClose.TabIndex = 5;
this.btnClose.Text = "Close";
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// layoutControlGroup1
//
this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup1.GroupBordersVisible = false;
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem1,
this.layoutControlItem2,
this.emptySpaceItem1});
this.layoutControlGroup1.Name = "Root";
this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 2, 2);
this.layoutControlGroup1.Size = new System.Drawing.Size(814, 444);
this.layoutControlGroup1.TextVisible = false;
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.btnClose;
this.layoutControlItem2.CustomizationFormText = "layoutControlItem2";
this.layoutControlItem2.Location = new System.Drawing.Point(710, 399);
this.layoutControlItem2.MinSize = new System.Drawing.Size(93, 26);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(100, 41);
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// emptySpaceItem1
//
this.emptySpaceItem1.AllowHotTrack = false;
this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1";
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 399);
this.emptySpaceItem1.Name = "emptySpaceItem1";
this.emptySpaceItem1.Size = new System.Drawing.Size(710, 41);
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
//
// tmrDisplay
//
this.tmrDisplay.Interval = 500;
this.tmrDisplay.Tick += new System.EventHandler(this.tmrDisplay_Tick);
//
// ucCalibrationConfig
//
this.ucCalibrationConfig.Location = new System.Drawing.Point(4, 4);
this.ucCalibrationConfig.Name = "ucCalibrationConfig";
this.ucCalibrationConfig.Size = new System.Drawing.Size(806, 395);
this.ucCalibrationConfig.TabIndex = 4;
//
// layoutControlItem1
//
this.layoutControlItem1.Control = this.ucCalibrationConfig;
this.layoutControlItem1.CustomizationFormText = "layoutControlItem1";
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem1.MinSize = new System.Drawing.Size(104, 24);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(810, 399);
this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
// fmxCalibration
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(814, 444);
this.Controls.Add(this.layoutControl1);
this.IconOptions.Icon = ((System.Drawing.Icon)(resources.GetObject("fmxCalibration.IconOptions.Icon")));
this.Name = "fmxCalibration";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Calibration";
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
private DevExpress.XtraEditors.SimpleButton btnClose;
private Controls.ucCalibration ucCalibrationConfig;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
private System.Windows.Forms.Timer tmrDisplay;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
}
}

View File

@@ -0,0 +1,119 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using LFP_Manager.DataStructure;
using LFP_Manager.Function;
using LFP_Manager.Controls;
using static DevExpress.XtraPrinting.Export.Pdf.PdfImageCache;
namespace LFP_Manager.Forms
{
public delegate void CalibUpdateEvent(object sendor);
public delegate void CalibCmdEvent(int sId, int mode, int index, int flag,
ref CsDeviceData.DeviceModuleData.DeviceParamData aParam,
ref CsDeviceData.DeviceModuleData.DeviceCalibration aCalib);
public partial class fmxCalibration : DevExpress.XtraEditors.XtraForm
{
#region VARIABLES
int SystemId = 0;
CsDeviceData.DeviceModuleData ModuleData;
CsDeviceData.DeviceModuleData.DeviceParamData Param;
CsDeviceData.DeviceModuleData.DeviceCalibration Calib;
public event CalibUpdateEvent OnUpdate = null;
public event CalibCmdEvent OnCommand = null;
#endregion
#region CONSTRUCTORS
public fmxCalibration(int sId, CommConfig aConfig,
CsDeviceData.DeviceModuleData.DeviceParamData aParam,
CsDeviceData.DeviceModuleData.DeviceCalibration aCalib)
{
InitializeComponent();
InitComponent();
ucCalibrationConfig.UpdateConfig(aConfig);
SystemId = sId;
Param = aParam;
Calib = aCalib;
tmrDisplay.Enabled = true;
}
public void InitComponent()
{
// Cell Voltage Calibration
ucCalibrationConfig.OnCommand += OnCmdEvent;
}
#endregion
#region COMMAND EVENT
private void OnCmdEvent(int mode, int index, int flag,
ref CsDeviceData.DeviceModuleData.DeviceParamData aParam,
ref CsDeviceData.DeviceModuleData.DeviceCalibration aCalib)
{
OnCommand?.Invoke(SystemId, mode, index, flag, ref aParam, ref aCalib);
}
#endregion
#region BUTTON EVENT
private void btnClose_Click(object sender, EventArgs e)
{
Close();
}
#endregion
#region TIMER EVENT
private void tmrDisplay_Tick(object sender, EventArgs e)
{
DisplayValue();
if (OnUpdate != null)
{
OnUpdate(this);
}
}
#endregion
#region DISPLAY DATA
private void DisplayValue()
{
// Cell Voltage Parameter
ucCalibrationConfig.UpdateData(ModuleData, Calib);
}
#endregion
#region PUBLIC FUCTIONS
public void UpdateData(CsDeviceData.DeviceModuleData.DeviceParamData aParam,
CsDeviceData.DeviceModuleData.DeviceCalibration aCalib,
CsDeviceData.DeviceModuleData mData)
{
ModuleData = mData;
Param = aParam;
Calib = aCalib;
}
#endregion
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,108 @@
namespace LFP_Manager.Forms
{
partial class fmxCommConfig
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fmxCommConfig));
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
this.ucCommConfig1 = new LFP_Manager.Controls.ucCommConfig();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.ucCommConfig1);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 0);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.Root = this.layoutControlGroup1;
this.layoutControl1.Size = new System.Drawing.Size(404, 596);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// layoutControlGroup1
//
this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup1.GroupBordersVisible = false;
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem1});
this.layoutControlGroup1.Name = "layoutControlGroup1";
this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup1.Size = new System.Drawing.Size(404, 596);
this.layoutControlGroup1.TextVisible = false;
//
// ucCommConfig1
//
this.ucCommConfig1.Location = new System.Drawing.Point(3, 3);
this.ucCommConfig1.Name = "ucCommConfig1";
this.ucCommConfig1.Size = new System.Drawing.Size(398, 590);
this.ucCommConfig1.TabIndex = 4;
//
// layoutControlItem1
//
this.layoutControlItem1.Control = this.ucCommConfig1;
this.layoutControlItem1.CustomizationFormText = "layoutControlItem1";
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(402, 594);
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
// fmxCommConfig
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(404, 596);
this.Controls.Add(this.layoutControl1);
this.IconOptions.Icon = ((System.Drawing.Icon)(resources.GetObject("fmxCommConfig.IconOptions.Icon")));
this.Name = "fmxCommConfig";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Communication Config";
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
private Controls.ucCommConfig ucCommConfig1;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
}
}

View File

@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
namespace LFP_Manager.Forms
{
public delegate void UpdateEvent(object aConfig);
public partial class fmxCommConfig : DevExpress.XtraEditors.XtraForm
{
public event UpdateEvent OnUpdate = null;
public fmxCommConfig()
{
InitializeComponent();
ucCommConfig1.OnClose += FormClose;
}
private void FormClose(object Config, bool saved)
{
if (OnUpdate != null)
{
if (saved == true)
{
OnUpdate(Config);
}
}
Close();
}
}
}

File diff suppressed because it is too large Load Diff

152
LFP_Manager/Forms/fmxEtcStatus.Designer.cs generated Normal file
View File

@@ -0,0 +1,152 @@
namespace LFP_Manager.Forms
{
partial class fmxEtcStatus
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fmxEtcStatus));
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
this.EtcStatusView = new LFP_Manager.Controls.ucEtcStatusView();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
this.btnClose = new DevExpress.XtraEditors.SimpleButton();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
this.tmrDisplay = new System.Windows.Forms.Timer(this.components);
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.btnClose);
this.layoutControl1.Controls.Add(this.EtcStatusView);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 0);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(916, 145, 650, 400);
this.layoutControl1.Root = this.Root;
this.layoutControl1.Size = new System.Drawing.Size(612, 406);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// Root
//
this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.Root.GroupBordersVisible = false;
this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem1,
this.layoutControlItem2,
this.emptySpaceItem1});
this.Root.Name = "Root";
this.Root.Size = new System.Drawing.Size(612, 406);
this.Root.TextVisible = false;
//
// EtcStatusView
//
this.EtcStatusView.Location = new System.Drawing.Point(12, 12);
this.EtcStatusView.Name = "EtcStatusView";
this.EtcStatusView.Size = new System.Drawing.Size(588, 347);
this.EtcStatusView.TabIndex = 4;
//
// layoutControlItem1
//
this.layoutControlItem1.Control = this.EtcStatusView;
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(592, 351);
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
// btnClose
//
this.btnClose.Location = new System.Drawing.Point(495, 363);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(105, 31);
this.btnClose.StyleController = this.layoutControl1;
this.btnClose.TabIndex = 5;
this.btnClose.Text = "Close";
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.btnClose;
this.layoutControlItem2.Location = new System.Drawing.Point(483, 351);
this.layoutControlItem2.MinSize = new System.Drawing.Size(89, 26);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(109, 35);
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// emptySpaceItem1
//
this.emptySpaceItem1.AllowHotTrack = false;
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 351);
this.emptySpaceItem1.MinSize = new System.Drawing.Size(104, 24);
this.emptySpaceItem1.Name = "emptySpaceItem1";
this.emptySpaceItem1.Size = new System.Drawing.Size(483, 35);
this.emptySpaceItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
//
// fmxEtcStatus
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(612, 406);
this.Controls.Add(this.layoutControl1);
this.IconOptions.Image = ((System.Drawing.Image)(resources.GetObject("fmxEtcStatus.IconOptions.Image")));
this.Name = "fmxEtcStatus";
this.Text = "fmxEtcStatus";
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraEditors.SimpleButton btnClose;
private Controls.ucEtcStatusView EtcStatusView;
private DevExpress.XtraLayout.LayoutControlGroup Root;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
private System.Windows.Forms.Timer tmrDisplay;
}
}

View File

@@ -0,0 +1,100 @@
using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using LFP_Manager.DataStructure;
using LFP_Manager.Function;
using LFP_Manager.Controls;
namespace LFP_Manager.Forms
{
public partial class fmxEtcStatus : DevExpress.XtraEditors.XtraForm
{
public delegate void UpdateEvent(object sendor);
public delegate void CmdEvent(int sId, int mode, int index, int flag, ref DeviceParamData aParam, ref DeviceCalibration aCalib);
#region VARIABLES
int SystemId = 0;
DeviceSystemData SystemData;
DeviceParamData Param;
DeviceCalibration Calib;
public event UpdateEvent OnUpdate = null;
public event CmdEvent OnCommand = null;
#endregion
#region CONSTRUCTORS
public fmxEtcStatus()
{
InitializeComponent();
}
public fmxEtcStatus(int sId, DeviceCalibration aCalib)
{
InitializeComponent();
InitComponent();
SystemId = sId;
Calib = aCalib;
tmrDisplay.Enabled = true;
}
public void InitComponent()
{
EtcStatusView.OnCommand += OnCmdEvent;
}
#endregion
#region BUTTON EVENT
private void btnClose_Click(object sender, EventArgs e)
{
Close();
}
#endregion
#region COMMAND EVENT
private void OnCmdEvent(int mode, int index, int flag, ref DeviceParamData aParam, ref DeviceCalibration aCalib)
{
OnCommand?.Invoke(SystemId, mode, index, flag, ref aParam, ref aCalib);
}
#endregion
#region TIMER EVENT
private void tmrDisplay_Tick(object sender, EventArgs e)
{
DisplayValue();
OnUpdate?.Invoke(this);
}
#endregion
#region DISPLAY DATA
private void DisplayValue()
{
// Cell Voltage Parameter
EtcStatusView.UpdateData(SystemData);
}
#endregion
}
}

View File

@@ -0,0 +1,151 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="tmrDisplay.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="fmxEtcStatus.IconOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAATMSURBVFhH5VVrbBVVED63bUr4pTESFWPE+Idf2qAxiqiF
giAV0fiIGgJq4g/wkUiMlWI0kj5oS61VUwWurUDRiAUqmAhBHq2t+CgqhRJoCzWt+Kj0Wnqh79txvtmd
7V66d7v4hxgnmZzdPTNnvvlmzqyhSyz/HQAjIyPO6qdqE1QCAXAfGPM53L0XFMRFMaCHRqJ91HW219Ez
3b3Ufb5f9tx2QWRcAHrg0HBM3nc3tNGkhe/QpMffpysfK3N08qNldPhkp9gMs21QIL4A9IBYLEbDrH0D
QzT12Qoy6avJ3PcWmbnFluL5rjyamfUZvMQ2SHBIIAY0+1UfHyRzZy4lL3jbCjq/xFJ+Tr6fvzGITXub
xBY+QVhICECdQSeaq+XXCE3MLKGQZsyBQ3gXAPY6u4iueeIDivT0CQvChH1WIhm3BJr9A29Wk7k7n5Iy
rewl4L1ruASsNgtJYGFGHr207oD4DNos+IknAM1+cGhY3j8/2EpmVoFFswbiUixfu58eyd0pQeUb9hjM
BF61IccrxRgAaojGg/O53gG68akwheYUcfYW1aE5a+gq7nw0ZcvpCKXOK6YkDuqAm1lA6Vlb7CT8WRgL
AMoOSn32R3VxjSfrPfm0Yc9R2Ye8WvG1NKBjAxD8Xrn3mOz7sRAHQI30Hh9v77KyY/XKDgej0Xp4CE1Z
sl6Y0cYM2Q35Nw8t2IBRjeEWzxIAAGT+69usxnPqy9nxLfip9U8HgPbJlprjYpvKQwoMYMX7CmYHoixc
KA4AbOqhkO31LXbXJ+hwDozMYI9ewIpBZNLe4JLlkZmeS+aOHDK351BNYwfbjjLrBiIA9INMPDaKnh+g
KYvXk8kotOi0Kb1u0To6e65fArOT+LgF/4VsBphdUSeZr9xQR6+U7aPqb1pl34uFOAaUzqzy2virhZXZ
+JRphgAkhk1D8x+059AvVLH7CJVsbaDwl430xfenaMe3rXJ1oTu/O0mffNVE9U2nLV8G72bB6IvSc7Tt
L7nHqLcEx+Dhrp+dXSVZqx3AdjMbHZ09dOBwO73GGV+/aK1VAqYdgKUUM7gU03Po8ofepd/ORMc0JAOw
HnAwJGNFFQdcPZo9K27CkbZOGckKwEvwvXxXI13Nf0bDcyN1YSml8DkTHrQacnHxLrFzl4JLMNp4m/cd
4/ub70w8uddcCtxzCLJWR6yqyAp7mtmJjghNffpDq4e0ibHOKqT9P7eLjYIweMABqOm1TzKFGUWjjcdZ
3LAkTFGehrCBQhQEREHo88DgkDw388/rMr6KSfO0lAwgvYBuXraRbfgGcVwANr39lsNy7l7UzKEeDlz7
bfXNsq/Zu4O7Rfbstd8GUVr949hm5veS7YdkH9dXbkHjqU5pvBTOGoFTFpRKzeau3CqGXtfHS9QGmcEH
etPSjTI9UU6cncz9dMXD79HvXVG24xLgXk97vtLqXK4ZjBE8hSfeiY6uuMYLCgJqgSaq5SEkN4Lpl7N5
npjbVlEmT1mIyQrXUtpzm2jaC5UC5NYXN1MaN1Bh1Q9i4Nf1fgIf7ZmXwzWU9ky5nI0Yt7Ai5g785lGH
RILsNfjFgHD7+Pmh/5xRjGCq8s71UfE7JJGoj57lFQPiTEIvhej6b+TC87zU+RdcKvm/AyD6B4yX+amq
vYT8AAAAAElFTkSuQmCC
</value>
</data>
</root>

776
LFP_Manager/Forms/fmxExcelFile.Designer.cs generated Normal file
View File

@@ -0,0 +1,776 @@
namespace LFP_Manager
{
partial class fmxExcelFile
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fmxExcelFile));
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.tbPcbSn = new DevExpress.XtraEditors.TextEdit();
this.btnOpenDbFolder = new DevExpress.XtraEditors.SimpleButton();
this.edResultCount = new DevExpress.XtraEditors.TextEdit();
this.btnResultListClear = new DevExpress.XtraEditors.SimpleButton();
this.btnSearchPcbSn = new DevExpress.XtraEditors.SimpleButton();
this.btnOutputAll = new DevExpress.XtraEditors.SimpleButton();
this.btnDeleteQuery = new DevExpress.XtraEditors.SimpleButton();
this.btnCreateNewDb = new DevExpress.XtraEditors.SimpleButton();
this.btnCheckGroupData = new DevExpress.XtraEditors.SimpleButton();
this.cbResultList = new DevExpress.XtraEditors.ComboBoxEdit();
this.cbLotNo = new DevExpress.XtraEditors.ComboBoxEdit();
this.btnExcuteTCell = new DevExpress.XtraEditors.SimpleButton();
this.gbDbCommnad = new DevExpress.XtraEditors.GroupControl();
this.layoutControl2 = new DevExpress.XtraLayout.LayoutControl();
this.btnOpenSchema = new DevExpress.XtraEditors.SimpleButton();
this.btnDbMerge = new DevExpress.XtraEditors.SimpleButton();
this.btnQueryExcute = new DevExpress.XtraEditors.SimpleButton();
this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
this.tbSchema = new System.Windows.Forms.TextBox();
this.gridCell = new System.Windows.Forms.DataGridView();
this.btnFindFile = new DevExpress.XtraEditors.SimpleButton();
this.edFileName = new DevExpress.XtraEditors.TextEdit();
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
this.lcitemLot = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem();
this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem18 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem17 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem19 = new DevExpress.XtraLayout.LayoutControlItem();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.btnDbFileFind = new DevExpress.XtraEditors.SimpleButton();
this.layoutControlItem20 = new DevExpress.XtraLayout.LayoutControlItem();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.tbPcbSn.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.edResultCount.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbResultList.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbLotNo.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gbDbCommnad)).BeginInit();
this.gbDbCommnad.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControl2)).BeginInit();
this.layoutControl2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gridCell)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.edFileName.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lcitemLot)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.btnDbFileFind);
this.layoutControl1.Controls.Add(this.tbPcbSn);
this.layoutControl1.Controls.Add(this.btnOpenDbFolder);
this.layoutControl1.Controls.Add(this.edResultCount);
this.layoutControl1.Controls.Add(this.btnResultListClear);
this.layoutControl1.Controls.Add(this.btnSearchPcbSn);
this.layoutControl1.Controls.Add(this.btnOutputAll);
this.layoutControl1.Controls.Add(this.btnDeleteQuery);
this.layoutControl1.Controls.Add(this.btnCreateNewDb);
this.layoutControl1.Controls.Add(this.btnCheckGroupData);
this.layoutControl1.Controls.Add(this.cbResultList);
this.layoutControl1.Controls.Add(this.cbLotNo);
this.layoutControl1.Controls.Add(this.btnExcuteTCell);
this.layoutControl1.Controls.Add(this.gbDbCommnad);
this.layoutControl1.Controls.Add(this.tbSchema);
this.layoutControl1.Controls.Add(this.gridCell);
this.layoutControl1.Controls.Add(this.btnFindFile);
this.layoutControl1.Controls.Add(this.edFileName);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 0);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1347, 290, 250, 350);
this.layoutControl1.Root = this.layoutControlGroup1;
this.layoutControl1.Size = new System.Drawing.Size(999, 578);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// tbPcbSn
//
this.tbPcbSn.Location = new System.Drawing.Point(681, 265);
this.tbPcbSn.Name = "tbPcbSn";
this.tbPcbSn.Size = new System.Drawing.Size(163, 20);
this.tbPcbSn.StyleController = this.layoutControl1;
this.tbPcbSn.TabIndex = 23;
//
// btnOpenDbFolder
//
this.btnOpenDbFolder.Location = new System.Drawing.Point(894, 12);
this.btnOpenDbFolder.Name = "btnOpenDbFolder";
this.btnOpenDbFolder.Size = new System.Drawing.Size(93, 22);
this.btnOpenDbFolder.StyleController = this.layoutControl1;
this.btnOpenDbFolder.TabIndex = 22;
this.btnOpenDbFolder.Text = "Open DB Folder";
this.btnOpenDbFolder.Click += new System.EventHandler(this.btnOpenDbFolder_Click);
//
// edResultCount
//
this.edResultCount.Location = new System.Drawing.Point(89, 265);
this.edResultCount.Name = "edResultCount";
this.edResultCount.Size = new System.Drawing.Size(59, 20);
this.edResultCount.StyleController = this.layoutControl1;
this.edResultCount.TabIndex = 21;
//
// btnResultListClear
//
this.btnResultListClear.Location = new System.Drawing.Point(402, 265);
this.btnResultListClear.Name = "btnResultListClear";
this.btnResultListClear.Size = new System.Drawing.Size(89, 22);
this.btnResultListClear.StyleController = this.layoutControl1;
this.btnResultListClear.TabIndex = 20;
this.btnResultListClear.Text = "Clear";
this.btnResultListClear.Click += new System.EventHandler(this.btnResultListClear_Click);
//
// btnSearchPcbSn
//
this.btnSearchPcbSn.Location = new System.Drawing.Point(848, 265);
this.btnSearchPcbSn.Name = "btnSearchPcbSn";
this.btnSearchPcbSn.Size = new System.Drawing.Size(139, 22);
this.btnSearchPcbSn.StyleController = this.layoutControl1;
this.btnSearchPcbSn.TabIndex = 19;
this.btnSearchPcbSn.Text = "Search PCB SN";
this.btnSearchPcbSn.Click += new System.EventHandler(this.btnModuleResult_Click);
//
// btnOutputAll
//
this.btnOutputAll.Location = new System.Drawing.Point(897, 229);
this.btnOutputAll.Name = "btnOutputAll";
this.btnOutputAll.Size = new System.Drawing.Size(90, 32);
this.btnOutputAll.StyleController = this.layoutControl1;
this.btnOutputAll.TabIndex = 18;
this.btnOutputAll.Text = "Output All";
this.btnOutputAll.Click += new System.EventHandler(this.btnOutputAll_Click);
//
// btnDeleteQuery
//
this.btnDeleteQuery.Location = new System.Drawing.Point(740, 229);
this.btnDeleteQuery.Name = "btnDeleteQuery";
this.btnDeleteQuery.Size = new System.Drawing.Size(123, 32);
this.btnDeleteQuery.StyleController = this.layoutControl1;
this.btnDeleteQuery.TabIndex = 17;
this.btnDeleteQuery.Text = "Delete Query";
this.btnDeleteQuery.Click += new System.EventHandler(this.btnCheckMeasData_Click);
//
// btnCreateNewDb
//
this.btnCreateNewDb.Location = new System.Drawing.Point(867, 197);
this.btnCreateNewDb.Name = "btnCreateNewDb";
this.btnCreateNewDb.Size = new System.Drawing.Size(120, 28);
this.btnCreateNewDb.StyleController = this.layoutControl1;
this.btnCreateNewDb.TabIndex = 16;
this.btnCreateNewDb.Text = "Create New DB";
this.btnCreateNewDb.Click += new System.EventHandler(this.btnCreateNewDb_Click);
//
// btnCheckGroupData
//
this.btnCheckGroupData.Location = new System.Drawing.Point(740, 197);
this.btnCheckGroupData.Name = "btnCheckGroupData";
this.btnCheckGroupData.Size = new System.Drawing.Size(123, 28);
this.btnCheckGroupData.StyleController = this.layoutControl1;
this.btnCheckGroupData.TabIndex = 15;
this.btnCheckGroupData.Text = "Select All";
this.btnCheckGroupData.Click += new System.EventHandler(this.btnCheckGroupData_Click);
//
// cbResultList
//
this.cbResultList.Location = new System.Drawing.Point(237, 265);
this.cbResultList.Name = "cbResultList";
this.cbResultList.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
this.cbResultList.Properties.Appearance.Options.UseFont = true;
this.cbResultList.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.cbResultList.Size = new System.Drawing.Size(161, 22);
this.cbResultList.StyleController = this.layoutControl1;
this.cbResultList.TabIndex = 14;
this.cbResultList.SelectedIndexChanged += new System.EventHandler(this.cbResultList_SelectedIndexChanged);
//
// cbLotNo
//
this.cbLotNo.Location = new System.Drawing.Point(805, 147);
this.cbLotNo.Name = "cbLotNo";
this.cbLotNo.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.cbLotNo.Size = new System.Drawing.Size(182, 20);
this.cbLotNo.StyleController = this.layoutControl1;
this.cbLotNo.TabIndex = 13;
//
// btnExcuteTCell
//
this.btnExcuteTCell.Location = new System.Drawing.Point(740, 171);
this.btnExcuteTCell.Name = "btnExcuteTCell";
this.btnExcuteTCell.Size = new System.Drawing.Size(247, 22);
this.btnExcuteTCell.StyleController = this.layoutControl1;
this.btnExcuteTCell.TabIndex = 12;
this.btnExcuteTCell.Text = "SQL Excute";
this.btnExcuteTCell.Click += new System.EventHandler(this.btnExcuteTCell_Click);
//
// gbDbCommnad
//
this.gbDbCommnad.Controls.Add(this.layoutControl2);
this.gbDbCommnad.Location = new System.Drawing.Point(740, 38);
this.gbDbCommnad.Name = "gbDbCommnad";
this.gbDbCommnad.Size = new System.Drawing.Size(247, 105);
this.gbDbCommnad.TabIndex = 11;
this.gbDbCommnad.Text = "Management DB";
//
// layoutControl2
//
this.layoutControl2.Controls.Add(this.btnOpenSchema);
this.layoutControl2.Controls.Add(this.btnDbMerge);
this.layoutControl2.Controls.Add(this.btnQueryExcute);
this.layoutControl2.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl2.Location = new System.Drawing.Point(2, 23);
this.layoutControl2.Name = "layoutControl2";
this.layoutControl2.Root = this.layoutControlGroup2;
this.layoutControl2.Size = new System.Drawing.Size(243, 80);
this.layoutControl2.TabIndex = 0;
this.layoutControl2.Text = "layoutControl2";
//
// btnOpenSchema
//
this.btnOpenSchema.Location = new System.Drawing.Point(3, 3);
this.btnOpenSchema.Name = "btnOpenSchema";
this.btnOpenSchema.Size = new System.Drawing.Size(237, 22);
this.btnOpenSchema.StyleController = this.layoutControl2;
this.btnOpenSchema.TabIndex = 8;
this.btnOpenSchema.Text = "Open Schema";
this.btnOpenSchema.Click += new System.EventHandler(this.btnOpenSchema_Click);
//
// btnDbMerge
//
this.btnDbMerge.Location = new System.Drawing.Point(3, 55);
this.btnDbMerge.Name = "btnDbMerge";
this.btnDbMerge.Size = new System.Drawing.Size(237, 22);
this.btnDbMerge.StyleController = this.layoutControl2;
this.btnDbMerge.TabIndex = 10;
this.btnDbMerge.Text = "BMS Data Merse";
this.btnDbMerge.Click += new System.EventHandler(this.btnBmsBmsDataMerse_Click);
//
// btnQueryExcute
//
this.btnQueryExcute.Location = new System.Drawing.Point(3, 29);
this.btnQueryExcute.Name = "btnQueryExcute";
this.btnQueryExcute.Size = new System.Drawing.Size(237, 22);
this.btnQueryExcute.StyleController = this.layoutControl2;
this.btnQueryExcute.TabIndex = 9;
this.btnQueryExcute.Text = "Query Excute";
this.btnQueryExcute.Click += new System.EventHandler(this.btnQueryExcute_Click);
//
// layoutControlGroup2
//
this.layoutControlGroup2.CustomizationFormText = "layoutControlGroup2";
this.layoutControlGroup2.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup2.GroupBordersVisible = false;
this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem5,
this.layoutControlItem6,
this.layoutControlItem7});
this.layoutControlGroup2.Name = "layoutControlGroup2";
this.layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup2.Size = new System.Drawing.Size(243, 80);
this.layoutControlGroup2.TextVisible = false;
//
// layoutControlItem5
//
this.layoutControlItem5.Control = this.btnOpenSchema;
this.layoutControlItem5.CustomizationFormText = "layoutControlItem5";
this.layoutControlItem5.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem5.Name = "layoutControlItem5";
this.layoutControlItem5.Size = new System.Drawing.Size(241, 26);
this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem5.TextVisible = false;
//
// layoutControlItem6
//
this.layoutControlItem6.Control = this.btnQueryExcute;
this.layoutControlItem6.CustomizationFormText = "layoutControlItem6";
this.layoutControlItem6.Location = new System.Drawing.Point(0, 26);
this.layoutControlItem6.Name = "layoutControlItem6";
this.layoutControlItem6.Size = new System.Drawing.Size(241, 26);
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem6.TextVisible = false;
//
// layoutControlItem7
//
this.layoutControlItem7.Control = this.btnDbMerge;
this.layoutControlItem7.CustomizationFormText = "layoutControlItem7";
this.layoutControlItem7.Location = new System.Drawing.Point(0, 52);
this.layoutControlItem7.Name = "layoutControlItem7";
this.layoutControlItem7.Size = new System.Drawing.Size(241, 26);
this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem7.TextVisible = false;
//
// tbSchema
//
this.tbSchema.Location = new System.Drawing.Point(12, 38);
this.tbSchema.Multiline = true;
this.tbSchema.Name = "tbSchema";
this.tbSchema.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.tbSchema.Size = new System.Drawing.Size(724, 223);
this.tbSchema.TabIndex = 7;
//
// gridCell
//
this.gridCell.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.gridCell.Location = new System.Drawing.Point(12, 291);
this.gridCell.Name = "gridCell";
this.gridCell.RowTemplate.Height = 23;
this.gridCell.Size = new System.Drawing.Size(975, 275);
this.gridCell.TabIndex = 6;
//
// btnFindFile
//
this.btnFindFile.Location = new System.Drawing.Point(712, 12);
this.btnFindFile.Name = "btnFindFile";
this.btnFindFile.Size = new System.Drawing.Size(89, 22);
this.btnFindFile.StyleController = this.layoutControl1;
this.btnFindFile.TabIndex = 5;
this.btnFindFile.Text = "Excel File ....";
this.btnFindFile.Click += new System.EventHandler(this.btnFindFile_Click);
//
// edFileName
//
this.edFileName.Location = new System.Drawing.Point(89, 12);
this.edFileName.Name = "edFileName";
this.edFileName.Size = new System.Drawing.Size(619, 20);
this.edFileName.StyleController = this.layoutControl1;
this.edFileName.TabIndex = 4;
//
// layoutControlGroup1
//
this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup1.GroupBordersVisible = false;
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem1,
this.layoutControlItem2,
this.emptySpaceItem1,
this.layoutControlItem3,
this.layoutControlItem4,
this.layoutControlItem8,
this.layoutControlItem9,
this.lcitemLot,
this.layoutControlItem10,
this.emptySpaceItem2,
this.layoutControlItem11,
this.layoutControlItem12,
this.layoutControlItem13,
this.layoutControlItem14,
this.layoutControlItem15,
this.layoutControlItem16,
this.layoutControlItem18,
this.layoutControlItem17,
this.layoutControlItem19,
this.layoutControlItem20});
this.layoutControlGroup1.Name = "layoutControlGroup1";
this.layoutControlGroup1.Size = new System.Drawing.Size(999, 578);
this.layoutControlGroup1.TextVisible = false;
//
// layoutControlItem1
//
this.layoutControlItem1.Control = this.edFileName;
this.layoutControlItem1.CustomizationFormText = "layoutControlItem1";
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem1.MinSize = new System.Drawing.Size(162, 24);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(700, 26);
this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem1.Text = "File Name: ";
this.layoutControlItem1.TextSize = new System.Drawing.Size(74, 14);
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.btnFindFile;
this.layoutControlItem2.CustomizationFormText = "layoutControlItem2";
this.layoutControlItem2.Location = new System.Drawing.Point(700, 0);
this.layoutControlItem2.MinSize = new System.Drawing.Size(93, 26);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(93, 26);
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// emptySpaceItem1
//
this.emptySpaceItem1.AllowHotTrack = false;
this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1";
this.emptySpaceItem1.Location = new System.Drawing.Point(855, 217);
this.emptySpaceItem1.Name = "emptySpaceItem1";
this.emptySpaceItem1.Size = new System.Drawing.Size(30, 36);
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
//
// layoutControlItem3
//
this.layoutControlItem3.Control = this.gridCell;
this.layoutControlItem3.CustomizationFormText = "layoutControlItem3";
this.layoutControlItem3.Location = new System.Drawing.Point(0, 279);
this.layoutControlItem3.MinSize = new System.Drawing.Size(104, 24);
this.layoutControlItem3.Name = "layoutControlItem3";
this.layoutControlItem3.Size = new System.Drawing.Size(979, 279);
this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem3.TextVisible = false;
//
// layoutControlItem4
//
this.layoutControlItem4.Control = this.tbSchema;
this.layoutControlItem4.CustomizationFormText = "layoutControlItem4";
this.layoutControlItem4.Location = new System.Drawing.Point(0, 26);
this.layoutControlItem4.MinSize = new System.Drawing.Size(132, 24);
this.layoutControlItem4.Name = "layoutControlItem4";
this.layoutControlItem4.Size = new System.Drawing.Size(728, 227);
this.layoutControlItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem4.TextVisible = false;
//
// layoutControlItem8
//
this.layoutControlItem8.Control = this.gbDbCommnad;
this.layoutControlItem8.CustomizationFormText = "layoutControlItem8";
this.layoutControlItem8.Location = new System.Drawing.Point(728, 26);
this.layoutControlItem8.Name = "layoutControlItem8";
this.layoutControlItem8.Size = new System.Drawing.Size(251, 109);
this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem8.TextVisible = false;
//
// layoutControlItem9
//
this.layoutControlItem9.Control = this.btnExcuteTCell;
this.layoutControlItem9.CustomizationFormText = "layoutControlItem9";
this.layoutControlItem9.Location = new System.Drawing.Point(728, 159);
this.layoutControlItem9.Name = "layoutControlItem9";
this.layoutControlItem9.Size = new System.Drawing.Size(251, 26);
this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem9.TextVisible = false;
//
// lcitemLot
//
this.lcitemLot.Control = this.cbLotNo;
this.lcitemLot.CustomizationFormText = " Lot No";
this.lcitemLot.Location = new System.Drawing.Point(728, 135);
this.lcitemLot.Name = "lcitemLot";
this.lcitemLot.Size = new System.Drawing.Size(251, 24);
this.lcitemLot.Text = " Lot No";
this.lcitemLot.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.CustomSize;
this.lcitemLot.TextSize = new System.Drawing.Size(60, 14);
this.lcitemLot.TextToControlDistance = 5;
//
// layoutControlItem10
//
this.layoutControlItem10.Control = this.cbResultList;
this.layoutControlItem10.CustomizationFormText = " Result List";
this.layoutControlItem10.Location = new System.Drawing.Point(140, 253);
this.layoutControlItem10.MaxSize = new System.Drawing.Size(0, 26);
this.layoutControlItem10.MinSize = new System.Drawing.Size(187, 26);
this.layoutControlItem10.Name = "layoutControlItem10";
this.layoutControlItem10.Size = new System.Drawing.Size(250, 26);
this.layoutControlItem10.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem10.Text = " Result List";
this.layoutControlItem10.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.CustomSize;
this.layoutControlItem10.TextSize = new System.Drawing.Size(80, 14);
this.layoutControlItem10.TextToControlDistance = 5;
//
// emptySpaceItem2
//
this.emptySpaceItem2.AllowHotTrack = false;
this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2";
this.emptySpaceItem2.Location = new System.Drawing.Point(483, 253);
this.emptySpaceItem2.Name = "emptySpaceItem2";
this.emptySpaceItem2.Size = new System.Drawing.Size(109, 26);
this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
//
// layoutControlItem11
//
this.layoutControlItem11.Control = this.btnCheckGroupData;
this.layoutControlItem11.CustomizationFormText = "layoutControlItem11";
this.layoutControlItem11.Location = new System.Drawing.Point(728, 185);
this.layoutControlItem11.MinSize = new System.Drawing.Size(93, 26);
this.layoutControlItem11.Name = "layoutControlItem11";
this.layoutControlItem11.Size = new System.Drawing.Size(127, 32);
this.layoutControlItem11.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem11.TextVisible = false;
//
// layoutControlItem12
//
this.layoutControlItem12.Control = this.btnCreateNewDb;
this.layoutControlItem12.CustomizationFormText = "layoutControlItem12";
this.layoutControlItem12.Location = new System.Drawing.Point(855, 185);
this.layoutControlItem12.MinSize = new System.Drawing.Size(93, 26);
this.layoutControlItem12.Name = "layoutControlItem12";
this.layoutControlItem12.Size = new System.Drawing.Size(124, 32);
this.layoutControlItem12.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem12.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem12.TextVisible = false;
//
// layoutControlItem13
//
this.layoutControlItem13.Control = this.btnDeleteQuery;
this.layoutControlItem13.CustomizationFormText = "layoutControlItem13";
this.layoutControlItem13.Location = new System.Drawing.Point(728, 217);
this.layoutControlItem13.MinSize = new System.Drawing.Size(93, 26);
this.layoutControlItem13.Name = "layoutControlItem13";
this.layoutControlItem13.Size = new System.Drawing.Size(127, 36);
this.layoutControlItem13.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem13.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem13.TextVisible = false;
//
// layoutControlItem14
//
this.layoutControlItem14.Control = this.btnOutputAll;
this.layoutControlItem14.CustomizationFormText = "layoutControlItem14";
this.layoutControlItem14.Location = new System.Drawing.Point(885, 217);
this.layoutControlItem14.MinSize = new System.Drawing.Size(93, 26);
this.layoutControlItem14.Name = "layoutControlItem14";
this.layoutControlItem14.Size = new System.Drawing.Size(94, 36);
this.layoutControlItem14.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem14.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem14.TextVisible = false;
//
// layoutControlItem15
//
this.layoutControlItem15.Control = this.btnSearchPcbSn;
this.layoutControlItem15.CustomizationFormText = "layoutControlItem15";
this.layoutControlItem15.Location = new System.Drawing.Point(836, 253);
this.layoutControlItem15.MinSize = new System.Drawing.Size(93, 26);
this.layoutControlItem15.Name = "layoutControlItem15";
this.layoutControlItem15.Size = new System.Drawing.Size(143, 26);
this.layoutControlItem15.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem15.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem15.TextVisible = false;
//
// layoutControlItem16
//
this.layoutControlItem16.Control = this.btnResultListClear;
this.layoutControlItem16.CustomizationFormText = "layoutControlItem16";
this.layoutControlItem16.Location = new System.Drawing.Point(390, 253);
this.layoutControlItem16.MinSize = new System.Drawing.Size(93, 26);
this.layoutControlItem16.Name = "layoutControlItem16";
this.layoutControlItem16.Size = new System.Drawing.Size(93, 26);
this.layoutControlItem16.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem16.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem16.TextVisible = false;
//
// layoutControlItem18
//
this.layoutControlItem18.Control = this.btnOpenDbFolder;
this.layoutControlItem18.CustomizationFormText = "layoutControlItem18";
this.layoutControlItem18.Location = new System.Drawing.Point(882, 0);
this.layoutControlItem18.Name = "layoutControlItem18";
this.layoutControlItem18.Size = new System.Drawing.Size(97, 26);
this.layoutControlItem18.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem18.TextVisible = false;
//
// layoutControlItem17
//
this.layoutControlItem17.Control = this.edResultCount;
this.layoutControlItem17.CustomizationFormText = "layoutControlItem17";
this.layoutControlItem17.Location = new System.Drawing.Point(0, 253);
this.layoutControlItem17.MinSize = new System.Drawing.Size(54, 24);
this.layoutControlItem17.Name = "layoutControlItem17";
this.layoutControlItem17.Size = new System.Drawing.Size(140, 26);
this.layoutControlItem17.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem17.Text = "Result Count ";
this.layoutControlItem17.TextSize = new System.Drawing.Size(74, 14);
//
// layoutControlItem19
//
this.layoutControlItem19.Control = this.tbPcbSn;
this.layoutControlItem19.CustomizationFormText = "PCB SN";
this.layoutControlItem19.Location = new System.Drawing.Point(592, 253);
this.layoutControlItem19.MinSize = new System.Drawing.Size(131, 24);
this.layoutControlItem19.Name = "layoutControlItem19";
this.layoutControlItem19.Size = new System.Drawing.Size(244, 26);
this.layoutControlItem19.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem19.Text = "PCB SN";
this.layoutControlItem19.TextSize = new System.Drawing.Size(74, 14);
//
// openFileDialog1
//
this.openFileDialog1.FileName = "openFileDialog1";
//
// btnDbFileFind
//
this.btnDbFileFind.Location = new System.Drawing.Point(805, 12);
this.btnDbFileFind.Name = "btnDbFileFind";
this.btnDbFileFind.Size = new System.Drawing.Size(85, 22);
this.btnDbFileFind.StyleController = this.layoutControl1;
this.btnDbFileFind.TabIndex = 24;
this.btnDbFileFind.Text = "DB Files ...";
this.btnDbFileFind.Click += new System.EventHandler(this.btnDbFileFind_Click);
//
// layoutControlItem20
//
this.layoutControlItem20.Control = this.btnDbFileFind;
this.layoutControlItem20.Location = new System.Drawing.Point(793, 0);
this.layoutControlItem20.Name = "layoutControlItem20";
this.layoutControlItem20.Size = new System.Drawing.Size(89, 26);
this.layoutControlItem20.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem20.TextVisible = false;
//
// fmxExcelFile
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(999, 578);
this.Controls.Add(this.layoutControl1);
this.IconOptions.Icon = ((System.Drawing.Icon)(resources.GetObject("fmxExcelFile.IconOptions.Icon")));
this.Name = "fmxExcelFile";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Database Control";
this.Load += new System.EventHandler(this.fmxExcelFile_Load);
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.tbPcbSn.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.edResultCount.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbResultList.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbLotNo.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gbDbCommnad)).EndInit();
this.gbDbCommnad.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControl2)).EndInit();
this.layoutControl2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gridCell)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.edFileName.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lcitemLot)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem17)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
private DevExpress.XtraEditors.SimpleButton btnFindFile;
private DevExpress.XtraEditors.TextEdit edFileName;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
private System.Windows.Forms.DataGridView gridCell;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
private System.Windows.Forms.TextBox tbSchema;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
private DevExpress.XtraEditors.SimpleButton btnOpenSchema;
private DevExpress.XtraEditors.SimpleButton btnQueryExcute;
private DevExpress.XtraEditors.GroupControl gbDbCommnad;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8;
private DevExpress.XtraLayout.LayoutControl layoutControl2;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup2;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
private DevExpress.XtraEditors.SimpleButton btnExcuteTCell;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9;
private DevExpress.XtraEditors.ComboBoxEdit cbLotNo;
private DevExpress.XtraLayout.LayoutControlItem lcitemLot;
private DevExpress.XtraEditors.ComboBoxEdit cbResultList;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2;
private DevExpress.XtraEditors.SimpleButton btnCheckGroupData;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11;
private DevExpress.XtraEditors.SimpleButton btnCreateNewDb;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem12;
private DevExpress.XtraEditors.SimpleButton btnDeleteQuery;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem13;
private DevExpress.XtraEditors.SimpleButton btnOutputAll;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem14;
private DevExpress.XtraEditors.SimpleButton btnSearchPcbSn;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem15;
private DevExpress.XtraEditors.SimpleButton btnResultListClear;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem16;
private DevExpress.XtraEditors.TextEdit edResultCount;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem17;
private DevExpress.XtraEditors.SimpleButton btnOpenDbFolder;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem18;
private DevExpress.XtraEditors.TextEdit tbPcbSn;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem19;
private DevExpress.XtraEditors.SimpleButton btnDbMerge;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private DevExpress.XtraEditors.SimpleButton btnDbFileFind;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem20;
}
}

View File

@@ -0,0 +1,363 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.Data.SQLite;
using System.IO;
using LFP_Manager.DataStructure;
using LFP_Manager.Function;
using LFP_Manager.Utils;
namespace LFP_Manager
{
public partial class fmxExcelFile : DevExpress.XtraEditors.XtraForm
{
#region VARIABLES
string[] dbFiles;
//private string Excel03ConString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0};Extended Properties='Excel 8.0;HDR={1}'";
//private string Excel07ConString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended Properties='Excel 8.0;HDR={1}'";
//Workbook workbook;
DataSet dsCell;
DataTable dtCell;
CommConfig Config;
#endregion
#region CONSTRUCTORS
public fmxExcelFile(CommConfig aConfig)
{
InitializeComponent();
Config = aConfig;
//tbSchema.Text = "select * from TInventoryData" + "\r\n" + "where pcb_sn like 'BMU18SA20120169%'";
}
#endregion
#region FORM EVENT
private void fmxExcelFile_Load(object sender, EventArgs e)
{
string dbfilePath = Path.GetDirectoryName(Application.ExecutablePath) + @"\db";
dbFiles = Directory.GetFiles(dbfilePath, "*.db", SearchOption.AllDirectories);
if (dbFiles.Length > 0)
{
for (int i = 0; i < dbFiles.Length; i++)
{
cbLotNo.Properties.Items.Add(Path.GetFileName(dbFiles[i]));
}
cbLotNo.SelectedIndex = 0;
}
}
#endregion
// Copy Table Value
// INSERT INTO TModuleResultBak SELECT * FROM TModuleResult
// INSERT INTO [TModuleBmsBak] (sn, result, module_ocv_b) SELECT sn, result, module_ocv_b FROM TModuleBms
#region BUTTON EVENT
private void btnFindFile_Click(object sender, EventArgs e)
{
OpenFileDialog oDialog = new OpenFileDialog();
oDialog.DefaultExt = "*.*";
oDialog.Filter = "excel files 2003 (*.xls)|*.xls|excel files 2007 (*.xlsx)|*.xlsx|All files (*.*)|*.*";
if (oDialog.ShowDialog() == DialogResult.OK)
{
edFileName.Text = oDialog.FileName;
try
{
dsCell = csExcelControl.OpenExcelDB(edFileName.Text);
cbResultList.Properties.Items.Clear();
for (int i = 0; i < dsCell.Tables.Count; i++)
{
cbResultList.Properties.Items.Add(dsCell.Tables[i].TableName);
}
cbResultList.SelectedIndex = 0;
dtCell = dsCell.Tables[0];
gridCell.DataSource = dtCell;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Exception", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
private void btnDbFileFind_Click(object sender, EventArgs e)
{
OpenFileDialog oDialog = new OpenFileDialog();
oDialog.DefaultExt = "*.*";
oDialog.Filter = "db files (*.db)|*.db|All files (*.*)|*.*";
if (oDialog.ShowDialog() == DialogResult.OK)
{
Forms.fmxWait WaitForm = new Forms.fmxWait();
WaitForm.StartPosition = FormStartPosition.CenterScreen;
edFileName.Text = oDialog.FileName;
try
{
WaitForm.Show();
int count = 0;
DateTime bakTime = new DateTime();
DataTable dtRD = new DataTable();
DataTable dtWR = new DataTable();
if (csDbUtils.DbQuaryExcuteToDataTable(edFileName.Text, "select * from TModuleValue", ref dtRD) > 0)
{
string dbfilepath = Path.GetDirectoryName(edFileName.Text);
string dbfilename_new = dbfilepath + @"\" + Path.GetFileNameWithoutExtension(edFileName.Text) + @"_new.db";
csDbUtils.CreateLogDbFile(dbfilename_new);
foreach (DataRow aRow in dtRD.Rows)
{
DateTime bTime = Convert.ToDateTime(String.Format("{0:yyyy/MM/dd HH:mm:ss}", aRow["create_date"]));
if (bakTime != bTime)
{
csDbUtils.DbInsertDataToDbFile(dbfilename_new, aRow);
bakTime = bTime;
}
//aRow["create_date"] = String.Format("{0:yyyy/MM/dd HH:mm:ss}", aRow["create_date"]);
WaitForm.SetDescription(String.Format("{0}//{1}", count, dtRD.Rows.Count));
Application.DoEvents();
count++;
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Exception", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
finally
{
if (WaitForm != null)
WaitForm.Close();
}
}
}
private void btnExcuteTCell_Click(object sender, EventArgs e)
{
if (tbSchema.Text != string.Empty)
{
try
{
//string path = cbLotNo.Text.Substring(0, 9);
//string path = cbLotNo.Text;
string path = dbFiles[cbLotNo.SelectedIndex];
DataTable aaa = csDbUtils.DbSqlExcuteA3(path, tbSchema.Text);
if (aaa != null)
{
gridCell.DataSource = aaa;
edResultCount.Text = String.Format("{0}", aaa.Rows.Count);
if (aaa.Rows.Count > 0)
{
var ddd = aaa.Rows[0]["module_sn"];
byte[] ccc = Encoding.UTF8.GetBytes(ddd.ToString());
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Exception", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
}
}
private void btnOpenSchema_Click(object sender, EventArgs e)
{
OpenFileDialog oDialog = new OpenFileDialog();
oDialog.DefaultExt = "*.*";
oDialog.Filter = "sql files (*.sql)|*.sql|All files (*.*)|*.*";
if (oDialog.ShowDialog() == DialogResult.OK)
{
string text = System.IO.File.ReadAllText(oDialog.FileName);
tbSchema.Text = text;
}
}
private void btnQueryExcute_Click(object sender, EventArgs e)
{
if (tbSchema.Text != string.Empty)
{
gridCell.DataSource = csDbUtils.DbSqlExcuteA(Application.ExecutablePath, tbSchema.Text, "mBMS_16S");
}
}
private void btnInsertDbByTable_Click(object sender, EventArgs e)
{
}
private void btnCheckGroupData_Click(object sender, EventArgs e)
{
tbSchema.Text = "select * from TInventoryData";
}
private void btnCreateNewDb_Click(object sender, EventArgs e)
{
string ModelName;
ModelName = csConstData.UART_MODEL[Config.UartModelIndex];
csDbUtils.LogDbCreateNew(ModelName);
}
private void btnCheckMeasData_Click(object sender, EventArgs e)
{
tbSchema.Text = "delete from TInventoryData where pcb_sn=''";
}
private void btnOutputAll_Click(object sender, EventArgs e)
{
if (cbResultList.Properties.Items.Count > 0)
{
for (int i = 0; i < cbResultList.Properties.Items.Count; i++)
{
string sn = cbResultList.Properties.Items[i].ToString();
MakeOutpuDataExcel(sn, cbLotNo.Text);
}
}
}
private void btnModuleResult_Click(object sender, EventArgs e)
{
//
try
{
string dbFilePath = dbFiles[cbLotNo.SelectedIndex];
string sql = String.Format("SELECT * FROM TInventoryData")
+ String.Format(" where pcb_sn like '{0}%'", tbPcbSn.Text)
;
DataTable dtBmsData = csDbUtils.DbSqlExcuteA3(dbFilePath, sql);
dtBmsData.TableName = "TInventoryData";
if ((dtBmsData != null) && (dtBmsData.Rows.Count > 0))
{
cbResultList.Properties.Items.Clear();
for (int i = 0; i < dtBmsData.Rows.Count; i++)
{
cbResultList.Properties.Items.Add(String.Format("{0}", dtBmsData.Rows[i]["pcb_sn"]));
}
gridCell.DataSource = dtBmsData;
edResultCount.Text = dtBmsData.Rows.Count.ToString();
cbResultList.SelectedIndex = 0;
}
else
{
MessageBox.Show(String.Format("No TModuleResult data - {0}", dbFilePath));
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void btnResultListClear_Click(object sender, EventArgs e)
{
cbResultList.Properties.Items.Clear();
}
private void btnBmsBmsDataMerse_Click(object sender, EventArgs e)
{
}
private void btnOpenDbFolder_Click(object sender, EventArgs e)
{
System.Diagnostics.Process ps = new System.Diagnostics.Process();
ps.StartInfo.FileName = "explorer.exe";
ps.StartInfo.Arguments = csLog.GetDbFolder(Application.ExecutablePath);
ps.StartInfo.WorkingDirectory = csLog.GetDbFolder(Application.ExecutablePath);
ps.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
ps.Start();
}
#endregion
#region COMPONENT EVETNT
private void cbResultList_SelectedIndexChanged(object sender, EventArgs e)
{
string tbName = "";
tbName = cbResultList.Text;
if ((dtCell != null) && (dtCell.Rows.Count > 0))
{
if (tbName != "")
{
int index = cbResultList.SelectedIndex;
dtCell = dsCell.Tables[index];
gridCell.DataSource = dtCell;
}
}
}
#endregion
#region MAKE OUTPUT FUNCTION
private void MakeOutpuDataExcel(string mSN, string dbFile)
{
DateTime aDate = DateTime.Now;
string filename = String.Format("{0}_PR_57150.xls", mSN);
string filepath =
Path.GetDirectoryName(Application.ExecutablePath)
+ String.Format(@"\output\{0}\", csDbUtils.MakeLotNumber(mSN))
+ filename;
DataTable dtModuleResult = new DataTable();
DataTable dtCellResult = new DataTable();
string sql;
sql = String.Format("SELECT * FROM TModuleResult where m_sn = {0}", mSN);
dtModuleResult = csDbUtils.GetDataTableBySelectFromDbName(dbFile, sql, "TModuleResult", "mBMS-16S");
dtModuleResult.TableName = "TModuleResult";
dtModuleResult.AcceptChanges();
sql = String.Format("SELECT * FROM TCellResult where m_sn = {0}", mSN);
dtCellResult = csDbUtils.GetDataTableBySelectFromDbName(dbFile, sql, "TCellResult", "mBMS-16S");
dtCellResult.TableName = "TCellResult";
dtCellResult.AcceptChanges();
if (dtModuleResult.Rows.Count == 0) throw new Exception(String.Format("No ModuleResult data ({0})", mSN));
if (dtCellResult.Rows.Count == 0) throw new Exception(String.Format("No CellResult data ({0})", mSN));
csExcelExport.ExportToExcel(dtModuleResult, filepath);
csExcelExport.ExportToExcel(dtCellResult, filepath, false);
}
private DataTable GetModuleResultTable(string dbFileName)
{
DateTime aDate = DateTime.Now;
DataTable dtModuleResult = new DataTable();
string sql;
sql = String.Format("SELECT * FROM TModuleResult");
dtModuleResult = csDbUtils.GetDataTableBySelectFromDbName(dbFileName, sql, "TModuleResult", "mBMS-16S");
dtModuleResult.TableName = "TModuleResult";
dtModuleResult.AcceptChanges();
if (dtModuleResult.Rows.Count == 0) throw new Exception(String.Format("No ModuleResult data ({0})", dbFileName));
return dtModuleResult;
}
#endregion
}
}

File diff suppressed because it is too large Load Diff

643
LFP_Manager/Forms/fmxFwUpdate.Designer.cs generated Normal file
View File

@@ -0,0 +1,643 @@
namespace LFP_Manager
{
partial class fmxFwUpdate
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fmxFwUpdate));
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.btnFlashWrite = new DevExpress.XtraEditors.SimpleButton();
this.btnFlashErase = new DevExpress.XtraEditors.SimpleButton();
this.btnGotoApp = new DevExpress.XtraEditors.SimpleButton();
this.btnGotoBoot = new DevExpress.XtraEditors.SimpleButton();
this.btnRestart = new DevExpress.XtraEditors.SimpleButton();
this.lbUpdateStatus = new DevExpress.XtraEditors.LabelControl();
this.lbUpdateProgress = new DevExpress.XtraEditors.LabelControl();
this.pgUpdate = new DevExpress.XtraEditors.ProgressBarControl();
this.lbUpdateTime = new DevExpress.XtraEditors.LabelControl();
this.lbFileInfo = new DevExpress.XtraEditors.LabelControl();
this.btnFwUpdate = new DevExpress.XtraEditors.SimpleButton();
this.btnClose = new DevExpress.XtraEditors.SimpleButton();
this.btnFind = new DevExpress.XtraEditors.SimpleButton();
this.edFilename = new DevExpress.XtraEditors.TextEdit();
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
this.emptySpaceItem4 = new DevExpress.XtraLayout.EmptySpaceItem();
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
this.lcItemGotoBoot = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem5 = new DevExpress.XtraLayout.EmptySpaceItem();
this.lcItemGotoApp = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem6 = new DevExpress.XtraLayout.EmptySpaceItem();
this.lcItemFlashErase = new DevExpress.XtraLayout.LayoutControlItem();
this.lcItemFlashWrite = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlGroup3 = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem();
this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem();
this.edTargetID = new DevExpress.XtraEditors.TextEdit();
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pgUpdate.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.edFilename.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lcItemGotoBoot)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lcItemGotoApp)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lcItemFlashErase)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lcItemFlashWrite)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.edTargetID.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.edTargetID);
this.layoutControl1.Controls.Add(this.btnFlashWrite);
this.layoutControl1.Controls.Add(this.btnFlashErase);
this.layoutControl1.Controls.Add(this.btnGotoApp);
this.layoutControl1.Controls.Add(this.btnGotoBoot);
this.layoutControl1.Controls.Add(this.btnRestart);
this.layoutControl1.Controls.Add(this.lbUpdateStatus);
this.layoutControl1.Controls.Add(this.lbUpdateProgress);
this.layoutControl1.Controls.Add(this.pgUpdate);
this.layoutControl1.Controls.Add(this.lbUpdateTime);
this.layoutControl1.Controls.Add(this.lbFileInfo);
this.layoutControl1.Controls.Add(this.btnFwUpdate);
this.layoutControl1.Controls.Add(this.btnClose);
this.layoutControl1.Controls.Add(this.btnFind);
this.layoutControl1.Controls.Add(this.edFilename);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 0);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1101, 240, 600, 492);
this.layoutControl1.Root = this.layoutControlGroup1;
this.layoutControl1.Size = new System.Drawing.Size(736, 478);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// btnFlashWrite
//
this.btnFlashWrite.Location = new System.Drawing.Point(567, 153);
this.btnFlashWrite.Name = "btnFlashWrite";
this.btnFlashWrite.Size = new System.Drawing.Size(162, 22);
this.btnFlashWrite.StyleController = this.layoutControl1;
this.btnFlashWrite.TabIndex = 21;
this.btnFlashWrite.Text = "Flash Write";
this.btnFlashWrite.Click += new System.EventHandler(this.btnFlashWrite_Click);
//
// btnFlashErase
//
this.btnFlashErase.Location = new System.Drawing.Point(567, 127);
this.btnFlashErase.Name = "btnFlashErase";
this.btnFlashErase.Size = new System.Drawing.Size(162, 22);
this.btnFlashErase.StyleController = this.layoutControl1;
this.btnFlashErase.TabIndex = 20;
this.btnFlashErase.Text = "Flash Erase";
this.btnFlashErase.Click += new System.EventHandler(this.btnFlashErase_Click);
//
// btnGotoApp
//
this.btnGotoApp.Location = new System.Drawing.Point(567, 220);
this.btnGotoApp.Name = "btnGotoApp";
this.btnGotoApp.Size = new System.Drawing.Size(162, 22);
this.btnGotoApp.StyleController = this.layoutControl1;
this.btnGotoApp.TabIndex = 19;
this.btnGotoApp.Text = "Goto Application";
this.btnGotoApp.Click += new System.EventHandler(this.btnGotoApp_Click);
//
// btnGotoBoot
//
this.btnGotoBoot.Location = new System.Drawing.Point(567, 194);
this.btnGotoBoot.Name = "btnGotoBoot";
this.btnGotoBoot.Size = new System.Drawing.Size(162, 22);
this.btnGotoBoot.StyleController = this.layoutControl1;
this.btnGotoBoot.TabIndex = 18;
this.btnGotoBoot.Text = "Goto Bootloader";
this.btnGotoBoot.Click += new System.EventHandler(this.btnGotoBoot_Click);
//
// btnRestart
//
this.btnRestart.Location = new System.Drawing.Point(567, 273);
this.btnRestart.Name = "btnRestart";
this.btnRestart.Size = new System.Drawing.Size(162, 29);
this.btnRestart.StyleController = this.layoutControl1;
this.btnRestart.TabIndex = 17;
this.btnRestart.Text = "Restart";
//
// lbUpdateStatus
//
this.lbUpdateStatus.Location = new System.Drawing.Point(7, 335);
this.lbUpdateStatus.Name = "lbUpdateStatus";
this.lbUpdateStatus.Size = new System.Drawing.Size(526, 14);
this.lbUpdateStatus.StyleController = this.layoutControl1;
this.lbUpdateStatus.TabIndex = 16;
this.lbUpdateStatus.Text = "Update Status : ";
//
// lbUpdateProgress
//
this.lbUpdateProgress.Appearance.Options.UseTextOptions = true;
this.lbUpdateProgress.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.lbUpdateProgress.Location = new System.Drawing.Point(537, 353);
this.lbUpdateProgress.Name = "lbUpdateProgress";
this.lbUpdateProgress.Size = new System.Drawing.Size(192, 14);
this.lbUpdateProgress.StyleController = this.layoutControl1;
this.lbUpdateProgress.TabIndex = 15;
this.lbUpdateProgress.Text = "0/0 bytes";
//
// pgUpdate
//
this.pgUpdate.Location = new System.Drawing.Point(7, 371);
this.pgUpdate.Name = "pgUpdate";
this.pgUpdate.Size = new System.Drawing.Size(722, 39);
this.pgUpdate.StyleController = this.layoutControl1;
this.pgUpdate.TabIndex = 14;
//
// lbUpdateTime
//
this.lbUpdateTime.Location = new System.Drawing.Point(7, 353);
this.lbUpdateTime.Name = "lbUpdateTime";
this.lbUpdateTime.Size = new System.Drawing.Size(526, 14);
this.lbUpdateTime.StyleController = this.layoutControl1;
this.lbUpdateTime.TabIndex = 13;
this.lbUpdateTime.Text = "00:00";
//
// lbFileInfo
//
this.lbFileInfo.Appearance.Options.UseTextOptions = true;
this.lbFileInfo.Appearance.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Top;
this.lbFileInfo.Location = new System.Drawing.Point(7, 106);
this.lbFileInfo.Name = "lbFileInfo";
this.lbFileInfo.Size = new System.Drawing.Size(556, 196);
this.lbFileInfo.StyleController = this.layoutControl1;
this.lbFileInfo.TabIndex = 12;
this.lbFileInfo.Text = "File Information";
//
// btnFwUpdate
//
this.btnFwUpdate.Location = new System.Drawing.Point(567, 54);
this.btnFwUpdate.Name = "btnFwUpdate";
this.btnFwUpdate.Size = new System.Drawing.Size(162, 22);
this.btnFwUpdate.StyleController = this.layoutControl1;
this.btnFwUpdate.TabIndex = 8;
this.btnFwUpdate.Text = "Firmware Update";
this.btnFwUpdate.Click += new System.EventHandler(this.btnFwUpdate_Click);
//
// btnClose
//
this.btnClose.Location = new System.Drawing.Point(3, 418);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(730, 57);
this.btnClose.StyleController = this.layoutControl1;
this.btnClose.TabIndex = 6;
this.btnClose.Text = "CLOSE";
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// btnFind
//
this.btnFind.Location = new System.Drawing.Point(567, 28);
this.btnFind.Name = "btnFind";
this.btnFind.Size = new System.Drawing.Size(162, 22);
this.btnFind.StyleController = this.layoutControl1;
this.btnFind.TabIndex = 5;
this.btnFind.Text = "Find File...";
this.btnFind.Click += new System.EventHandler(this.btnFind_Click);
//
// edFilename
//
this.edFilename.Location = new System.Drawing.Point(87, 28);
this.edFilename.Name = "edFilename";
this.edFilename.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
this.edFilename.Properties.Appearance.Options.UseFont = true;
this.edFilename.Size = new System.Drawing.Size(476, 22);
this.edFilename.StyleController = this.layoutControl1;
this.edFilename.TabIndex = 4;
//
// layoutControlGroup1
//
this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup1.GroupBordersVisible = false;
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem3,
this.layoutControlGroup2,
this.layoutControlGroup3});
this.layoutControlGroup1.Name = "Root";
this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup1.Size = new System.Drawing.Size(736, 478);
this.layoutControlGroup1.TextVisible = false;
//
// layoutControlItem3
//
this.layoutControlItem3.Control = this.btnClose;
this.layoutControlItem3.CustomizationFormText = "layoutControlItem3";
this.layoutControlItem3.Location = new System.Drawing.Point(0, 415);
this.layoutControlItem3.MinSize = new System.Drawing.Size(93, 26);
this.layoutControlItem3.Name = "layoutControlItem3";
this.layoutControlItem3.Size = new System.Drawing.Size(734, 61);
this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem3.TextVisible = false;
//
// layoutControlGroup2
//
this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem4,
this.layoutControlItem8,
this.emptySpaceItem1,
this.emptySpaceItem4,
this.layoutControlItem5,
this.emptySpaceItem3,
this.layoutControlItem2,
this.layoutControlItem1,
this.lcItemGotoBoot,
this.emptySpaceItem5,
this.lcItemGotoApp,
this.emptySpaceItem6,
this.lcItemFlashErase,
this.lcItemFlashWrite,
this.layoutControlItem6});
this.layoutControlGroup2.Location = new System.Drawing.Point(0, 0);
this.layoutControlGroup2.Name = "layoutControlGroup2";
this.layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup2.Size = new System.Drawing.Size(734, 307);
this.layoutControlGroup2.Text = "Update Command";
//
// layoutControlItem4
//
this.layoutControlItem4.Control = this.btnRestart;
this.layoutControlItem4.CustomizationFormText = "layoutControlItem4";
this.layoutControlItem4.Location = new System.Drawing.Point(560, 245);
this.layoutControlItem4.MaxSize = new System.Drawing.Size(0, 33);
this.layoutControlItem4.MinSize = new System.Drawing.Size(93, 33);
this.layoutControlItem4.Name = "layoutControlItem4";
this.layoutControlItem4.Size = new System.Drawing.Size(166, 33);
this.layoutControlItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem4.TextVisible = false;
//
// layoutControlItem8
//
this.layoutControlItem8.Control = this.lbFileInfo;
this.layoutControlItem8.CustomizationFormText = "layoutControlItem8";
this.layoutControlItem8.Location = new System.Drawing.Point(0, 78);
this.layoutControlItem8.MinSize = new System.Drawing.Size(74, 18);
this.layoutControlItem8.Name = "layoutControlItem8";
this.layoutControlItem8.Size = new System.Drawing.Size(560, 200);
this.layoutControlItem8.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem8.TextVisible = false;
//
// emptySpaceItem1
//
this.emptySpaceItem1.AllowHotTrack = false;
this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1";
this.emptySpaceItem1.Location = new System.Drawing.Point(560, 218);
this.emptySpaceItem1.Name = "emptySpaceItem1";
this.emptySpaceItem1.Size = new System.Drawing.Size(166, 27);
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
//
// emptySpaceItem4
//
this.emptySpaceItem4.AllowHotTrack = false;
this.emptySpaceItem4.CustomizationFormText = "emptySpaceItem4";
this.emptySpaceItem4.Location = new System.Drawing.Point(0, 52);
this.emptySpaceItem4.Name = "emptySpaceItem4";
this.emptySpaceItem4.Size = new System.Drawing.Size(560, 26);
this.emptySpaceItem4.TextSize = new System.Drawing.Size(0, 0);
//
// layoutControlItem5
//
this.layoutControlItem5.Control = this.btnFwUpdate;
this.layoutControlItem5.CustomizationFormText = "layoutControlItem5";
this.layoutControlItem5.Location = new System.Drawing.Point(560, 26);
this.layoutControlItem5.MinSize = new System.Drawing.Size(108, 26);
this.layoutControlItem5.Name = "layoutControlItem5";
this.layoutControlItem5.Size = new System.Drawing.Size(166, 26);
this.layoutControlItem5.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem5.TextVisible = false;
//
// emptySpaceItem3
//
this.emptySpaceItem3.AllowHotTrack = false;
this.emptySpaceItem3.CustomizationFormText = "emptySpaceItem3";
this.emptySpaceItem3.Location = new System.Drawing.Point(0, 26);
this.emptySpaceItem3.Name = "emptySpaceItem3";
this.emptySpaceItem3.Size = new System.Drawing.Size(405, 26);
this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0);
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.btnFind;
this.layoutControlItem2.CustomizationFormText = "layoutControlItem2";
this.layoutControlItem2.Location = new System.Drawing.Point(560, 0);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(166, 26);
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// layoutControlItem1
//
this.layoutControlItem1.Control = this.edFilename;
this.layoutControlItem1.CustomizationFormText = "layoutControlItem1";
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(560, 26);
this.layoutControlItem1.Text = "File Name : ";
this.layoutControlItem1.TextSize = new System.Drawing.Size(68, 14);
//
// lcItemGotoBoot
//
this.lcItemGotoBoot.Control = this.btnGotoBoot;
this.lcItemGotoBoot.Location = new System.Drawing.Point(560, 166);
this.lcItemGotoBoot.MinSize = new System.Drawing.Size(89, 26);
this.lcItemGotoBoot.Name = "lcItemGotoBoot";
this.lcItemGotoBoot.Size = new System.Drawing.Size(166, 26);
this.lcItemGotoBoot.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.lcItemGotoBoot.TextSize = new System.Drawing.Size(0, 0);
this.lcItemGotoBoot.TextVisible = false;
//
// emptySpaceItem5
//
this.emptySpaceItem5.AllowHotTrack = false;
this.emptySpaceItem5.Location = new System.Drawing.Point(560, 52);
this.emptySpaceItem5.MinSize = new System.Drawing.Size(166, 24);
this.emptySpaceItem5.Name = "emptySpaceItem5";
this.emptySpaceItem5.Size = new System.Drawing.Size(166, 47);
this.emptySpaceItem5.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.emptySpaceItem5.TextSize = new System.Drawing.Size(0, 0);
//
// lcItemGotoApp
//
this.lcItemGotoApp.Control = this.btnGotoApp;
this.lcItemGotoApp.Location = new System.Drawing.Point(560, 192);
this.lcItemGotoApp.MinSize = new System.Drawing.Size(89, 26);
this.lcItemGotoApp.Name = "lcItemGotoApp";
this.lcItemGotoApp.Size = new System.Drawing.Size(166, 26);
this.lcItemGotoApp.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.lcItemGotoApp.TextSize = new System.Drawing.Size(0, 0);
this.lcItemGotoApp.TextVisible = false;
this.lcItemGotoApp.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
//
// emptySpaceItem6
//
this.emptySpaceItem6.AllowHotTrack = false;
this.emptySpaceItem6.Location = new System.Drawing.Point(560, 151);
this.emptySpaceItem6.Name = "emptySpaceItem6";
this.emptySpaceItem6.Size = new System.Drawing.Size(166, 15);
this.emptySpaceItem6.TextSize = new System.Drawing.Size(0, 0);
//
// lcItemFlashErase
//
this.lcItemFlashErase.Control = this.btnFlashErase;
this.lcItemFlashErase.Location = new System.Drawing.Point(560, 99);
this.lcItemFlashErase.MinSize = new System.Drawing.Size(101, 26);
this.lcItemFlashErase.Name = "lcItemFlashErase";
this.lcItemFlashErase.Size = new System.Drawing.Size(166, 26);
this.lcItemFlashErase.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.lcItemFlashErase.TextSize = new System.Drawing.Size(0, 0);
this.lcItemFlashErase.TextVisible = false;
//
// lcItemFlashWrite
//
this.lcItemFlashWrite.Control = this.btnFlashWrite;
this.lcItemFlashWrite.Location = new System.Drawing.Point(560, 125);
this.lcItemFlashWrite.MinSize = new System.Drawing.Size(101, 26);
this.lcItemFlashWrite.Name = "lcItemFlashWrite";
this.lcItemFlashWrite.Size = new System.Drawing.Size(166, 26);
this.lcItemFlashWrite.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.lcItemFlashWrite.TextSize = new System.Drawing.Size(0, 0);
this.lcItemFlashWrite.TextVisible = false;
//
// layoutControlGroup3
//
this.layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem12,
this.emptySpaceItem2,
this.layoutControlItem9,
this.layoutControlItem11,
this.layoutControlItem10});
this.layoutControlGroup3.Location = new System.Drawing.Point(0, 307);
this.layoutControlGroup3.Name = "layoutControlGroup3";
this.layoutControlGroup3.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup3.Size = new System.Drawing.Size(734, 108);
this.layoutControlGroup3.Text = "Update Status";
//
// layoutControlItem12
//
this.layoutControlItem12.Control = this.lbUpdateStatus;
this.layoutControlItem12.CustomizationFormText = "layoutControlItem12";
this.layoutControlItem12.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem12.MinSize = new System.Drawing.Size(74, 18);
this.layoutControlItem12.Name = "layoutControlItem12";
this.layoutControlItem12.Size = new System.Drawing.Size(530, 18);
this.layoutControlItem12.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem12.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem12.TextVisible = false;
//
// emptySpaceItem2
//
this.emptySpaceItem2.AllowHotTrack = false;
this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2";
this.emptySpaceItem2.Location = new System.Drawing.Point(530, 0);
this.emptySpaceItem2.Name = "emptySpaceItem2";
this.emptySpaceItem2.Size = new System.Drawing.Size(196, 18);
this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
//
// layoutControlItem9
//
this.layoutControlItem9.Control = this.lbUpdateTime;
this.layoutControlItem9.CustomizationFormText = "layoutControlItem9";
this.layoutControlItem9.Location = new System.Drawing.Point(0, 18);
this.layoutControlItem9.MinSize = new System.Drawing.Size(74, 18);
this.layoutControlItem9.Name = "layoutControlItem9";
this.layoutControlItem9.Size = new System.Drawing.Size(530, 18);
this.layoutControlItem9.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem9.TextVisible = false;
//
// layoutControlItem11
//
this.layoutControlItem11.Control = this.lbUpdateProgress;
this.layoutControlItem11.CustomizationFormText = "layoutControlItem11";
this.layoutControlItem11.Location = new System.Drawing.Point(530, 18);
this.layoutControlItem11.MinSize = new System.Drawing.Size(74, 18);
this.layoutControlItem11.Name = "layoutControlItem11";
this.layoutControlItem11.Size = new System.Drawing.Size(196, 18);
this.layoutControlItem11.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem11.TextVisible = false;
//
// layoutControlItem10
//
this.layoutControlItem10.Control = this.pgUpdate;
this.layoutControlItem10.CustomizationFormText = "layoutControlItem10";
this.layoutControlItem10.Location = new System.Drawing.Point(0, 36);
this.layoutControlItem10.MinSize = new System.Drawing.Size(54, 16);
this.layoutControlItem10.Name = "layoutControlItem10";
this.layoutControlItem10.Size = new System.Drawing.Size(726, 43);
this.layoutControlItem10.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem10.TextVisible = false;
//
// edTargetID
//
this.edTargetID.Location = new System.Drawing.Point(492, 54);
this.edTargetID.Name = "edTargetID";
this.edTargetID.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
this.edTargetID.Properties.Appearance.Options.UseFont = true;
this.edTargetID.Properties.EditFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.edTargetID.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.edTargetID.Size = new System.Drawing.Size(71, 22);
this.edTargetID.StyleController = this.layoutControl1;
this.edTargetID.TabIndex = 22;
//
// layoutControlItem6
//
this.layoutControlItem6.Control = this.edTargetID;
this.layoutControlItem6.Location = new System.Drawing.Point(405, 26);
this.layoutControlItem6.Name = "layoutControlItem6";
this.layoutControlItem6.Size = new System.Drawing.Size(155, 26);
this.layoutControlItem6.Text = "Target ID";
this.layoutControlItem6.TextSize = new System.Drawing.Size(68, 14);
//
// fmxFwUpdate
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(736, 478);
this.Controls.Add(this.layoutControl1);
this.IconOptions.Icon = ((System.Drawing.Icon)(resources.GetObject("fmxFwUpdate.IconOptions.Icon")));
this.Name = "fmxFwUpdate";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "fmFwUpdate";
this.Activated += new System.EventHandler(this.fmxFwUpdate_Activated);
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.fmxFwUpdate_FormClosed);
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pgUpdate.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.edFilename.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lcItemGotoBoot)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lcItemGotoApp)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lcItemFlashErase)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lcItemFlashWrite)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.edTargetID.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
private DevExpress.XtraEditors.SimpleButton btnFind;
private DevExpress.XtraEditors.TextEdit edFilename;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
private DevExpress.XtraEditors.SimpleButton btnClose;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
private DevExpress.XtraEditors.SimpleButton btnFwUpdate;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem3;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem4;
private DevExpress.XtraEditors.LabelControl lbFileInfo;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2;
private DevExpress.XtraEditors.LabelControl lbUpdateTime;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9;
private DevExpress.XtraEditors.ProgressBarControl pgUpdate;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10;
private DevExpress.XtraEditors.LabelControl lbUpdateProgress;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11;
private DevExpress.XtraEditors.LabelControl lbUpdateStatus;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem12;
private DevExpress.XtraEditors.SimpleButton btnRestart;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup2;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup3;
private DevExpress.XtraEditors.SimpleButton btnGotoApp;
private DevExpress.XtraEditors.SimpleButton btnGotoBoot;
private DevExpress.XtraLayout.LayoutControlItem lcItemGotoBoot;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem5;
private DevExpress.XtraLayout.LayoutControlItem lcItemGotoApp;
private DevExpress.XtraEditors.SimpleButton btnFlashWrite;
private DevExpress.XtraEditors.SimpleButton btnFlashErase;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem6;
private DevExpress.XtraLayout.LayoutControlItem lcItemFlashErase;
private DevExpress.XtraLayout.LayoutControlItem lcItemFlashWrite;
private DevExpress.XtraEditors.TextEdit edTargetID;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
}
}

View File

@@ -0,0 +1,496 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
using LFP_Manager.Function;
using LFP_Manager.Utils;
namespace LFP_Manager
{
public delegate void AutoTxSetEnvent(bool autoTx);
public delegate void SendDataUartEvent(ushort dev_addr, byte[] data, bool ReplyFlag, int type);
public partial class fmxFwUpdate : XtraForm
{
#region DEFINES
const int FW_UPDATE_START_ADDR = 0x08080000;
const int FW_UPDATE_END_ADDR = 0x080E0000 - 1;
const int FW_UPDATE_SECTOR_SIZE = 0x20000;
const int FW_UPDATE_PACKET_SIZE = 0x800;
const int APP_TO_BOOT = 0;
const int BOOT_TO_APP = 1;
#endregion
#region VARIABLES
private UInt32 SystemId = 0;
private byte[] fwdata;
private int fwsize;
private int FwStartAddr = 0;
private int FwCurrPosition = 0;
private int FwSentLength = 0;
private bool StopUpdate = true;
private DateTime UpdateStartTime;
private TimeSpan UpdateTime;
public event AutoTxSetEnvent OnAutoTxSet = null;
public event SendDataUartEvent OnSendUartData = null;
#endregion
#region CONSTRUCTORS
public fmxFwUpdate(int sID)
{
InitializeComponent();
SystemId = (UInt32)sID;
edTargetID.Text = sID.ToString();
fwdata = null;
fwsize = 0;
btnFwUpdate.Enabled = false;
lcItemFlashErase.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
lcItemFlashWrite.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
lcItemGotoBoot.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
lcItemGotoApp.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
}
#endregion
#region BUTTON EVENTS
private void btnClose_Click(object sender, EventArgs e)
{
Close();
}
private void btnFwUpdate_Click(object sender, EventArgs e)
{
if (edTargetID.Text == "")
{
MessageBox.Show("Please check target id !!");
return;
}
SystemId = Convert.ToUInt32(edTargetID.Text);
if (StopUpdate == true)
{
// Working mode change (Application --> Boot) - It need to be wait more than 1.5sec
OnAutoTxSet?.Invoke(false);
DisplayLabelUpdate("Goto Bootloader Mode");
RequestModeChange(APP_TO_BOOT);
UpdateStartTime = DateTime.Now;
btnFwUpdate.Text = "Cancel Update";
btnFwUpdate.Enabled = false;
for (int i = 0; i < 2000; i += 100)
{
Thread.Sleep(100);
Application.DoEvents();
}
btnFwUpdate.Enabled = true;
// Flash Erase
RequestFlashErase();
}
else
{
StopFwUpdate();
}
}
private void StopFwUpdate()
{
StopUpdate = true;
btnFwUpdate.Text = "Firmware Update";
pgUpdate.Position = 0;
//pgUpdate.Properties.Maximum = 0;
//lbUpdateProgress.Text = "-/-";
lbUpdateStatus.Text = "Stop Update";
}
public static byte[] ToByteArray(String HexString)
{
int NumberChars = HexString.Length;
byte[] bytes = new byte[NumberChars / 2];
for (int i = 0; i < NumberChars; i += 2)
{
bytes[i / 2] = Convert.ToByte(HexString.Substring(i, 2), 16);
}
return bytes;
}
private void btnFind_Click(object sender, EventArgs e)
{
OpenFileDialog oDialog;
oDialog = new OpenFileDialog();
oDialog.DefaultExt = "*.*";
oDialog.Filter = "hex files (*.hex)|*.hex|All files (*.*)|*.*";
if (oDialog.ShowDialog() == DialogResult.OK)
{
edFilename.Text = oDialog.FileName;
int addr1 = 0;
int addr2 = 0;
string[] aline = File.ReadLines(edFilename.Text).ToArray();
for (int i = 0; i < aline.Length; i++)
{
byte[] a = ToByteArray(aline[i].Substring(1, aline[i].Length - 1));
switch (a[3])
{
case 0: // data record
addr2 = (int)((a[1] << 8) | a[2]) + a[0];
if (FwStartAddr == 0)
FwStartAddr = (int)((a[1] << 8) | a[2]);
break;
case 1: // End of file record. Usually, it is 00000001FF
break;
case 2: // Extended Segment address record. This indicates segment base address when 16 bits is not enough for addressing memory;
break;
case 3: // Start segment address record. Indicates initial segment base address.
break;
case 4: // Extended Linear Address Record allows 32 bit addressing.
addr1 = (int)((a[4] << 8) | a[5]);
break;
case 5: // Start Linear Address Record.
break;
}
}
int FwImageSize = (int)((addr1 << 16) + addr2 - FwStartAddr);
if ((FwImageSize % 128) > 0)
{
FwImageSize = ((FwImageSize / 128) + 1) * 128;
}
else
{
FwImageSize = ((FwImageSize / 128) + 0) * 128;
}
addr1 = 0;
addr2 = 0;
fwsize = FwImageSize;
fwdata = new byte[fwsize];
for (int i = 0; i < fwdata.Length; i++)
{
fwdata[i] = 0xFF;
}
for (int i = 0; i < aline.Length; i++)
{
byte[] a = ToByteArray(aline[i].Substring(1, aline[i].Length - 1));
switch (a[3])
{
case 0: // data record
addr2 = (int)((a[1] << 8) | a[2]);
int len = a[0];
for (int j = 0; j < len; j++)
{
fwdata[((addr1 << 16) + addr2) - FwStartAddr + j] = a[4 + j];
}
break;
case 1: // End of file record. Usually, it is 00000001FF
break;
case 2: // Extended Segment address record. This indicates segment base address when 16 bits is not enough for addressing memory;
break;
case 3: // Start segment address record. Indicates initial segment base address.
break;
case 4: // Extended Linear Address Record allows 32 bit addressing.
addr1 = (int)((a[4] << 8) | a[5]);
break;
case 5: // Start Linear Address Record.
break;
}
}
string strName = Path.GetFileName(edFilename.Text);
lbFileInfo.Text = string.Format("File Information");
lbFileInfo.Text += string.Format("\r\n - Filename: {0}", strName);
lbFileInfo.Text += string.Format("\r\n - File Version: {0}", strName.Substring(0, 12));
lbFileInfo.Text += string.Format("\r\n - File Size: {0:#,##0} bytes", fwsize);
lbFileInfo.Text += string.Format("\r\n - Packet Size: {0:#,##0} packets", fwsize / 128);
lbFileInfo.Text += string.Format("\r\n - Last packet: {0:#,##0}", fwsize % 128);
lbFileInfo.Text += string.Format("\r\n - Start Addr : 0x{0:X8}", FwStartAddr);
lbUpdateProgress.Text = string.Format("{0:#,##0}/{1:#,##0} bytes", 0, fwsize);
pgUpdate.Properties.Maximum = (int)fwsize;
btnFwUpdate.Enabled = true;
}
}
#endregion
#region FORM EVENT
private void fmxFwUpdate_Activated(object sender, EventArgs e)
{
//OnAutoTxSet?.Invoke(false);
}
private void fmxFwUpdate_FormClosed(object sender, FormClosedEventArgs e)
{
OnAutoTxSet?.Invoke(true);
}
#endregion
#region PUBLIC FUNCTION
void DisplayLabelUpdate(string msg)
{
if (this.InvokeRequired)
{
this.Invoke(new MethodInvoker(delegate ()
{
lbUpdateStatus.Text = string.Format("Update Status : {0}", msg);
}));
}
else
{
lbUpdateStatus.Text = string.Format("Update Status : {0}", msg);
}
}
void DisplayUpdateProgress()
{
if (this.InvokeRequired)
{
_ = this.Invoke(new MethodInvoker(delegate ()
{
lbUpdateProgress.Text = string.Format("{0:#,##0}/{1:#,##0} bytes", FwCurrPosition, fwsize);
pgUpdate.Position = FwCurrPosition;
UpdateTime = DateTime.Now - UpdateStartTime;
lbUpdateTime.Text = string.Format("{0:mm}:{0:ss}", UpdateTime);
}));
}
else
{
lbUpdateProgress.Text = string.Format("{0:#,##0}/{1:#,##0} bytes", FwCurrPosition, fwsize);
pgUpdate.Position = FwCurrPosition;
UpdateTime = DateTime.Now - UpdateStartTime;
lbUpdateTime.Text = string.Format("{0:mm}:{0:ss}", UpdateTime);
}
}
public void RecvData(byte[] rdata)
{
//lbUpdateStatus.Text = String.Format("Recv Data: 0x{0:X8} {1:X2} {2:X2} {3:X2} {4:X2} {5:X2} {6:X2} {7:X2} {8:X2}"
// , rhdr, rdata[0], rdata[1], rdata[2], rdata[3], rdata[4], rdata[5], rdata[6], rdata[7]);
if (StopUpdate == false)
{
if (rdata[0] == 0x7F)
{
switch (rdata[1])
{
case 0x43: // Erase Flash
if (rdata[2] == 0x79)
{
// Erase Success
DisplayLabelUpdate("Flash Erase Success");
byte[] sdata = new byte[128];
FwCurrPosition = 0;
for (int i = 0; i < sdata.Length; i++)
{
sdata[i] = fwdata[FwCurrPosition + i];
}
RequestFlashWrite(FwStartAddr + FwCurrPosition, sdata);
}
else if (rdata[2] == 0x1F)
{
// Erase Fail
DisplayLabelUpdate("Flash Erase Fail");
StopUpdate = true;
}
break;
case 0x31: // Write Flash
if (rdata[2] == 0x79)
{
// Write Success
string str = string.Format("Flash Write Success - {0}/{1}", FwCurrPosition, FwSentLength);
DisplayLabelUpdate(str);
DisplayUpdateProgress();
FwCurrPosition += FwSentLength;
int Remain = fwdata.Length - FwCurrPosition;
if (Remain > 0)
{
int len = (Remain > 128) ? 128 : Remain;
byte[] sdata = new byte[len];
for (int i = 0; i < sdata.Length; i++)
{
sdata[i] = fwdata[FwCurrPosition + i];
}
RequestFlashWrite(FwStartAddr + FwCurrPosition, sdata);
}
else
{
RequestModeChange(BOOT_TO_APP);
// Write Success
str = string.Format("Complete Update - {0}/{1}", FwCurrPosition, FwSentLength);
DisplayLabelUpdate(str);
DisplayUpdateProgress();
//MessageBox.Show("Complete Firmware Update", "Result", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
else if (rdata[2] == 0x1F)
{
// Write Fail
DisplayLabelUpdate("Flash Write Fail");
StopUpdate = true;
}
break;
}
}
}
}
#endregion
#region UART PACKET FUNCTION
private void RequestModeChange(int mode)
{
byte[] sdata = null;
byte[] crc;
if (mode == 0)
{
// Normal mode --> Bootloader mode
sdata = new byte[8];
sdata[0] = (byte)SystemId; // Dev Address
sdata[1] = 0x50; // Function Code
sdata[2] = 0x80; // Address H
sdata[3] = 0x00; // Address L
sdata[4] = 0x00; // Number of Register H
sdata[5] = 0x00; // Number of Register L
crc = csSerialCommFunction.GetCRC(sdata, 6);
sdata[6] = crc[1]; // CRCH
sdata[7] = crc[0]; // CRCL
StopUpdate = false;
}
else if (mode == 1)
{
// Bootloader mode --> Normal mode
sdata = new byte[5];
sdata[0] = 0x7F; // Dev Address
sdata[1] = 0x21; // Function Code,,+
sdata[2] = 0xDE; // Sub Code
crc = csSerialCommFunction.GetCRC(sdata, 3);
sdata[3] = crc[1]; // CRCH
sdata[4] = crc[0]; // CRCL
StopFwUpdate();
}
OnSendUartData?.Invoke((ushort)SystemId, sdata, false, 0);
}
private void RequestFlashErase()
{
byte[] sdata = null;
byte[] crc;
// Flash Erase
sdata = new byte[5];
sdata[0] = 0x7F; // Dev Address
sdata[1] = 0x43; // Function Code
sdata[2] = 0xBC; // Sub Code
crc = csSerialCommFunction.GetCRC(sdata, 3);
sdata[3] = crc[1]; // CRCH
sdata[4] = crc[0]; // CRCL
OnSendUartData?.Invoke((ushort)SystemId, sdata, true, 0);
}
private void RequestFlashWrite(int addr, byte[] data)
{
byte[] sdata = null;
byte[] crc;
// Flash Write
sdata = new byte[6 + 128 + 2];
for (int i = 0; i < sdata.Length; i++)
{
sdata[i] = 0xFF;
}
sdata[0] = 0x7F; // Dev Address
sdata[1] = 0x31; // Function Code
sdata[2] = 0xCE; // Sub Code
sdata[3] = (byte)(addr >> 16); // Addr H
sdata[4] = (byte)(addr >> 8); // Addr L MSB
sdata[5] = (byte)(addr & 0xff); // Addr L LSB
for (int i = 0; i < data.Length; i++)
{
sdata[6 + i] = data[i];
}
crc = csSerialCommFunction.GetCRC(sdata, sdata.Length - 2);
sdata[sdata.Length - 2] = crc[1]; // CRCH
sdata[sdata.Length - 1] = crc[0]; // CRCL
FwSentLength = data.Length;
OnSendUartData?.Invoke((ushort)SystemId, sdata, false, 0);
}
#endregion
#region BUTTON EVENT
private void btnGotoBoot_Click(object sender, EventArgs e)
{
OnAutoTxSet?.Invoke(false);
RequestModeChange(APP_TO_BOOT);
UpdateStartTime = DateTime.Now;
}
private void btnGotoApp_Click(object sender, EventArgs e)
{
RequestModeChange(BOOT_TO_APP);
}
private void btnFlashErase_Click(object sender, EventArgs e)
{
RequestFlashErase();
}
private void btnFlashWrite_Click(object sender, EventArgs e)
{
byte[] sdata = new byte[128];
FwCurrPosition = 0;
for (int i = 0; i < sdata.Length; i++)
{
sdata[i] = fwdata[FwCurrPosition + i];
}
RequestFlashWrite(FwStartAddr + FwCurrPosition, sdata);
}
#endregion
}
}

File diff suppressed because it is too large Load Diff

943
LFP_Manager/Forms/fmxHistory.Designer.cs generated Normal file
View File

@@ -0,0 +1,943 @@
namespace LFP_Manager.Forms
{
partial class fmxHistory
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fmxHistory));
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.tabHistory = new DevExpress.XtraTab.XtraTabControl();
this.pgGuiHistory = new DevExpress.XtraTab.XtraTabPage();
this.layoutControl2 = new DevExpress.XtraLayout.LayoutControl();
this.ucHistroy1 = new LFP_Manager.Controls.ucHistroy();
this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
this.pgBmsHistory = new DevExpress.XtraTab.XtraTabPage();
this.layoutControl3 = new DevExpress.XtraLayout.LayoutControl();
this.btnExportExcel = new DevExpress.XtraEditors.SimpleButton();
this.btnBmsHistoryReq = new DevExpress.XtraEditors.SimpleButton();
this.gcBmsHistory = new DevExpress.XtraGrid.GridControl();
this.gvBmsHistory = new DevExpress.XtraGrid.Views.Grid.GridView();
this.gcNo = new DevExpress.XtraGrid.Columns.GridColumn();
this.gcHistDateTime = new DevExpress.XtraGrid.Columns.GridColumn();
this.gcStatus = new DevExpress.XtraGrid.Columns.GridColumn();
this.gcWarning = new DevExpress.XtraGrid.Columns.GridColumn();
this.gcProtect = new DevExpress.XtraGrid.Columns.GridColumn();
this.gcError = new DevExpress.XtraGrid.Columns.GridColumn();
this.gcVoltage = new DevExpress.XtraGrid.Columns.GridColumn();
this.gcCurrent = new DevExpress.XtraGrid.Columns.GridColumn();
this.gcSOC = new DevExpress.XtraGrid.Columns.GridColumn();
this.gcSOH = new DevExpress.XtraGrid.Columns.GridColumn();
this.gcTemp1 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gcTemp2 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gcTemp3 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gcTemp4 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gcTemp5 = new DevExpress.XtraGrid.Columns.GridColumn();
this.gcTemp6 = new DevExpress.XtraGrid.Columns.GridColumn();
this.cell_v_1 = new DevExpress.XtraGrid.Columns.GridColumn();
this.cell_v_2 = new DevExpress.XtraGrid.Columns.GridColumn();
this.cell_v_3 = new DevExpress.XtraGrid.Columns.GridColumn();
this.cell_v_4 = new DevExpress.XtraGrid.Columns.GridColumn();
this.cell_v_5 = new DevExpress.XtraGrid.Columns.GridColumn();
this.cell_v_6 = new DevExpress.XtraGrid.Columns.GridColumn();
this.cell_v_7 = new DevExpress.XtraGrid.Columns.GridColumn();
this.cell_v_8 = new DevExpress.XtraGrid.Columns.GridColumn();
this.cell_v_9 = new DevExpress.XtraGrid.Columns.GridColumn();
this.cell_v_10 = new DevExpress.XtraGrid.Columns.GridColumn();
this.cell_v_11 = new DevExpress.XtraGrid.Columns.GridColumn();
this.cell_v_12 = new DevExpress.XtraGrid.Columns.GridColumn();
this.cell_v_13 = new DevExpress.XtraGrid.Columns.GridColumn();
this.cell_v_14 = new DevExpress.XtraGrid.Columns.GridColumn();
this.cell_v_15 = new DevExpress.XtraGrid.Columns.GridColumn();
this.cell_v_16 = new DevExpress.XtraGrid.Columns.GridColumn();
this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlGroup3 = new DevExpress.XtraLayout.LayoutControlGroup();
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlGroup4 = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem();
this.btnClose = new DevExpress.XtraEditors.SimpleButton();
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
this.TmrCheckReq = new System.Windows.Forms.Timer(this.components);
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.tabHistory)).BeginInit();
this.tabHistory.SuspendLayout();
this.pgGuiHistory.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControl2)).BeginInit();
this.layoutControl2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
this.pgBmsHistory.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControl3)).BeginInit();
this.layoutControl3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gcBmsHistory)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gvBmsHistory)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.tabHistory);
this.layoutControl1.Controls.Add(this.btnClose);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 0);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1215, 341, 650, 400);
this.layoutControl1.Root = this.layoutControlGroup1;
this.layoutControl1.Size = new System.Drawing.Size(911, 602);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// tabHistory
//
this.tabHistory.Location = new System.Drawing.Point(3, 3);
this.tabHistory.Name = "tabHistory";
this.tabHistory.SelectedTabPage = this.pgGuiHistory;
this.tabHistory.Size = new System.Drawing.Size(905, 552);
this.tabHistory.TabIndex = 6;
this.tabHistory.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
this.pgGuiHistory,
this.pgBmsHistory});
//
// pgGuiHistory
//
this.pgGuiHistory.Controls.Add(this.layoutControl2);
this.pgGuiHistory.Name = "pgGuiHistory";
this.pgGuiHistory.Size = new System.Drawing.Size(903, 526);
this.pgGuiHistory.Text = "GUI History";
//
// layoutControl2
//
this.layoutControl2.Controls.Add(this.ucHistroy1);
this.layoutControl2.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl2.Location = new System.Drawing.Point(0, 0);
this.layoutControl2.Name = "layoutControl2";
this.layoutControl2.Root = this.Root;
this.layoutControl2.Size = new System.Drawing.Size(903, 526);
this.layoutControl2.TabIndex = 0;
this.layoutControl2.Text = "layoutControl2";
//
// ucHistroy1
//
this.ucHistroy1.Location = new System.Drawing.Point(3, 3);
this.ucHistroy1.Name = "ucHistroy1";
this.ucHistroy1.Size = new System.Drawing.Size(897, 520);
this.ucHistroy1.TabIndex = 4;
//
// Root
//
this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.Root.GroupBordersVisible = false;
this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem1});
this.Root.Name = "Root";
this.Root.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.Root.Size = new System.Drawing.Size(903, 526);
this.Root.TextVisible = false;
//
// layoutControlItem1
//
this.layoutControlItem1.Control = this.ucHistroy1;
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(901, 524);
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
// pgBmsHistory
//
this.pgBmsHistory.Controls.Add(this.layoutControl3);
this.pgBmsHistory.Name = "pgBmsHistory";
this.pgBmsHistory.Size = new System.Drawing.Size(903, 526);
this.pgBmsHistory.Text = "BMS History";
//
// layoutControl3
//
this.layoutControl3.Controls.Add(this.btnExportExcel);
this.layoutControl3.Controls.Add(this.btnBmsHistoryReq);
this.layoutControl3.Controls.Add(this.gcBmsHistory);
this.layoutControl3.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl3.Location = new System.Drawing.Point(0, 0);
this.layoutControl3.Name = "layoutControl3";
this.layoutControl3.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1211, 293, 650, 400);
this.layoutControl3.Root = this.layoutControlGroup2;
this.layoutControl3.Size = new System.Drawing.Size(903, 526);
this.layoutControl3.TabIndex = 0;
this.layoutControl3.Text = "layoutControl3";
//
// btnExportExcel
//
this.btnExportExcel.Location = new System.Drawing.Point(782, 485);
this.btnExportExcel.Name = "btnExportExcel";
this.btnExportExcel.Size = new System.Drawing.Size(113, 33);
this.btnExportExcel.StyleController = this.layoutControl3;
this.btnExportExcel.TabIndex = 6;
this.btnExportExcel.Text = "Export Excel";
this.btnExportExcel.Click += new System.EventHandler(this.btnExportExcel_Click);
//
// btnBmsHistoryReq
//
this.btnBmsHistoryReq.Location = new System.Drawing.Point(781, 29);
this.btnBmsHistoryReq.Name = "btnBmsHistoryReq";
this.btnBmsHistoryReq.Size = new System.Drawing.Size(114, 31);
this.btnBmsHistoryReq.StyleController = this.layoutControl3;
this.btnBmsHistoryReq.TabIndex = 5;
this.btnBmsHistoryReq.Text = "Request";
this.btnBmsHistoryReq.Click += new System.EventHandler(this.btnBmsHistoryReq_Click);
//
// gcBmsHistory
//
this.gcBmsHistory.Location = new System.Drawing.Point(8, 93);
this.gcBmsHistory.MainView = this.gvBmsHistory;
this.gcBmsHistory.Name = "gcBmsHistory";
this.gcBmsHistory.Size = new System.Drawing.Size(887, 388);
this.gcBmsHistory.TabIndex = 4;
this.gcBmsHistory.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
this.gvBmsHistory});
//
// gvBmsHistory
//
this.gvBmsHistory.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
this.gcNo,
this.gcHistDateTime,
this.gcStatus,
this.gcWarning,
this.gcProtect,
this.gcError,
this.gcVoltage,
this.gcCurrent,
this.gcSOC,
this.gcSOH,
this.gcTemp1,
this.gcTemp2,
this.gcTemp3,
this.gcTemp4,
this.gcTemp5,
this.gcTemp6,
this.cell_v_1,
this.cell_v_2,
this.cell_v_3,
this.cell_v_4,
this.cell_v_5,
this.cell_v_6,
this.cell_v_7,
this.cell_v_8,
this.cell_v_9,
this.cell_v_10,
this.cell_v_11,
this.cell_v_12,
this.cell_v_13,
this.cell_v_14,
this.cell_v_15,
this.cell_v_16});
this.gvBmsHistory.GridControl = this.gcBmsHistory;
this.gvBmsHistory.Name = "gvBmsHistory";
this.gvBmsHistory.OptionsView.ColumnAutoWidth = false;
this.gvBmsHistory.OptionsView.ShowGroupPanel = false;
this.gvBmsHistory.CustomColumnDisplayText += new DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventHandler(this.gvBmsHistory_CustomColumnDisplayText);
//
// gcNo
//
this.gcNo.AppearanceCell.Options.UseTextOptions = true;
this.gcNo.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcNo.AppearanceHeader.Options.UseTextOptions = true;
this.gcNo.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcNo.Caption = "No";
this.gcNo.DisplayFormat.FormatString = "0";
this.gcNo.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.gcNo.FieldName = "no";
this.gcNo.Name = "gcNo";
this.gcNo.Visible = true;
this.gcNo.VisibleIndex = 0;
//
// gcHistDateTime
//
this.gcHistDateTime.AppearanceHeader.Options.UseTextOptions = true;
this.gcHistDateTime.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcHistDateTime.Caption = "DateTime";
this.gcHistDateTime.DisplayFormat.FormatString = "yyyy-MM-dd HH:mm:ss";
this.gcHistDateTime.DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime;
this.gcHistDateTime.FieldName = "datetime";
this.gcHistDateTime.Name = "gcHistDateTime";
this.gcHistDateTime.Visible = true;
this.gcHistDateTime.VisibleIndex = 1;
//
// gcStatus
//
this.gcStatus.AppearanceCell.Options.UseTextOptions = true;
this.gcStatus.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcStatus.AppearanceHeader.Options.UseTextOptions = true;
this.gcStatus.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcStatus.Caption = "Status";
this.gcStatus.FieldName = "status";
this.gcStatus.Name = "gcStatus";
this.gcStatus.Visible = true;
this.gcStatus.VisibleIndex = 2;
//
// gcWarning
//
this.gcWarning.AppearanceCell.Options.UseTextOptions = true;
this.gcWarning.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcWarning.AppearanceHeader.Options.UseTextOptions = true;
this.gcWarning.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcWarning.Caption = "Warning";
this.gcWarning.FieldName = "warning";
this.gcWarning.Name = "gcWarning";
this.gcWarning.Visible = true;
this.gcWarning.VisibleIndex = 3;
//
// gcProtect
//
this.gcProtect.AppearanceCell.Options.UseTextOptions = true;
this.gcProtect.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcProtect.AppearanceHeader.Options.UseTextOptions = true;
this.gcProtect.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcProtect.Caption = "Protect";
this.gcProtect.FieldName = "protect";
this.gcProtect.Name = "gcProtect";
this.gcProtect.Visible = true;
this.gcProtect.VisibleIndex = 4;
//
// gcError
//
this.gcError.AppearanceCell.Options.UseTextOptions = true;
this.gcError.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcError.AppearanceHeader.Options.UseTextOptions = true;
this.gcError.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcError.Caption = "Error";
this.gcError.FieldName = "error";
this.gcError.Name = "gcError";
this.gcError.Visible = true;
this.gcError.VisibleIndex = 5;
//
// gcVoltage
//
this.gcVoltage.AppearanceCell.Options.UseTextOptions = true;
this.gcVoltage.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.gcVoltage.AppearanceHeader.Options.UseTextOptions = true;
this.gcVoltage.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcVoltage.Caption = "Voltage";
this.gcVoltage.DisplayFormat.FormatString = "0.00";
this.gcVoltage.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.gcVoltage.FieldName = "voltage";
this.gcVoltage.Name = "gcVoltage";
this.gcVoltage.Visible = true;
this.gcVoltage.VisibleIndex = 6;
//
// gcCurrent
//
this.gcCurrent.AppearanceCell.Options.UseTextOptions = true;
this.gcCurrent.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.gcCurrent.AppearanceHeader.Options.UseTextOptions = true;
this.gcCurrent.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcCurrent.Caption = "Current";
this.gcCurrent.DisplayFormat.FormatString = "0.00";
this.gcCurrent.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.gcCurrent.FieldName = "current";
this.gcCurrent.Name = "gcCurrent";
this.gcCurrent.Visible = true;
this.gcCurrent.VisibleIndex = 7;
//
// gcSOC
//
this.gcSOC.AppearanceCell.Options.UseTextOptions = true;
this.gcSOC.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.gcSOC.AppearanceHeader.Options.UseTextOptions = true;
this.gcSOC.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcSOC.Caption = "SOC";
this.gcSOC.DisplayFormat.FormatString = "0.0";
this.gcSOC.FieldName = "SOC";
this.gcSOC.Name = "gcSOC";
this.gcSOC.Visible = true;
this.gcSOC.VisibleIndex = 8;
//
// gcSOH
//
this.gcSOH.AppearanceCell.Options.UseTextOptions = true;
this.gcSOH.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.gcSOH.AppearanceHeader.Options.UseTextOptions = true;
this.gcSOH.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcSOH.Caption = "SOH";
this.gcSOH.DisplayFormat.FormatString = "0.0";
this.gcSOH.FieldName = "SOH";
this.gcSOH.Name = "gcSOH";
this.gcSOH.Visible = true;
this.gcSOH.VisibleIndex = 9;
//
// gcTemp1
//
this.gcTemp1.AppearanceCell.Options.UseTextOptions = true;
this.gcTemp1.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.gcTemp1.AppearanceHeader.Options.UseTextOptions = true;
this.gcTemp1.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcTemp1.Caption = "Temp1";
this.gcTemp1.DisplayFormat.FormatString = "0.0";
this.gcTemp1.FieldName = "temp_01";
this.gcTemp1.Name = "gcTemp1";
this.gcTemp1.Visible = true;
this.gcTemp1.VisibleIndex = 10;
//
// gcTemp2
//
this.gcTemp2.AppearanceCell.Options.UseTextOptions = true;
this.gcTemp2.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.gcTemp2.AppearanceHeader.Options.UseTextOptions = true;
this.gcTemp2.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcTemp2.Caption = "Temp2";
this.gcTemp2.DisplayFormat.FormatString = "0.0";
this.gcTemp2.FieldName = "temp_02";
this.gcTemp2.Name = "gcTemp2";
this.gcTemp2.Visible = true;
this.gcTemp2.VisibleIndex = 11;
//
// gcTemp3
//
this.gcTemp3.AppearanceCell.Options.UseTextOptions = true;
this.gcTemp3.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.gcTemp3.AppearanceHeader.Options.UseTextOptions = true;
this.gcTemp3.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcTemp3.Caption = "Temp3";
this.gcTemp3.DisplayFormat.FormatString = "0.0";
this.gcTemp3.FieldName = "temp_03";
this.gcTemp3.Name = "gcTemp3";
this.gcTemp3.Visible = true;
this.gcTemp3.VisibleIndex = 12;
//
// gcTemp4
//
this.gcTemp4.AppearanceCell.Options.UseTextOptions = true;
this.gcTemp4.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.gcTemp4.AppearanceHeader.Options.UseTextOptions = true;
this.gcTemp4.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcTemp4.Caption = "Temp4";
this.gcTemp4.DisplayFormat.FormatString = "0.0";
this.gcTemp4.FieldName = "temp_04";
this.gcTemp4.Name = "gcTemp4";
this.gcTemp4.Visible = true;
this.gcTemp4.VisibleIndex = 13;
//
// gcTemp5
//
this.gcTemp5.AppearanceCell.Options.UseTextOptions = true;
this.gcTemp5.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.gcTemp5.AppearanceHeader.Options.UseTextOptions = true;
this.gcTemp5.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcTemp5.Caption = "Temp5";
this.gcTemp5.DisplayFormat.FormatString = "0.0";
this.gcTemp5.FieldName = "temp_05";
this.gcTemp5.Name = "gcTemp5";
this.gcTemp5.Visible = true;
this.gcTemp5.VisibleIndex = 14;
//
// gcTemp6
//
this.gcTemp6.AppearanceCell.Options.UseTextOptions = true;
this.gcTemp6.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.gcTemp6.AppearanceHeader.Options.UseTextOptions = true;
this.gcTemp6.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.gcTemp6.Caption = "Temp6";
this.gcTemp6.DisplayFormat.FormatString = "0.0";
this.gcTemp6.FieldName = "temp_06";
this.gcTemp6.Name = "gcTemp6";
this.gcTemp6.Visible = true;
this.gcTemp6.VisibleIndex = 15;
//
// cell_v_1
//
this.cell_v_1.AppearanceCell.Options.UseTextOptions = true;
this.cell_v_1.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.cell_v_1.AppearanceHeader.Options.UseTextOptions = true;
this.cell_v_1.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.cell_v_1.Caption = "cell_v_1";
this.cell_v_1.DisplayFormat.FormatString = "0.000";
this.cell_v_1.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.cell_v_1.FieldName = "cell_v_01";
this.cell_v_1.Name = "cell_v_1";
this.cell_v_1.Visible = true;
this.cell_v_1.VisibleIndex = 16;
//
// cell_v_2
//
this.cell_v_2.AppearanceCell.Options.UseTextOptions = true;
this.cell_v_2.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.cell_v_2.AppearanceHeader.Options.UseTextOptions = true;
this.cell_v_2.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.cell_v_2.Caption = "cell_v_2";
this.cell_v_2.DisplayFormat.FormatString = "0.000";
this.cell_v_2.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.cell_v_2.FieldName = "cell_v_02";
this.cell_v_2.Name = "cell_v_2";
this.cell_v_2.Visible = true;
this.cell_v_2.VisibleIndex = 17;
//
// cell_v_3
//
this.cell_v_3.AppearanceCell.Options.UseTextOptions = true;
this.cell_v_3.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.cell_v_3.AppearanceHeader.Options.UseTextOptions = true;
this.cell_v_3.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.cell_v_3.Caption = "cell_v_3";
this.cell_v_3.DisplayFormat.FormatString = "0.000";
this.cell_v_3.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.cell_v_3.FieldName = "cell_v_03";
this.cell_v_3.Name = "cell_v_3";
this.cell_v_3.Visible = true;
this.cell_v_3.VisibleIndex = 18;
//
// cell_v_4
//
this.cell_v_4.AppearanceCell.Options.UseTextOptions = true;
this.cell_v_4.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.cell_v_4.AppearanceHeader.Options.UseTextOptions = true;
this.cell_v_4.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.cell_v_4.Caption = "cell_v_4";
this.cell_v_4.DisplayFormat.FormatString = "0.000";
this.cell_v_4.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.cell_v_4.FieldName = "cell_v_04";
this.cell_v_4.Name = "cell_v_4";
this.cell_v_4.Visible = true;
this.cell_v_4.VisibleIndex = 19;
//
// cell_v_5
//
this.cell_v_5.AppearanceCell.Options.UseTextOptions = true;
this.cell_v_5.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.cell_v_5.AppearanceHeader.Options.UseTextOptions = true;
this.cell_v_5.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.cell_v_5.Caption = "cell_v_5";
this.cell_v_5.DisplayFormat.FormatString = "0.000";
this.cell_v_5.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.cell_v_5.FieldName = "cell_v_05";
this.cell_v_5.Name = "cell_v_5";
this.cell_v_5.Visible = true;
this.cell_v_5.VisibleIndex = 20;
//
// cell_v_6
//
this.cell_v_6.AppearanceCell.Options.UseTextOptions = true;
this.cell_v_6.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.cell_v_6.AppearanceHeader.Options.UseTextOptions = true;
this.cell_v_6.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.cell_v_6.Caption = "cell_v_6";
this.cell_v_6.DisplayFormat.FormatString = "0.000";
this.cell_v_6.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.cell_v_6.FieldName = "cell_v_06";
this.cell_v_6.Name = "cell_v_6";
this.cell_v_6.Visible = true;
this.cell_v_6.VisibleIndex = 21;
//
// cell_v_7
//
this.cell_v_7.AppearanceCell.Options.UseTextOptions = true;
this.cell_v_7.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.cell_v_7.AppearanceHeader.Options.UseTextOptions = true;
this.cell_v_7.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.cell_v_7.Caption = "cell_v_7";
this.cell_v_7.DisplayFormat.FormatString = "0.000";
this.cell_v_7.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.cell_v_7.FieldName = "cell_v_07";
this.cell_v_7.Name = "cell_v_7";
this.cell_v_7.Visible = true;
this.cell_v_7.VisibleIndex = 22;
//
// cell_v_8
//
this.cell_v_8.AppearanceCell.Options.UseTextOptions = true;
this.cell_v_8.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.cell_v_8.AppearanceHeader.Options.UseTextOptions = true;
this.cell_v_8.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.cell_v_8.Caption = "cell_v_8";
this.cell_v_8.DisplayFormat.FormatString = "0.000";
this.cell_v_8.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.cell_v_8.FieldName = "cell_v_08";
this.cell_v_8.Name = "cell_v_8";
this.cell_v_8.Visible = true;
this.cell_v_8.VisibleIndex = 23;
//
// cell_v_9
//
this.cell_v_9.AppearanceCell.Options.UseTextOptions = true;
this.cell_v_9.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.cell_v_9.AppearanceHeader.Options.UseTextOptions = true;
this.cell_v_9.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.cell_v_9.Caption = "cell_v_9";
this.cell_v_9.DisplayFormat.FormatString = "0.000";
this.cell_v_9.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.cell_v_9.FieldName = "cell_v_09";
this.cell_v_9.Name = "cell_v_9";
this.cell_v_9.Visible = true;
this.cell_v_9.VisibleIndex = 24;
//
// cell_v_10
//
this.cell_v_10.AppearanceCell.Options.UseTextOptions = true;
this.cell_v_10.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.cell_v_10.AppearanceHeader.Options.UseTextOptions = true;
this.cell_v_10.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.cell_v_10.Caption = "cell_v_10";
this.cell_v_10.DisplayFormat.FormatString = "0.000";
this.cell_v_10.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.cell_v_10.FieldName = "cell_v_10";
this.cell_v_10.Name = "cell_v_10";
this.cell_v_10.Visible = true;
this.cell_v_10.VisibleIndex = 25;
//
// cell_v_11
//
this.cell_v_11.AppearanceCell.Options.UseTextOptions = true;
this.cell_v_11.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.cell_v_11.AppearanceHeader.Options.UseTextOptions = true;
this.cell_v_11.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.cell_v_11.Caption = "cell_v_11";
this.cell_v_11.DisplayFormat.FormatString = "0.000";
this.cell_v_11.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.cell_v_11.FieldName = "cell_v_11";
this.cell_v_11.Name = "cell_v_11";
this.cell_v_11.Visible = true;
this.cell_v_11.VisibleIndex = 26;
//
// cell_v_12
//
this.cell_v_12.AppearanceCell.Options.UseTextOptions = true;
this.cell_v_12.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.cell_v_12.AppearanceHeader.Options.UseTextOptions = true;
this.cell_v_12.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.cell_v_12.Caption = "cell_v_12";
this.cell_v_12.DisplayFormat.FormatString = "0.000";
this.cell_v_12.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.cell_v_12.FieldName = "cell_v_12";
this.cell_v_12.Name = "cell_v_12";
this.cell_v_12.Visible = true;
this.cell_v_12.VisibleIndex = 27;
//
// cell_v_13
//
this.cell_v_13.AppearanceCell.Options.UseTextOptions = true;
this.cell_v_13.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.cell_v_13.AppearanceHeader.Options.UseTextOptions = true;
this.cell_v_13.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.cell_v_13.Caption = "cell_v_13";
this.cell_v_13.DisplayFormat.FormatString = "0.000";
this.cell_v_13.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.cell_v_13.FieldName = "cell_v_13";
this.cell_v_13.Name = "cell_v_13";
this.cell_v_13.Visible = true;
this.cell_v_13.VisibleIndex = 28;
//
// cell_v_14
//
this.cell_v_14.AppearanceCell.Options.UseTextOptions = true;
this.cell_v_14.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.cell_v_14.AppearanceHeader.Options.UseTextOptions = true;
this.cell_v_14.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.cell_v_14.Caption = "cell_v_14";
this.cell_v_14.DisplayFormat.FormatString = "0.000";
this.cell_v_14.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.cell_v_14.FieldName = "cell_v_14";
this.cell_v_14.Name = "cell_v_14";
this.cell_v_14.Visible = true;
this.cell_v_14.VisibleIndex = 29;
//
// cell_v_15
//
this.cell_v_15.AppearanceCell.Options.UseTextOptions = true;
this.cell_v_15.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.cell_v_15.AppearanceHeader.Options.UseTextOptions = true;
this.cell_v_15.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.cell_v_15.Caption = "cell_v_15";
this.cell_v_15.DisplayFormat.FormatString = "0.000";
this.cell_v_15.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.cell_v_15.FieldName = "cell_v_15";
this.cell_v_15.Name = "cell_v_15";
this.cell_v_15.Visible = true;
this.cell_v_15.VisibleIndex = 30;
//
// cell_v_16
//
this.cell_v_16.AppearanceCell.Options.UseTextOptions = true;
this.cell_v_16.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.cell_v_16.AppearanceHeader.Options.UseTextOptions = true;
this.cell_v_16.AppearanceHeader.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.cell_v_16.Caption = "cell_v_16";
this.cell_v_16.DisplayFormat.FormatString = "0.000";
this.cell_v_16.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric;
this.cell_v_16.FieldName = "cell_v_16";
this.cell_v_16.Name = "cell_v_16";
this.cell_v_16.Visible = true;
this.cell_v_16.VisibleIndex = 31;
//
// layoutControlGroup2
//
this.layoutControlGroup2.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup2.GroupBordersVisible = false;
this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlGroup3,
this.layoutControlGroup4});
this.layoutControlGroup2.Name = "Root";
this.layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 2, 2);
this.layoutControlGroup2.Size = new System.Drawing.Size(903, 526);
this.layoutControlGroup2.TextVisible = false;
//
// layoutControlGroup3
//
this.layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.emptySpaceItem1,
this.layoutControlItem5});
this.layoutControlGroup3.Location = new System.Drawing.Point(0, 0);
this.layoutControlGroup3.Name = "layoutControlGroup3";
this.layoutControlGroup3.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup3.Size = new System.Drawing.Size(899, 64);
this.layoutControlGroup3.Text = "Command";
//
// emptySpaceItem1
//
this.emptySpaceItem1.AllowHotTrack = false;
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 0);
this.emptySpaceItem1.Name = "emptySpaceItem1";
this.emptySpaceItem1.Size = new System.Drawing.Size(773, 35);
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
//
// layoutControlItem5
//
this.layoutControlItem5.Control = this.btnBmsHistoryReq;
this.layoutControlItem5.Location = new System.Drawing.Point(773, 0);
this.layoutControlItem5.MinSize = new System.Drawing.Size(89, 26);
this.layoutControlItem5.Name = "layoutControlItem5";
this.layoutControlItem5.Size = new System.Drawing.Size(118, 35);
this.layoutControlItem5.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem5.TextVisible = false;
//
// layoutControlGroup4
//
this.layoutControlGroup4.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem4,
this.layoutControlItem6,
this.emptySpaceItem2});
this.layoutControlGroup4.Location = new System.Drawing.Point(0, 64);
this.layoutControlGroup4.Name = "layoutControlGroup4";
this.layoutControlGroup4.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup4.Size = new System.Drawing.Size(899, 458);
this.layoutControlGroup4.Text = "Result";
//
// layoutControlItem4
//
this.layoutControlItem4.Control = this.gcBmsHistory;
this.layoutControlItem4.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem4.MinSize = new System.Drawing.Size(104, 24);
this.layoutControlItem4.Name = "layoutControlItem4";
this.layoutControlItem4.Size = new System.Drawing.Size(891, 392);
this.layoutControlItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem4.TextVisible = false;
//
// layoutControlItem6
//
this.layoutControlItem6.Control = this.btnExportExcel;
this.layoutControlItem6.Location = new System.Drawing.Point(774, 392);
this.layoutControlItem6.MinSize = new System.Drawing.Size(89, 26);
this.layoutControlItem6.Name = "layoutControlItem6";
this.layoutControlItem6.Size = new System.Drawing.Size(117, 37);
this.layoutControlItem6.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem6.TextVisible = false;
//
// emptySpaceItem2
//
this.emptySpaceItem2.AllowHotTrack = false;
this.emptySpaceItem2.Location = new System.Drawing.Point(0, 392);
this.emptySpaceItem2.MinSize = new System.Drawing.Size(104, 24);
this.emptySpaceItem2.Name = "emptySpaceItem2";
this.emptySpaceItem2.Size = new System.Drawing.Size(774, 37);
this.emptySpaceItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
//
// btnClose
//
this.btnClose.Location = new System.Drawing.Point(3, 559);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(905, 40);
this.btnClose.StyleController = this.layoutControl1;
this.btnClose.TabIndex = 5;
this.btnClose.Text = "Close";
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// layoutControlGroup1
//
this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup1.GroupBordersVisible = false;
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem2,
this.layoutControlItem3});
this.layoutControlGroup1.Name = "Root";
this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup1.Size = new System.Drawing.Size(911, 602);
this.layoutControlGroup1.TextVisible = false;
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.btnClose;
this.layoutControlItem2.Location = new System.Drawing.Point(0, 556);
this.layoutControlItem2.MinSize = new System.Drawing.Size(89, 26);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(909, 44);
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// layoutControlItem3
//
this.layoutControlItem3.Control = this.tabHistory;
this.layoutControlItem3.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem3.Name = "layoutControlItem3";
this.layoutControlItem3.Size = new System.Drawing.Size(909, 556);
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem3.TextVisible = false;
//
// TmrCheckReq
//
this.TmrCheckReq.Interval = 500;
this.TmrCheckReq.Tick += new System.EventHandler(this.TmrCheckReq_Tick);
//
// fmxHistory
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(911, 602);
this.Controls.Add(this.layoutControl1);
this.IconOptions.Image = ((System.Drawing.Image)(resources.GetObject("fmxHistory.IconOptions.Image")));
this.Name = "fmxHistory";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "History";
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.tabHistory)).EndInit();
this.tabHistory.ResumeLayout(false);
this.pgGuiHistory.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControl2)).EndInit();
this.layoutControl2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
this.pgBmsHistory.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControl3)).EndInit();
this.layoutControl3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.gcBmsHistory)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gvBmsHistory)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
private Controls.ucHistroy ucHistroy1;
private DevExpress.XtraEditors.SimpleButton btnClose;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
private DevExpress.XtraTab.XtraTabControl tabHistory;
private DevExpress.XtraTab.XtraTabPage pgGuiHistory;
private DevExpress.XtraLayout.LayoutControl layoutControl2;
private DevExpress.XtraLayout.LayoutControlGroup Root;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
private DevExpress.XtraTab.XtraTabPage pgBmsHistory;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
private DevExpress.XtraLayout.LayoutControl layoutControl3;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup2;
private DevExpress.XtraGrid.GridControl gcBmsHistory;
private DevExpress.XtraGrid.Views.Grid.GridView gvBmsHistory;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
private DevExpress.XtraEditors.SimpleButton btnBmsHistoryReq;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup3;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup4;
private DevExpress.XtraGrid.Columns.GridColumn gcHistDateTime;
private DevExpress.XtraGrid.Columns.GridColumn gcStatus;
private DevExpress.XtraGrid.Columns.GridColumn gcWarning;
private DevExpress.XtraGrid.Columns.GridColumn gcProtect;
private DevExpress.XtraGrid.Columns.GridColumn gcError;
private DevExpress.XtraGrid.Columns.GridColumn gcVoltage;
private DevExpress.XtraGrid.Columns.GridColumn gcCurrent;
private DevExpress.XtraGrid.Columns.GridColumn gcSOC;
private DevExpress.XtraGrid.Columns.GridColumn gcSOH;
private DevExpress.XtraGrid.Columns.GridColumn gcTemp1;
private DevExpress.XtraGrid.Columns.GridColumn gcTemp2;
private DevExpress.XtraGrid.Columns.GridColumn gcTemp3;
private DevExpress.XtraGrid.Columns.GridColumn gcTemp4;
private DevExpress.XtraGrid.Columns.GridColumn gcTemp5;
private DevExpress.XtraGrid.Columns.GridColumn gcTemp6;
private DevExpress.XtraGrid.Columns.GridColumn cell_v_1;
private DevExpress.XtraGrid.Columns.GridColumn cell_v_2;
private DevExpress.XtraGrid.Columns.GridColumn cell_v_3;
private DevExpress.XtraGrid.Columns.GridColumn cell_v_4;
private DevExpress.XtraGrid.Columns.GridColumn cell_v_5;
private DevExpress.XtraGrid.Columns.GridColumn cell_v_6;
private DevExpress.XtraGrid.Columns.GridColumn cell_v_7;
private DevExpress.XtraGrid.Columns.GridColumn cell_v_8;
private DevExpress.XtraGrid.Columns.GridColumn cell_v_9;
private DevExpress.XtraGrid.Columns.GridColumn cell_v_10;
private DevExpress.XtraGrid.Columns.GridColumn cell_v_11;
private DevExpress.XtraGrid.Columns.GridColumn cell_v_12;
private DevExpress.XtraGrid.Columns.GridColumn cell_v_13;
private DevExpress.XtraGrid.Columns.GridColumn cell_v_14;
private DevExpress.XtraGrid.Columns.GridColumn cell_v_15;
private DevExpress.XtraGrid.Columns.GridColumn cell_v_16;
private DevExpress.XtraEditors.SimpleButton btnExportExcel;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2;
private DevExpress.XtraGrid.Columns.GridColumn gcNo;
private System.Windows.Forms.Timer TmrCheckReq;
}
}

View File

@@ -0,0 +1,321 @@
using LFP_Manager.DataStructure;
using LFP_Manager.Function;
using System;
using System.Data;
using System.Windows.Forms;
namespace LFP_Manager.Forms
{
public partial class fmxHistory : DevExpress.XtraEditors.XtraForm
{
#region VARIABLES
private int SystemId = 0;
private CommConfig Config;
private byte[] rData = null;
private ushort curr_addr = 0;
private int hist_no = 0;
private bool stopReq = true;
private DateTime ReqDateTime;
private DataTable BmsHistoryTable = null;
public event SendDataUartEvent OnSendUartData = null;
#endregion
#region CONTRUCTORS
//public fmxHistory()
//{
// InitializeComponent();
//}
public fmxHistory(CommConfig aConfig, int systemId)
{
InitializeComponent();
Config = aConfig;
ucHistroy1.SetCommCofig(Config);
SystemId = systemId;
CreateHistoryColomn(ref BmsHistoryTable);
switch (Config.CommType)
{
case csConstData.CommType.COMM_UART:
pgBmsHistory.PageEnabled = true;
//tabHistory.TabPages.Remove(pgBmsHistory);
break;
case csConstData.CommType.COMM_RS485:
pgBmsHistory.PageEnabled = false;
tabHistory.TabPages.Remove(pgBmsHistory);
break;
case csConstData.CommType.COMM_SNMP:
pgBmsHistory.PageEnabled = false;
tabHistory.TabPages.Remove(pgBmsHistory);
break;
default:
break;
}
}
#endregion
#region INITIALIZE COMPONENT
private void CreateHistoryColomn(ref DataTable hDT)
{
hDT = new DataTable();
hDT.Columns.Add("no", typeof(int));
hDT.Columns.Add("datetime", typeof(DateTime));
hDT.Columns.Add("status", typeof(int));
hDT.Columns.Add("warning", typeof(string));
hDT.Columns.Add("protect", typeof(string));
hDT.Columns.Add("error", typeof(string));
hDT.Columns.Add("voltage", typeof(float));
hDT.Columns.Add("current", typeof(float));
hDT.Columns.Add("SOC", typeof(float));
hDT.Columns.Add("SOH", typeof(float));
for (int i = 0; i < 6; i++)
{
hDT.Columns.Add(string.Format("temp_{0:00}", i + 1), typeof(float));
}
for (int i = 0; i < 16; i++)
{
hDT.Columns.Add(string.Format("cell_v_{0:00}", i + 1), typeof(float));
}
gcBmsHistory.DataSource = hDT;
}
#endregion
#region PUBLIC FUNCTIONS
private short[] ByteArrTo2Short(byte[] bytes)
{
short[] result = null;
if (bytes != null)
{
int len = bytes[2];
result = new short[len / 2];
for (int i = 0; i < result.Length; i++)
{
result[i] = (short)((bytes[3 + (i * 2) + 0] << 8) + bytes[3 + (i * 2) + 1]);
}
}
return result;
}
public void RecvUardData(byte[] data)
{
rData = data;
if ((rData != null) && (rData.Length > 58))
{
try
{
DataRow hRow = BmsHistoryTable.NewRow();
short[] shorts = ByteArrTo2Short(data);
int pos = 0;
int yy, MM, dd, HH, mm, ss;
Int32 iDateTime = (rData[3 + 2] << 24) | (rData[3 + 3] << 16) | (rData[3 + 0] << 8) | (rData[3 + 1] << 0);
//Int32 iDateTime = (Int32)((shorts[pos + 1] << 16) | (shorts[pos + 0] << 0));
yy = (iDateTime >> 26) & 0x003F;
MM = (iDateTime >> 22) & 0x000F;
dd = (iDateTime >> 17) & 0x001F;
HH = (iDateTime >> 12) & 0x001F;
mm = (iDateTime >> 6) & 0x003F;
ss = (iDateTime >> 0) & 0x003F;
hRow["no"] = hist_no;
string stDateTime = string.Format("{0}-{1:00}-{2:00} {3:00}:{4:00}:{5:00}"
, yy
, MM
, dd
, HH
, mm
, ss
);
DateTime aDateTime = Convert.ToDateTime(stDateTime);
hRow["datetime"] = aDateTime;
pos = 2;
hRow["status"] = shorts[pos++];
hRow["warning"] = string.Format("{0:X4}", shorts[pos++]);
hRow["protect"] = string.Format("{0:X4}", shorts[pos++]);
hRow["error"] = string.Format("{0:X4}", shorts[pos++]);
hRow["voltage"] = string.Format("{0:0.00}", Convert.ToDouble(shorts[pos++]) / 100);
hRow["current"] = string.Format("{0:0.00}", Convert.ToDouble(shorts[pos++]) / 100);
hRow["SOC"] = string.Format("{0:0.0}", Convert.ToDouble(shorts[pos++]) / 1);
// Temperature
for (int i = 0; i < 3; i++)
{
hRow[string.Format("temp_{0:00}", (i * 2) + 1)] = Convert.ToDouble((byte)(shorts[pos] >> 8));
hRow[string.Format("temp_{0:00}", (i * 2) + 2)] = Convert.ToDouble((byte)(shorts[pos++] >> 0));
}
// Cell Voltage
for (int i = 0; i < 16; i++)
{
hRow[string.Format("cell_v_{0:00}", i + 1)] = Convert.ToDouble(shorts[pos++]) / 1000;
}
hRow["SOH"] = string.Format("{0:0.0}", Convert.ToDouble(shorts[pos++]) / 1);
BmsHistoryTable.Rows.Add(hRow);
}
catch (Exception e)
{
MessageBox.Show(e.Message);
}
}
gvBmsHistory.BestFitColumns();
gvBmsHistory.ClearSelection();
hist_no++;
curr_addr += 0x20;
RequestHistoryData(curr_addr);
}
#endregion
#region BUTTON EVENT
private void btnClose_Click(object sender, EventArgs e)
{
Close();
}
private void btnBmsHistoryReq_Click(object sender, EventArgs e)
{
if (stopReq)
{
BmsHistoryTable.Rows.Clear();
stopReq = false;
hist_no = 1;
curr_addr = 0x0200;
TmrCheckReq.Enabled = true;
RequestHistoryData(curr_addr);
btnBmsHistoryReq.Text = "STOP";
}
else
{
stopReq = true;
//btnBmsHistoryReq.Text = "Request";
//TmrCheckReq.Enabled = false;
}
}
private void RequestHistoryData(ushort haddr)
{
byte[] crc;
ushort addr = haddr;
// Normal mode --> Bootloader mode
byte[] sdata = new byte[8];
sdata[0] = (byte)SystemId; // Dev Address
sdata[1] = 0x03; // Function Code
sdata[2] = (byte)(addr >> 8); // Address H
sdata[3] = (byte)(addr >> 0); // Address L
sdata[4] = 0x00; // Number of Register H
sdata[5] = 0x1D; // Number of Register L
crc = csSerialCommFunction.GetCRC(sdata, 6);
sdata[6] = crc[1]; // CRCH
sdata[7] = crc[0]; // CRCL
if (stopReq == false)
{
OnSendUartData?.Invoke(addr, sdata, false, 1);
ReqDateTime = DateTime.Now;
}
}
private void btnExportExcel_Click(object sender, EventArgs e)
{
SaveFileDialog sDialog = new SaveFileDialog();
sDialog.Title = "Select save file";
sDialog.DefaultExt = "xlsx";
sDialog.Filter = "Excel files 2003 (*.xls)|*.xls|All files (*.*)|*.*";
if (sDialog.ShowDialog() == DialogResult.OK)
{
string filename = sDialog.FileName;
try
{
csExcelExport.ExportToExcelExt(BmsHistoryTable, filename);
MessageBox.Show("Complete Export Excel File", "Result", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Exception", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
#endregion
#region GRID DISPLAY
private void gvBmsHistory_CustomColumnDisplayText(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs e)
{
if (e.Column.FieldName == "status")
{
int status = Convert.ToInt32(e.Value);
switch (status)
{
case 0:
e.DisplayText = "Standby";
break;
case 1:
e.DisplayText = "Charging";
break;
case 2:
e.DisplayText = "Discharging";
break;
case 4:
e.DisplayText = "Protect";
break;
case 8:
e.DisplayText = "Charging-Lmt";
break;
case 0x32:
e.DisplayText = "Power-On";
break;
default:
e.DisplayText = string.Format("Unknown({0:X4})", status);
break;
}
}
}
#endregion
#region TIMER EVENT
private void TmrCheckReq_Tick(object sender, EventArgs e)
{
DateTime nDateTime = ReqDateTime.AddSeconds(1);
if (nDateTime < DateTime.Now)
{
TmrCheckReq.Enabled = false;
MessageBox.Show("Finished BMS History Read", "Result", MessageBoxButtons.OK, MessageBoxIcon.Information);
btnBmsHistoryReq.Text = "Request";
}
}
#endregion
}
}

View File

@@ -0,0 +1,151 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="TmrCheckReq.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="fmxHistory.IconOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAABMxJREFUWEflVWtsFVUQPrdtSvilMRIVY8T4h1/aoDGKqIWCIBXR+IgaAmriD/CR
SIyVYjSSPmhLrVVTBa6tQNGIBSqYCEEera34KCqFEmgLNa34qPRaeqHv23G+2Z3tXrp3u/iHGCeZnN09
M2e++WbOrKFLLP8dACMjI87qp2oTVAIBcB8Y8zncvRcUxEUxoIdGon3UdbbX0TPdvdR9vl/23HZBZFwA
euDQcEzedze00aSF79Ckx9+nKx8rc3Tyo2V0+GSn2AyzbVAgvgD0gFgsRsOsfQNDNPXZCjLpq8nc9xaZ
ucWW4vmuPJqZ9Rm8xDZIcEggBjT7VR8fJHNnLiUveNsKOr/EUn5Ovp+/MYhNe5vEFj5BWEgIQJ1BJ5qr
5dcITcwsoZBmzIFDeBcA9jq7iK554gOK9PQJC8KEfVYiGbcEmv0Db1aTuTufkjKt7CXgvWu4BKw2C0lg
YUYevbTugPgM2iz4iScAzX5waFjePz/YSmZWgUWzBuJSLF+7nx7J3SlB5Rv2GMwEXrUhxyvFGABqiMaD
87neAbrxqTCF5hRx9hbVoTlr6CrufDRly+kIpc4rpiQO6oCbWUDpWVvsJPxZGAsAyg5KffZHdXGNJ+s9
+bRhz1HZh7xa8bU0oGMDEPxeufeY7PuxEAdAjfQeH2/vsrJj9coOB6PRengITVmyXpjRxgzZDfk3Dy3Y
gFGN4RbPEgAAZP7r26zGc+rL2fEt+Kn1TweA9smWmuNim8pDCgxgxfsKZgeiLFwoDgBs6qGQ7fUtdtcn
6HAOjMxgj17AikFk0t7gkuWRmZ5L5o4cMrfnUE1jB9uOMusGIgD0g0w8NoqeH6Api9eTySi06LQpvW7R
Ojp7rl8Cs5P4uAX/hWwGmF1RJ5mv3FBHr5Tto+pvWmXfi4U4BpTOrPLa+KuFldn4lGmGACSGTUPzH7Tn
0C9UsfsIlWxtoPCXjfTF96dox7etcnWhO787SZ981UT1TactXwbvZsHoi9JztO0vuceotwTH4OGun51d
JVmrHcB2MxsdnT104HA7vcYZX79orVUCph2ApRQzuBTTc+jyh96l385ExzQkA7AecDAkY0UVB1w9mj0r
bsKRtk4ZyQrAS/C9fFcjXc1/RsNzI3VhKaXwORMetBpycfEusXOXgksw2nib9x3j+5vvTDy511wK3HMI
slZHrKrICnua2YmOCE19+kOrh7SJsc4qpP0/t4uNgjB4wAGo6bVPMoUZRaONx1ncsCRMUZ6GsIFCFARE
QejzwOCQPDfzz+syvopJ87SUDCC9gG5etpFt+AZxXAA2vf2Ww3LuXtTMoR4OXPtt9c2yr9m7g7tF9uy1
3wZRWv3j2Gbm95Lth2Qf11duQeOpTmm8FM4agVMWlErN5q7cKoZe18dL1AaZwQd609KNMj1RTpydzP10
xcPv0e9dUbbjEuBeT3u+0upcrhmMETyFJ96Jjq64xgsKAmqBJqrlISQ3gumXs3memNtWUSZPWYjJCtdS
2nObaNoLlQLk1hc3Uxo3UGHVD2Lg1/V+Ah/tmZfDNZT2TLmcjRi3sCLmDvzmUYdEguw1+MWAcPv4+aH/
nFGMYKryzvVR8TskkaiPnuUVA+JMQi+F6Ppv5MLzvNT5F1wq+b8DIPoHjJf5qaq9hPwAAAAASUVORK5C
YII=
</value>
</data>
</root>

View File

@@ -0,0 +1,454 @@
namespace LFP_Manager.Forms
{
partial class fmxInventoryConfig
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fmxInventoryConfig));
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.btnClose = new DevExpress.XtraEditors.SimpleButton();
this.gbSerialNo = new DevExpress.XtraEditors.GroupControl();
this.layoutControl2 = new DevExpress.XtraLayout.LayoutControl();
this.nSerialNo = new DevExpress.XtraEditors.TextEdit();
this.lbSerialNo = new DevExpress.XtraEditors.LabelControl();
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
this.gbMDate = new DevExpress.XtraEditors.GroupControl();
this.layoutControl3 = new DevExpress.XtraLayout.LayoutControl();
this.lbMDate = new DevExpress.XtraEditors.LabelControl();
this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
this.tmrDisplay = new System.Windows.Forms.Timer(this.components);
this.nManuDate = new DevExpress.XtraEditors.TextEdit();
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
this.BtnManuDateWrite = new DevExpress.XtraEditors.SimpleButton();
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
this.BtnSerialNoWrite = new DevExpress.XtraEditors.SimpleButton();
this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gbSerialNo)).BeginInit();
this.gbSerialNo.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControl2)).BeginInit();
this.layoutControl2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.nSerialNo.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gbMDate)).BeginInit();
this.gbMDate.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControl3)).BeginInit();
this.layoutControl3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.nManuDate.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.btnClose);
this.layoutControl1.Controls.Add(this.gbSerialNo);
this.layoutControl1.Controls.Add(this.gbMDate);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 0);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(999, 164, 650, 400);
this.layoutControl1.Root = this.Root;
this.layoutControl1.Size = new System.Drawing.Size(720, 425);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// btnClose
//
this.btnClose.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnClose.Appearance.Options.UseFont = true;
this.btnClose.Location = new System.Drawing.Point(4, 373);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(712, 48);
this.btnClose.StyleController = this.layoutControl1;
this.btnClose.TabIndex = 7;
this.btnClose.Text = "Close";
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// gbSerialNo
//
this.gbSerialNo.Controls.Add(this.layoutControl2);
this.gbSerialNo.Location = new System.Drawing.Point(4, 174);
this.gbSerialNo.Name = "gbSerialNo";
this.gbSerialNo.Size = new System.Drawing.Size(712, 165);
this.gbSerialNo.TabIndex = 5;
this.gbSerialNo.Text = "Serial Number";
//
// layoutControl2
//
this.layoutControl2.Controls.Add(this.BtnSerialNoWrite);
this.layoutControl2.Controls.Add(this.nSerialNo);
this.layoutControl2.Controls.Add(this.lbSerialNo);
this.layoutControl2.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl2.Location = new System.Drawing.Point(2, 23);
this.layoutControl2.Name = "layoutControl2";
this.layoutControl2.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(993, 64, 650, 400);
this.layoutControl2.Root = this.layoutControlGroup1;
this.layoutControl2.Size = new System.Drawing.Size(708, 140);
this.layoutControl2.TabIndex = 0;
this.layoutControl2.Text = "layoutControl2";
//
// nSerialNo
//
this.nSerialNo.Location = new System.Drawing.Point(7, 70);
this.nSerialNo.Name = "nSerialNo";
this.nSerialNo.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 36F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.nSerialNo.Properties.Appearance.Options.UseFont = true;
this.nSerialNo.Properties.Appearance.Options.UseTextOptions = true;
this.nSerialNo.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.nSerialNo.Properties.MaxLength = 16;
this.nSerialNo.Size = new System.Drawing.Size(605, 64);
this.nSerialNo.StyleController = this.layoutControl2;
this.nSerialNo.TabIndex = 5;
//
// lbSerialNo
//
this.lbSerialNo.Appearance.Font = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbSerialNo.Appearance.Options.UseFont = true;
this.lbSerialNo.Location = new System.Drawing.Point(7, 7);
this.lbSerialNo.Name = "lbSerialNo";
this.lbSerialNo.Size = new System.Drawing.Size(694, 59);
this.lbSerialNo.StyleController = this.layoutControl2;
this.lbSerialNo.TabIndex = 4;
this.lbSerialNo.Text = "Serial No:";
//
// layoutControlGroup1
//
this.layoutControlGroup1.CustomizationFormText = "Root";
this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup1.GroupBordersVisible = false;
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem3,
this.layoutControlItem4,
this.layoutControlItem10});
this.layoutControlGroup1.Name = "Root";
this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(5, 5, 5, 5);
this.layoutControlGroup1.Size = new System.Drawing.Size(708, 140);
this.layoutControlGroup1.TextVisible = false;
//
// layoutControlItem3
//
this.layoutControlItem3.Control = this.lbSerialNo;
this.layoutControlItem3.CustomizationFormText = "layoutControlItem3";
this.layoutControlItem3.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem3.MinSize = new System.Drawing.Size(74, 18);
this.layoutControlItem3.Name = "layoutControlItem3";
this.layoutControlItem3.Size = new System.Drawing.Size(698, 63);
this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem3.TextVisible = false;
//
// layoutControlItem4
//
this.layoutControlItem4.Control = this.nSerialNo;
this.layoutControlItem4.CustomizationFormText = "layoutControlItem4";
this.layoutControlItem4.Location = new System.Drawing.Point(0, 63);
this.layoutControlItem4.MaxSize = new System.Drawing.Size(0, 67);
this.layoutControlItem4.MinSize = new System.Drawing.Size(171, 67);
this.layoutControlItem4.Name = "layoutControlItem4";
this.layoutControlItem4.Size = new System.Drawing.Size(609, 67);
this.layoutControlItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem4.TextVisible = false;
//
// gbMDate
//
this.gbMDate.Controls.Add(this.layoutControl3);
this.gbMDate.Location = new System.Drawing.Point(4, 4);
this.gbMDate.Name = "gbMDate";
this.gbMDate.Size = new System.Drawing.Size(712, 166);
this.gbMDate.TabIndex = 4;
this.gbMDate.Text = "Manufacture Date";
//
// layoutControl3
//
this.layoutControl3.Controls.Add(this.BtnManuDateWrite);
this.layoutControl3.Controls.Add(this.nManuDate);
this.layoutControl3.Controls.Add(this.lbMDate);
this.layoutControl3.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl3.Location = new System.Drawing.Point(2, 23);
this.layoutControl3.Name = "layoutControl3";
this.layoutControl3.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(993, 0, 650, 400);
this.layoutControl3.Root = this.layoutControlGroup2;
this.layoutControl3.Size = new System.Drawing.Size(708, 141);
this.layoutControl3.TabIndex = 0;
this.layoutControl3.Text = "layoutControl3";
//
// lbMDate
//
this.lbMDate.Appearance.Font = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbMDate.Appearance.Options.UseFont = true;
this.lbMDate.Location = new System.Drawing.Point(7, 7);
this.lbMDate.Name = "lbMDate";
this.lbMDate.Size = new System.Drawing.Size(694, 59);
this.lbMDate.StyleController = this.layoutControl3;
this.lbMDate.TabIndex = 6;
this.lbMDate.Text = "Manufacture Date:";
//
// layoutControlGroup2
//
this.layoutControlGroup2.CustomizationFormText = "Root";
this.layoutControlGroup2.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup2.GroupBordersVisible = false;
this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem9,
this.layoutControlItem7,
this.layoutControlItem8});
this.layoutControlGroup2.Name = "Root";
this.layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(5, 5, 5, 5);
this.layoutControlGroup2.Size = new System.Drawing.Size(708, 141);
this.layoutControlGroup2.TextVisible = false;
//
// layoutControlItem9
//
this.layoutControlItem9.Control = this.lbMDate;
this.layoutControlItem9.CustomizationFormText = "layoutControlItem9";
this.layoutControlItem9.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem9.MinSize = new System.Drawing.Size(74, 18);
this.layoutControlItem9.Name = "layoutControlItem9";
this.layoutControlItem9.Size = new System.Drawing.Size(698, 63);
this.layoutControlItem9.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem9.TextVisible = false;
//
// Root
//
this.Root.CustomizationFormText = "Root";
this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.Root.GroupBordersVisible = false;
this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem1,
this.layoutControlItem2,
this.layoutControlItem6,
this.emptySpaceItem1});
this.Root.Name = "Root";
this.Root.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 2, 2);
this.Root.Size = new System.Drawing.Size(720, 425);
this.Root.TextVisible = false;
//
// layoutControlItem1
//
this.layoutControlItem1.Control = this.gbMDate;
this.layoutControlItem1.CustomizationFormText = "layoutControlItem1";
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(716, 170);
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.gbSerialNo;
this.layoutControlItem2.CustomizationFormText = "layoutControlItem2";
this.layoutControlItem2.Location = new System.Drawing.Point(0, 170);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(716, 169);
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// layoutControlItem6
//
this.layoutControlItem6.Control = this.btnClose;
this.layoutControlItem6.CustomizationFormText = "layoutControlItem6";
this.layoutControlItem6.Location = new System.Drawing.Point(0, 369);
this.layoutControlItem6.MinSize = new System.Drawing.Size(89, 26);
this.layoutControlItem6.Name = "layoutControlItem6";
this.layoutControlItem6.Size = new System.Drawing.Size(716, 52);
this.layoutControlItem6.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem6.TextVisible = false;
//
// emptySpaceItem1
//
this.emptySpaceItem1.AllowHotTrack = false;
this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1";
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 339);
this.emptySpaceItem1.Name = "emptySpaceItem1";
this.emptySpaceItem1.Size = new System.Drawing.Size(716, 30);
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
//
// tmrDisplay
//
this.tmrDisplay.Tick += new System.EventHandler(this.tmrDisplay_Tick);
//
// nManuDate
//
this.nManuDate.Location = new System.Drawing.Point(7, 70);
this.nManuDate.Name = "nManuDate";
this.nManuDate.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 36F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.nManuDate.Properties.Appearance.Options.UseFont = true;
this.nManuDate.Properties.Appearance.Options.UseTextOptions = true;
this.nManuDate.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
this.nManuDate.Properties.MaxLength = 8;
this.nManuDate.Size = new System.Drawing.Size(605, 64);
this.nManuDate.StyleController = this.layoutControl3;
this.nManuDate.TabIndex = 7;
//
// layoutControlItem7
//
this.layoutControlItem7.Control = this.nManuDate;
this.layoutControlItem7.Location = new System.Drawing.Point(0, 63);
this.layoutControlItem7.Name = "layoutControlItem7";
this.layoutControlItem7.Size = new System.Drawing.Size(609, 68);
this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem7.TextVisible = false;
//
// BtnManuDateWrite
//
this.BtnManuDateWrite.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
this.BtnManuDateWrite.Appearance.Options.UseFont = true;
this.BtnManuDateWrite.Location = new System.Drawing.Point(616, 70);
this.BtnManuDateWrite.Name = "BtnManuDateWrite";
this.BtnManuDateWrite.Size = new System.Drawing.Size(85, 64);
this.BtnManuDateWrite.StyleController = this.layoutControl3;
this.BtnManuDateWrite.TabIndex = 8;
this.BtnManuDateWrite.Text = "Apply";
this.BtnManuDateWrite.Click += new System.EventHandler(this.BtnManuDateWrite_Click);
//
// layoutControlItem8
//
this.layoutControlItem8.Control = this.BtnManuDateWrite;
this.layoutControlItem8.Location = new System.Drawing.Point(609, 63);
this.layoutControlItem8.MinSize = new System.Drawing.Size(89, 26);
this.layoutControlItem8.Name = "layoutControlItem8";
this.layoutControlItem8.Size = new System.Drawing.Size(89, 68);
this.layoutControlItem8.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem8.TextVisible = false;
//
// BtnSerialNoWrite
//
this.BtnSerialNoWrite.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
this.BtnSerialNoWrite.Appearance.Options.UseFont = true;
this.BtnSerialNoWrite.Location = new System.Drawing.Point(616, 70);
this.BtnSerialNoWrite.Name = "BtnSerialNoWrite";
this.BtnSerialNoWrite.Size = new System.Drawing.Size(85, 63);
this.BtnSerialNoWrite.StyleController = this.layoutControl2;
this.BtnSerialNoWrite.TabIndex = 6;
this.BtnSerialNoWrite.Text = "Apply";
this.BtnSerialNoWrite.Click += new System.EventHandler(this.BtnSerialNoWrite_Click);
//
// layoutControlItem10
//
this.layoutControlItem10.Control = this.BtnSerialNoWrite;
this.layoutControlItem10.Location = new System.Drawing.Point(609, 63);
this.layoutControlItem10.MinSize = new System.Drawing.Size(89, 26);
this.layoutControlItem10.Name = "layoutControlItem10";
this.layoutControlItem10.Size = new System.Drawing.Size(89, 67);
this.layoutControlItem10.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem10.TextVisible = false;
//
// fmxInventoryConfig
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(720, 425);
this.Controls.Add(this.layoutControl1);
this.IconOptions.Icon = ((System.Drawing.Icon)(resources.GetObject("fmxInventoryConfig.IconOptions.Icon")));
this.Name = "fmxInventoryConfig";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Inventory Config";
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.gbSerialNo)).EndInit();
this.gbSerialNo.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControl2)).EndInit();
this.layoutControl2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.nSerialNo.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gbMDate)).EndInit();
this.gbMDate.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControl3)).EndInit();
this.layoutControl3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.nManuDate.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraLayout.LayoutControlGroup Root;
private DevExpress.XtraEditors.GroupControl gbMDate;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
private DevExpress.XtraEditors.GroupControl gbSerialNo;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
private DevExpress.XtraLayout.LayoutControl layoutControl2;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
private DevExpress.XtraEditors.TextEdit nSerialNo;
private DevExpress.XtraEditors.LabelControl lbSerialNo;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
private DevExpress.XtraEditors.SimpleButton btnClose;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
private System.Windows.Forms.Timer tmrDisplay;
private DevExpress.XtraLayout.LayoutControl layoutControl3;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup2;
private DevExpress.XtraEditors.LabelControl lbMDate;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9;
private DevExpress.XtraEditors.SimpleButton BtnManuDateWrite;
private DevExpress.XtraEditors.TextEdit nManuDate;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8;
private DevExpress.XtraEditors.SimpleButton BtnSerialNoWrite;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10;
}
}

View File

@@ -0,0 +1,232 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using LFP_Manager.DataStructure;
using LFP_Manager.Function;
using LFP_Manager.Controls;
using LFP_Manager.Utils;
namespace LFP_Manager.Forms
{
public delegate void InvDataUpdateEvent(object sendor);
public delegate void InvDateCmdEvent(int sId, int mode, int index, int flag,
ref CsDeviceData.DeviceModuleData.DeviceInforation wData);
public delegate void InvDateCmdEventBySnmp(int mode, string wData);
public partial class fmxInventoryConfig : DevExpress.XtraEditors.XtraForm
{
#region VARIABLES
int SystemId = 0;
int CmdResult = 0;
CommConfig Config;
CsDeviceData.DeviceModuleData ModuleData;
DeviceInforation wInvData;
public event InvDataUpdateEvent OnUpdate = null;
public event InvDateCmdEvent OnCommand = null;
public event SendDataUartEvent OnSendUartData = null;
#endregion
#region CONSTRUCTORS
public fmxInventoryConfig()
{
InitializeComponent();
}
public fmxInventoryConfig(int sId, ref CommConfig aConfig, ref CsDeviceData.DeviceModuleData mData)
{
InitializeComponent();
SystemId = sId;
ModuleData = mData;
Config = aConfig;
switch (Config.CommType)
{
case csConstData.CommType.COMM_UART:
nManuDate.Enabled = true;
BtnManuDateWrite.Enabled = true;
nSerialNo.Enabled = true;
BtnSerialNoWrite.Enabled = true;
break;
case csConstData.CommType.COMM_RS485:
nManuDate.Enabled = false;
BtnManuDateWrite.Enabled = false;
nSerialNo.Enabled = false;
BtnSerialNoWrite.Enabled = false;
break;
case csConstData.CommType.COMM_SNMP:
nManuDate.Enabled = false;
BtnManuDateWrite.Enabled = false;
nSerialNo.Enabled = false;
BtnSerialNoWrite.Enabled = false;
break;
default:
break;
}
tmrDisplay.Enabled = true;
}
#endregion
#region INIT DATA
void InitData()
{
wInvData = new DeviceInforation
{
BMS_SN = new byte[16],
Module_SN = new byte[24]
}; //22.06.30 Byul 32->16, 32->24
}
#endregion
#region DISPLAY DATA
private void DisplayValue()
{
// Manufacture Date
lbMDate.Text = String.Format("Manufacture Date: {0}", ModuleData.Information.ManufacturingDate);
// Device Address%
lbSerialNo.Text = String.Format("Serial No: {0}", ModuleData.Information.HwSerialNumber);
}
#endregion
#region TIMER ENVENT
private void tmrDisplay_Tick(object sender, EventArgs e)
{
DisplayValue();
if (OnUpdate != null)
{
OnUpdate(this);
}
}
#endregion
#region PUBLIC FUCTIONS
public void UpdateData(ref CsDeviceData.DeviceModuleData mData)
{
ModuleData = mData;
}
public void RecvData(string result, bool error)
{
Cmd_Result(result, error);
}
public void Cmd_Result(string result, bool error)
{
if (this.InvokeRequired)
{
this.Invoke(new MethodInvoker(delegate ()
{
if (error)
MessageBox.Show(result, "Result", MessageBoxButtons.OK, MessageBoxIcon.Error);
else
MessageBox.Show(result, "Result", MessageBoxButtons.OK, MessageBoxIcon.Information);
}));
}
else
{
if (error)
MessageBox.Show(result, "Result", MessageBoxButtons.OK, MessageBoxIcon.Error);
else
MessageBox.Show(result, "Result", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
#endregion
#region BUTTON EVENT
private void btnClose_Click(object sender, EventArgs e)
{
Close();
}
private void BtnManuDateWrite_Click(object sender, EventArgs e)
{
if ((nManuDate.Text == "") || (nManuDate.Text.Length > 8))
{
MessageBox.Show("Check Manufacture Date Format", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
byte[] crc;
ushort addr = 0x00A3;
int i = 0;
// Normal mode --> Bootloader mode
byte[] sdata = new byte[7 + 8 + 2];
sdata[i++] = (byte)SystemId; // Dev Address
sdata[i++] = 0x10; // Function Code
sdata[i++] = (byte)(addr >> 8); // Address H
sdata[i++] = (byte)(addr >> 0); // Address L
sdata[i++] = 0x00; // Number of Register H
sdata[i++] = 0x04; // Number of Register L
sdata[i++] = 0x08; // Byte Count
string str = nManuDate.Text;
byte[] aData = Encoding.UTF8.GetBytes(str);
for (int j = 0; j < 8; j++)
{
sdata[i++] = aData[j];
}
crc = csSerialCommFunction.GetCRC(sdata, i);
sdata[i++] = crc[1]; // CRCH
sdata[i++] = crc[0]; // CRCL
OnSendUartData?.Invoke(addr, sdata, false, 1);
}
private void BtnSerialNoWrite_Click(object sender, EventArgs e)
{
if ((nSerialNo.Text == "") || (nSerialNo.Text.Length > 16))
{
MessageBox.Show("Check Serial Number format", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
byte[] crc;
ushort addr = 0x0078;
int i = 0;
// Normal mode --> Bootloader mode
byte[] sdata = new byte[7 + 16 + 2];
sdata[i++] = (byte)SystemId; // Dev Address
sdata[i++] = 0x10; // Function Code
sdata[i++] = (byte)(addr >> 8); // Address H
sdata[i++] = (byte)(addr >> 0); // Address L
sdata[i++] = 0x00; // Number of Register H
sdata[i++] = 0x08; // Number of Register L
sdata[i++] = 0x10; // Byte Count
string str = nSerialNo.Text;
byte[] aData = Encoding.UTF8.GetBytes(str);
for (int j = 0; j < aData.Length; j++)
{
sdata[i + j] = aData[j];
}
i += 16;
crc = csSerialCommFunction.GetCRC(sdata, i);
sdata[i++] = crc[1]; // CRCH
sdata[i++] = crc[0]; // CRCL
OnSendUartData?.Invoke(addr, sdata, false, 1);
}
#endregion
}
}

File diff suppressed because it is too large Load Diff

470
LFP_Manager/Forms/fmxMain.Designer.cs generated Normal file
View File

@@ -0,0 +1,470 @@
namespace LFP_Manager.Forms
{
partial class fmxMain
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fmxMain));
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.chbPolling = new DevExpress.XtraEditors.CheckEdit();
this.edModuleID = new DevExpress.XtraEditors.TextEdit();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.CommStatusBar = new System.Windows.Forms.ToolStripStatusLabel();
this.HeatBeatStatusBar = new System.Windows.Forms.ToolStripStatusLabel();
this.LogStatusBar = new System.Windows.Forms.ToolStripStatusLabel();
this.uDataLog = new LFP_Manager.Controls.ucDataLog();
this.uEventLog = new LFP_Manager.Controls.ucEventLog();
this.tabStatus = new DevExpress.XtraTab.XtraTabControl();
this.pgMain = new DevExpress.XtraTab.XtraTabPage();
this.uTarget = new LFP_Manager.Controls.ucTargetControl();
this.layoutControlMain = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
this.lcitemSystemId = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem();
this.tmrDisplay = new System.Windows.Forms.Timer(this.components);
this.mnMain = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.levelConfigToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.changeLeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.changePasswordToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.historyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.historyViewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.inventoryViewToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.updateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.firmwareUpdateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.chbPolling.Properties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.edModuleID.Properties)).BeginInit();
this.statusStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.tabStatus)).BeginInit();
this.tabStatus.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControlMain)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.lcitemSystemId)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit();
this.mnMain.SuspendLayout();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.AllowCustomization = false;
this.layoutControl1.Controls.Add(this.chbPolling);
this.layoutControl1.Controls.Add(this.edModuleID);
this.layoutControl1.Controls.Add(this.statusStrip1);
this.layoutControl1.Controls.Add(this.uDataLog);
this.layoutControl1.Controls.Add(this.uEventLog);
this.layoutControl1.Controls.Add(this.tabStatus);
this.layoutControl1.Controls.Add(this.uTarget);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 24);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(577, 118, 783, 350);
this.layoutControl1.Root = this.layoutControlMain;
this.layoutControl1.Size = new System.Drawing.Size(1314, 857);
this.layoutControl1.TabIndex = 1;
this.layoutControl1.Text = "layoutControl1";
//
// chbPolling
//
this.chbPolling.Location = new System.Drawing.Point(1254, 660);
this.chbPolling.Name = "chbPolling";
this.chbPolling.Properties.Caption = "Polling";
this.chbPolling.Size = new System.Drawing.Size(57, 20);
this.chbPolling.StyleController = this.layoutControl1;
this.chbPolling.TabIndex = 5;
this.chbPolling.CheckedChanged += new System.EventHandler(this.chbPolling_CheckedChanged);
//
// edModuleID
//
this.edModuleID.EditValue = "1";
this.edModuleID.Location = new System.Drawing.Point(1181, 660);
this.edModuleID.Name = "edModuleID";
this.edModuleID.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
this.edModuleID.Properties.Appearance.Options.UseFont = true;
this.edModuleID.Properties.Appearance.Options.UseTextOptions = true;
this.edModuleID.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
this.edModuleID.Size = new System.Drawing.Size(69, 22);
this.edModuleID.StyleController = this.layoutControl1;
this.edModuleID.TabIndex = 4;
this.edModuleID.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.edSystemId_KeyPress);
//
// statusStrip1
//
this.statusStrip1.AutoSize = false;
this.statusStrip1.Dock = System.Windows.Forms.DockStyle.None;
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.CommStatusBar,
this.HeatBeatStatusBar,
this.LogStatusBar});
this.statusStrip1.Location = new System.Drawing.Point(3, 834);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.Size = new System.Drawing.Size(1308, 20);
this.statusStrip1.TabIndex = 1;
this.statusStrip1.Text = "statusStrip1";
//
// CommStatusBar
//
this.CommStatusBar.AutoSize = false;
this.CommStatusBar.ForeColor = System.Drawing.Color.Black;
this.CommStatusBar.Name = "CommStatusBar";
this.CommStatusBar.Size = new System.Drawing.Size(200, 15);
this.CommStatusBar.Text = "Comm: OFF";
this.CommStatusBar.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// HeatBeatStatusBar
//
this.HeatBeatStatusBar.AutoSize = false;
this.HeatBeatStatusBar.ForeColor = System.Drawing.Color.Black;
this.HeatBeatStatusBar.Name = "HeatBeatStatusBar";
this.HeatBeatStatusBar.Size = new System.Drawing.Size(200, 15);
this.HeatBeatStatusBar.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// LogStatusBar
//
this.LogStatusBar.AutoSize = false;
this.LogStatusBar.Name = "LogStatusBar";
this.LogStatusBar.Size = new System.Drawing.Size(650, 15);
this.LogStatusBar.Text = "Log Stop";
this.LogStatusBar.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// uDataLog
//
this.uDataLog.Location = new System.Drawing.Point(1149, 686);
this.uDataLog.Name = "uDataLog";
this.uDataLog.Size = new System.Drawing.Size(162, 144);
this.uDataLog.TabIndex = 6;
//
// uEventLog
//
this.uEventLog.Location = new System.Drawing.Point(3, 660);
this.uEventLog.Name = "uEventLog";
this.uEventLog.Size = new System.Drawing.Size(1142, 170);
this.uEventLog.TabIndex = 3;
//
// tabStatus
//
this.tabStatus.Location = new System.Drawing.Point(3, 68);
this.tabStatus.Name = "tabStatus";
this.tabStatus.SelectedTabPage = this.pgMain;
this.tabStatus.Size = new System.Drawing.Size(1308, 588);
this.tabStatus.TabIndex = 2;
this.tabStatus.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] {
this.pgMain});
//
// pgMain
//
this.pgMain.Name = "pgMain";
this.pgMain.Size = new System.Drawing.Size(1306, 562);
this.pgMain.Text = "RealTime Data";
//
// uTarget
//
this.uTarget.Location = new System.Drawing.Point(3, 3);
this.uTarget.Name = "uTarget";
this.uTarget.Size = new System.Drawing.Size(1308, 61);
this.uTarget.TabIndex = 0;
//
// layoutControlMain
//
this.layoutControlMain.CustomizationFormText = "layoutControlGroup1";
this.layoutControlMain.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlMain.GroupBordersVisible = false;
this.layoutControlMain.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem1,
this.layoutControlItem2,
this.layoutControlItem6,
this.layoutControlItem7,
this.layoutControlItem8,
this.lcitemSystemId,
this.layoutControlItem16});
this.layoutControlMain.Name = "Root";
this.layoutControlMain.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlMain.Size = new System.Drawing.Size(1314, 857);
this.layoutControlMain.TextVisible = false;
//
// layoutControlItem1
//
this.layoutControlItem1.Control = this.uTarget;
this.layoutControlItem1.CustomizationFormText = "layoutControlItem1";
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem1.MaxSize = new System.Drawing.Size(0, 65);
this.layoutControlItem1.MinSize = new System.Drawing.Size(350, 65);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(1312, 65);
this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.tabStatus;
this.layoutControlItem2.CustomizationFormText = "layoutControlItem2";
this.layoutControlItem2.Location = new System.Drawing.Point(0, 65);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(1312, 592);
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// layoutControlItem6
//
this.layoutControlItem6.Control = this.uEventLog;
this.layoutControlItem6.CustomizationFormText = "layoutControlItem6";
this.layoutControlItem6.Location = new System.Drawing.Point(0, 657);
this.layoutControlItem6.MaxSize = new System.Drawing.Size(0, 174);
this.layoutControlItem6.MinSize = new System.Drawing.Size(209, 174);
this.layoutControlItem6.Name = "layoutControlItem6";
this.layoutControlItem6.Size = new System.Drawing.Size(1146, 174);
this.layoutControlItem6.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem6.TextVisible = false;
//
// layoutControlItem7
//
this.layoutControlItem7.Control = this.uDataLog;
this.layoutControlItem7.CustomizationFormText = "layoutControlItem7";
this.layoutControlItem7.Location = new System.Drawing.Point(1146, 683);
this.layoutControlItem7.MaxSize = new System.Drawing.Size(166, 0);
this.layoutControlItem7.MinSize = new System.Drawing.Size(166, 24);
this.layoutControlItem7.Name = "layoutControlItem7";
this.layoutControlItem7.Size = new System.Drawing.Size(166, 148);
this.layoutControlItem7.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem7.TextVisible = false;
//
// layoutControlItem8
//
this.layoutControlItem8.Control = this.statusStrip1;
this.layoutControlItem8.CustomizationFormText = "layoutControlItem8";
this.layoutControlItem8.Location = new System.Drawing.Point(0, 831);
this.layoutControlItem8.MaxSize = new System.Drawing.Size(0, 24);
this.layoutControlItem8.MinSize = new System.Drawing.Size(104, 24);
this.layoutControlItem8.Name = "layoutControlItem8";
this.layoutControlItem8.Size = new System.Drawing.Size(1312, 24);
this.layoutControlItem8.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem8.TextVisible = false;
//
// lcitemSystemId
//
this.lcitemSystemId.Control = this.edModuleID;
this.lcitemSystemId.CustomizationFormText = "System Id";
this.lcitemSystemId.Location = new System.Drawing.Point(1146, 657);
this.lcitemSystemId.MinSize = new System.Drawing.Size(57, 26);
this.lcitemSystemId.Name = "lcitemSystemId";
this.lcitemSystemId.Size = new System.Drawing.Size(105, 26);
this.lcitemSystemId.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.lcitemSystemId.Text = " ID ";
this.lcitemSystemId.TextSize = new System.Drawing.Size(20, 14);
//
// layoutControlItem16
//
this.layoutControlItem16.Control = this.chbPolling;
this.layoutControlItem16.CustomizationFormText = "layoutControlItem16";
this.layoutControlItem16.Location = new System.Drawing.Point(1251, 657);
this.layoutControlItem16.Name = "layoutControlItem16";
this.layoutControlItem16.Size = new System.Drawing.Size(61, 26);
this.layoutControlItem16.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem16.TextVisible = false;
//
// tmrDisplay
//
this.tmrDisplay.Enabled = true;
this.tmrDisplay.Interval = 500;
this.tmrDisplay.Tick += new System.EventHandler(this.tmrDisplay_Tick);
//
// mnMain
//
this.mnMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem,
this.historyToolStripMenuItem,
this.updateToolStripMenuItem});
this.mnMain.Location = new System.Drawing.Point(0, 0);
this.mnMain.Name = "mnMain";
this.mnMain.Size = new System.Drawing.Size(1314, 24);
this.mnMain.TabIndex = 2;
this.mnMain.Text = "menuStrip1";
//
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.levelConfigToolStripMenuItem,
this.exitToolStripMenuItem});
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
this.fileToolStripMenuItem.Text = "File";
//
// levelConfigToolStripMenuItem
//
this.levelConfigToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.changeLeToolStripMenuItem,
this.changePasswordToolStripMenuItem});
this.levelConfigToolStripMenuItem.Name = "levelConfigToolStripMenuItem";
this.levelConfigToolStripMenuItem.Size = new System.Drawing.Size(141, 22);
this.levelConfigToolStripMenuItem.Text = "Level Config";
this.levelConfigToolStripMenuItem.Click += new System.EventHandler(this.levelConfigToolStripMenuItem_Click);
//
// changeLeToolStripMenuItem
//
this.changeLeToolStripMenuItem.Name = "changeLeToolStripMenuItem";
this.changeLeToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
this.changeLeToolStripMenuItem.Text = "Change Level";
this.changeLeToolStripMenuItem.Click += new System.EventHandler(this.changeLeToolStripMenuItem_Click);
//
// changePasswordToolStripMenuItem
//
this.changePasswordToolStripMenuItem.Name = "changePasswordToolStripMenuItem";
this.changePasswordToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
this.changePasswordToolStripMenuItem.Text = "Change Password";
this.changePasswordToolStripMenuItem.Click += new System.EventHandler(this.changePasswordToolStripMenuItem_Click);
//
// exitToolStripMenuItem
//
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
this.exitToolStripMenuItem.Size = new System.Drawing.Size(141, 22);
this.exitToolStripMenuItem.Text = "Exit";
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
//
// historyToolStripMenuItem
//
this.historyToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.historyViewToolStripMenuItem,
this.inventoryViewToolStripMenuItem});
this.historyToolStripMenuItem.Name = "historyToolStripMenuItem";
this.historyToolStripMenuItem.Size = new System.Drawing.Size(57, 20);
this.historyToolStripMenuItem.Text = "History";
//
// historyViewToolStripMenuItem
//
this.historyViewToolStripMenuItem.Name = "historyViewToolStripMenuItem";
this.historyViewToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.historyViewToolStripMenuItem.Text = "History View";
this.historyViewToolStripMenuItem.Click += new System.EventHandler(this.historyViewToolStripMenuItem_Click);
//
// inventoryViewToolStripMenuItem
//
this.inventoryViewToolStripMenuItem.Name = "inventoryViewToolStripMenuItem";
this.inventoryViewToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.inventoryViewToolStripMenuItem.Text = "Inventory View";
this.inventoryViewToolStripMenuItem.Click += new System.EventHandler(this.inventoryViewToolStripMenuItem_Click);
//
// updateToolStripMenuItem
//
this.updateToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.firmwareUpdateToolStripMenuItem});
this.updateToolStripMenuItem.Name = "updateToolStripMenuItem";
this.updateToolStripMenuItem.Size = new System.Drawing.Size(57, 20);
this.updateToolStripMenuItem.Text = "Update";
//
// firmwareUpdateToolStripMenuItem
//
this.firmwareUpdateToolStripMenuItem.Name = "firmwareUpdateToolStripMenuItem";
this.firmwareUpdateToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.firmwareUpdateToolStripMenuItem.Text = "Firmware Update";
this.firmwareUpdateToolStripMenuItem.Click += new System.EventHandler(this.firmwareUpdateToolStripMenuItem_Click);
//
// fmxMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1314, 881);
this.Controls.Add(this.layoutControl1);
this.Controls.Add(this.mnMain);
this.IconOptions.Icon = ((System.Drawing.Icon)(resources.GetObject("fmxMain.IconOptions.Icon")));
this.Name = "fmxMain";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "LFP SYSTEM";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.fmxMain_FormClosing);
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.chbPolling.Properties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.edModuleID.Properties)).EndInit();
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.tabStatus)).EndInit();
this.tabStatus.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControlMain)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.lcitemSystemId)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit();
this.mnMain.ResumeLayout(false);
this.mnMain.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlMain;
private Controls.ucTargetControl uTarget;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
private DevExpress.XtraTab.XtraTabControl tabStatus;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
private Controls.ucEventLog uEventLog;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
private Controls.ucDataLog uDataLog;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
private System.Windows.Forms.StatusStrip statusStrip1;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8;
private System.Windows.Forms.ToolStripStatusLabel CommStatusBar;
private System.Windows.Forms.ToolStripStatusLabel LogStatusBar;
private System.Windows.Forms.ToolStripStatusLabel HeatBeatStatusBar;
private DevExpress.XtraEditors.TextEdit edModuleID;
private DevExpress.XtraLayout.LayoutControlItem lcitemSystemId;
private DevExpress.XtraTab.XtraTabPage pgMain;
//private Controls.ucMainStatus ucMsGraph;
private DevExpress.XtraEditors.CheckEdit chbPolling;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem16;
private System.Windows.Forms.Timer tmrDisplay;
private System.Windows.Forms.MenuStrip mnMain;
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem historyToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem historyViewToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem updateToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem firmwareUpdateToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem inventoryViewToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem levelConfigToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem changeLeToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem changePasswordToolStripMenuItem;
}
}

1294
LFP_Manager/Forms/fmxMain.cs Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,210 @@
namespace LFP_Manager.Forms
{
partial class fmxModuleDetail
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fmxModuleDetail));
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.btnClose = new DevExpress.XtraEditors.SimpleButton();
this.btnNext = new DevExpress.XtraEditors.SimpleButton();
this.btnPrev = new DevExpress.XtraEditors.SimpleButton();
this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
this.ShelfStatus = new LFP_Manager.Controls.ucShelfStatus();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.btnClose);
this.layoutControl1.Controls.Add(this.btnNext);
this.layoutControl1.Controls.Add(this.btnPrev);
this.layoutControl1.Controls.Add(this.ShelfStatus);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 0);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1270, 387, 650, 400);
this.layoutControl1.Root = this.Root;
this.layoutControl1.Size = new System.Drawing.Size(1198, 648);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// btnClose
//
this.btnClose.Location = new System.Drawing.Point(1032, 604);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(163, 41);
this.btnClose.StyleController = this.layoutControl1;
this.btnClose.TabIndex = 7;
this.btnClose.Text = "CLOSE";
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// btnNext
//
this.btnNext.Location = new System.Drawing.Point(170, 604);
this.btnNext.Name = "btnNext";
this.btnNext.Size = new System.Drawing.Size(163, 41);
this.btnNext.StyleController = this.layoutControl1;
this.btnNext.TabIndex = 6;
this.btnNext.Text = "NEXT";
this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
//
// btnPrev
//
this.btnPrev.Location = new System.Drawing.Point(3, 604);
this.btnPrev.Name = "btnPrev";
this.btnPrev.Size = new System.Drawing.Size(163, 41);
this.btnPrev.StyleController = this.layoutControl1;
this.btnPrev.TabIndex = 5;
this.btnPrev.Text = "PREV";
this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click);
//
// Root
//
this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.Root.GroupBordersVisible = false;
this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem1,
this.layoutControlItem2,
this.emptySpaceItem1,
this.layoutControlItem3,
this.layoutControlItem4});
this.Root.Name = "Root";
this.Root.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.Root.Size = new System.Drawing.Size(1198, 648);
this.Root.TextVisible = false;
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.btnPrev;
this.layoutControlItem2.Location = new System.Drawing.Point(0, 601);
this.layoutControlItem2.MaxSize = new System.Drawing.Size(0, 45);
this.layoutControlItem2.MinSize = new System.Drawing.Size(89, 45);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(167, 45);
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// emptySpaceItem1
//
this.emptySpaceItem1.AllowHotTrack = false;
this.emptySpaceItem1.Location = new System.Drawing.Point(334, 601);
this.emptySpaceItem1.Name = "emptySpaceItem1";
this.emptySpaceItem1.Size = new System.Drawing.Size(695, 45);
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
//
// layoutControlItem3
//
this.layoutControlItem3.Control = this.btnNext;
this.layoutControlItem3.Location = new System.Drawing.Point(167, 601);
this.layoutControlItem3.MinSize = new System.Drawing.Size(89, 26);
this.layoutControlItem3.Name = "layoutControlItem3";
this.layoutControlItem3.Size = new System.Drawing.Size(167, 45);
this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem3.TextVisible = false;
//
// layoutControlItem4
//
this.layoutControlItem4.Control = this.btnClose;
this.layoutControlItem4.Location = new System.Drawing.Point(1029, 601);
this.layoutControlItem4.MinSize = new System.Drawing.Size(89, 26);
this.layoutControlItem4.Name = "layoutControlItem4";
this.layoutControlItem4.Size = new System.Drawing.Size(167, 45);
this.layoutControlItem4.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem4.TextVisible = false;
//
// ShelfStatus
//
this.ShelfStatus.Location = new System.Drawing.Point(3, 3);
this.ShelfStatus.Name = "ShelfStatus";
this.ShelfStatus.Size = new System.Drawing.Size(1192, 597);
this.ShelfStatus.TabIndex = 4;
//
// layoutControlItem1
//
this.layoutControlItem1.Control = this.ShelfStatus;
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem1.MinSize = new System.Drawing.Size(772, 247);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(1196, 601);
this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
// fmxModuleDetail
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1198, 648);
this.Controls.Add(this.layoutControl1);
this.IconOptions.Image = ((System.Drawing.Image)(resources.GetObject("fmxModuleDetail.IconOptions.Image")));
this.Name = "fmxModuleDetail";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "fmxModuleDetail";
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraLayout.LayoutControlGroup Root;
private Controls.ucShelfStatus ShelfStatus;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
private DevExpress.XtraEditors.SimpleButton btnClose;
private DevExpress.XtraEditors.SimpleButton btnNext;
private DevExpress.XtraEditors.SimpleButton btnPrev;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
}
}

View File

@@ -0,0 +1,114 @@
using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using LFP_Manager.DataStructure;
namespace LFP_Manager.Forms
{
public partial class fmxModuleDetail : DevExpress.XtraEditors.XtraForm
{
#region VARIABLES
private int ModuleID = 1;
private CommConfig Config;
private CsDeviceData.DeviceModuleData[] ModuleDatas;
#endregion
#region COSTRUCTORS
public fmxModuleDetail(int mID, ref CommConfig aConfig, ref CsDeviceData.DeviceModuleData[] mData)
{
InitializeComponent();
ModuleID = mID;
Config = aConfig;
ModuleDatas = mData;
this.Text = String.Format("MODULE [#{0:00}]"
, mID
);
ShelfStatus.Start(mID, ref aConfig, ref ModuleDatas);
}
#endregion
#region PUBLIC FUNCTION
public void SetModuleID(int mID)
{
ShelfStatus.ModuleIDSet(mID);
if (this.InvokeRequired)
{
this.Invoke(new MethodInvoker(delegate ()
{
this.Text = String.Format("MODULE [#{0:00}]", mID);
}));
}
else
{
this.Text = String.Format("MODULE [#{0:00}]", mID);
}
}
public int GetModuleID()
{
return ShelfStatus.ModuleIDGet();
}
#endregion
#region UPDATE DATA
public void UpdateData(ref CsDeviceData.DeviceModuleData[] mData)
{
ShelfStatus.UpdateData(mData);
}
#endregion
#region BUTTON EVENT
private void btnPrev_Click(object sender, EventArgs e)
{
if (ModuleID == 1)
{
ModuleID = Config.ModuleQty;
}
else
{
ModuleID--;
}
ShelfStatus.ModuleIDSet(ModuleID);
ShelfStatus.UpdateData(ModuleDatas);
Text = string.Format("Module Status [#{0:00}]", ModuleID);
}
private void btnNext_Click(object sender, EventArgs e)
{
if (ModuleID == Config.ModuleQty)
{
ModuleID = 1;
}
else
{
ModuleID++;
}
ShelfStatus.ModuleIDSet(ModuleID);
ShelfStatus.UpdateData(ModuleDatas);
Text = string.Format("Module Status [#{0:00}]", ModuleID);
}
private void btnClose_Click(object sender, EventArgs e)
{
Close();
}
#endregion
}
}

View File

@@ -0,0 +1,148 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="fmxModuleDetail.IconOptions.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAABNdJREFUWEftVWtsFFUUvn2kxF8aI/EVI8Y//NIGjUFaaKGtfYHVKEQNATHxh4om
EmOlGIyk26XdbretptpSugJFI5RSwUQIAn2Kj6KyUFLaQk0XfFS6lm4fu+1OP3POzJ3OdrfT0R/4x5Pc
3Jm5597zne98547Af2xi9oebbZYBTE9P67PZMPpaMUsAjAcqJocb16yCsASAzJihzz+BoRvj+rg+PI7h
sUCEnxWbF4A8cCqk8Pvxzn4szKvEwuc+wh3rqvRxz9oqnLs8yD6hkGIZiCkAeYCiKAgpCiaCU1j8shsi
dSdEdhlEplMd9Ly8CCvzD9Iu9rUSnMwUAJkx+x2fnoFIsiFuTbkaNMeljuwyxK0uZxD7TnaxL+2xwsKc
AORmopPE1XvVh1tyXYiRGee4EEPvDECb0x24+/mP4RuZYBaYiXkEOScAMmP2T77fBLHCjthcNXsO+EQp
RGapzkIssZBchDdrmnnPpMaCmUUFILOfnArx+xdn+iBWFas0y0BJNmypPo1nbUc5KH+jtRwXFmSX6YKc
rxQRAIzCo82j40E8+GItYjIciNUoj8koxZ3rqliUvdd8SMhyIpbKIsGtLEZq/gEtCXMWIgHMor7gk/Yw
4fGcYseeExf0Pe+421iAuo8myPqTF3ndjIUwAEbh0dw9MKRml6UKb3Z2dDAJbWQsgEUbdzEzUpgxmiD/
8quCJEZlDKNFMqABIMvZ3qgKT69vGeIynfip7w8dgNTJgZZu9k3Iq2QGaKb3re42XpcszDYdgMxeUn+4
o1dT/RwKnwpxZuRPWqCZLiKR+B5EUhHEMhvE44UQSwvR4vEipMwwawTCAOQHvvFCCvxjQSzasAsirUSl
U6P0vvU1uDEa4MCIkg39FwpqmlHgbufMt+1px9tVp9D0TR+vR2MhjAFJZ35da3hr0bzCjs9bunmdQNJl
09nzO06c/QXu4+fhOtSJ2q88+PL7KzjybR+3Lo2j313GZ193oaPrmrpXu6YlECFfJD0X+v/kPqZ6c3C6
eFLsSC9o4KylH4EdHg3AOziC5nMDeNfdhvvXV6slWFrIgLkUyTaIZYW47ekP8Ot1f4QgBQGRAMjStjZA
pOycyT67jDvhfP8gX8kSQDSj73XHPLhrbRVEhgMJeRWIX12OBU+pgtzgPMZ+xlII6nwpvP2nLkIst+s3
Hvd1chH3ORllLTdK5hi8onaDzOyS14fFm3arGpIipnlVCU7/PBAGQsheppre+0I1RJpjRngZDjywsRb+
8aD+c5HBpUkQ8jk4OcXPPVd9uDWvErFZspQuiNRiPPzqXgQnQ+pPTlEgxgPqhi01zVwznXrakGJHY0cP
r8vszeiXt2hAA1HR9GOkmJOL4Dp8ltepfbkLPFcGWXjxOS4OHL+mgmuWue0QO0Zrn2gmfeR/hMZDr+zl
25PKSWfHZTlx+zMf4rchPxRlGoL6esnmelW5aSXsTMHjM5245B0KE55VEDRU0ECrx6t2RGqxena6A+Kx
Hcjd3sj+Ir+2FYmv7cOS1+sZyKNv7Efipt0oafiBHcxUb2a0R2rmrdoWJL5Ux2dTjEc213PMI/SbpzrM
ZZS9UWBWzbjHbB/pT7+KKZgc/K6EK/2fmhEEnRUtBpl+E0YbxoP+jc0+L9qI+B3fbPsfwN+Ml/mpJunQ
YAAAAABJRU5ErkJggg==
</value>
</data>
</root>

View File

@@ -0,0 +1,818 @@
namespace LFP_Manager.Forms
{
partial class fmxParamConfig
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(fmxParamConfig));
this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
this.gbDefaultParam = new DevExpress.XtraEditors.GroupControl();
this.layoutControl7 = new DevExpress.XtraLayout.LayoutControl();
this.btnDefaultSet = new DevExpress.XtraEditors.SimpleButton();
this.layoutControlGroup7 = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem22 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem4 = new DevExpress.XtraLayout.EmptySpaceItem();
this.gbCurrentParam = new DevExpress.XtraEditors.GroupControl();
this.layoutControl5 = new DevExpress.XtraLayout.LayoutControl();
this.layoutControlGroup5 = new DevExpress.XtraLayout.LayoutControlGroup();
this.gbDchTempParam = new DevExpress.XtraEditors.GroupControl();
this.layoutControl4 = new DevExpress.XtraLayout.LayoutControl();
this.layoutControlGroup4 = new DevExpress.XtraLayout.LayoutControlGroup();
this.gbChaTempParam = new DevExpress.XtraEditors.GroupControl();
this.layoutControl3 = new DevExpress.XtraLayout.LayoutControl();
this.layoutControlGroup3 = new DevExpress.XtraLayout.LayoutControlGroup();
this.gbVoltageParamSet = new DevExpress.XtraEditors.GroupControl();
this.layoutControl2 = new DevExpress.XtraLayout.LayoutControl();
this.layoutControlGroup2 = new DevExpress.XtraLayout.LayoutControlGroup();
this.btnClose = new DevExpress.XtraEditors.SimpleButton();
this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem();
this.layoutControlItem19 = new DevExpress.XtraLayout.LayoutControlItem();
this.emptySpaceItem3 = new DevExpress.XtraLayout.EmptySpaceItem();
this.layoutControlGroup6 = new DevExpress.XtraLayout.LayoutControlGroup();
this.tmrDisplay = new System.Windows.Forms.Timer(this.components);
this.ucSocParam = new LFP_Manager.Controls.ucParamSet();
this.ucDOCParam = new LFP_Manager.Controls.ucParamSet();
this.ucCOCParam = new LFP_Manager.Controls.ucParamSet();
this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem15 = new DevExpress.XtraLayout.LayoutControlItem();
this.ucDLTParam = new LFP_Manager.Controls.ucParamSet();
this.ucDHTParam = new LFP_Manager.Controls.ucParamSet();
this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem();
this.ucCLTParam = new LFP_Manager.Controls.ucParamSet();
this.ucCHTParam = new LFP_Manager.Controls.ucParamSet();
this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem();
this.ucSUVParam = new LFP_Manager.Controls.ucParamSet();
this.ucSOVParam = new LFP_Manager.Controls.ucParamSet();
this.ucCUVParam = new LFP_Manager.Controls.ucParamSet();
this.ucCOVParam = new LFP_Manager.Controls.ucParamSet();
this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem();
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
this.layoutControl1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gbDefaultParam)).BeginInit();
this.gbDefaultParam.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControl7)).BeginInit();
this.layoutControl7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup7)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem22)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gbCurrentParam)).BeginInit();
this.gbCurrentParam.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControl5)).BeginInit();
this.layoutControl5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gbDchTempParam)).BeginInit();
this.gbDchTempParam.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControl4)).BeginInit();
this.layoutControl4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gbChaTempParam)).BeginInit();
this.gbChaTempParam.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControl3)).BeginInit();
this.layoutControl3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.gbVoltageParamSet)).BeginInit();
this.gbVoltageParamSet.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControl2)).BeginInit();
this.layoutControl2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit();
this.SuspendLayout();
//
// layoutControl1
//
this.layoutControl1.Controls.Add(this.ucSocParam);
this.layoutControl1.Controls.Add(this.gbDefaultParam);
this.layoutControl1.Controls.Add(this.gbCurrentParam);
this.layoutControl1.Controls.Add(this.gbDchTempParam);
this.layoutControl1.Controls.Add(this.gbChaTempParam);
this.layoutControl1.Controls.Add(this.gbVoltageParamSet);
this.layoutControl1.Controls.Add(this.btnClose);
this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl1.Location = new System.Drawing.Point(0, 0);
this.layoutControl1.Name = "layoutControl1";
this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1155, 88, 654, 350);
this.layoutControl1.Root = this.layoutControlGroup1;
this.layoutControl1.Size = new System.Drawing.Size(925, 777);
this.layoutControl1.TabIndex = 0;
this.layoutControl1.Text = "layoutControl1";
//
// gbDefaultParam
//
this.gbDefaultParam.Controls.Add(this.layoutControl7);
this.gbDefaultParam.Location = new System.Drawing.Point(694, 645);
this.gbDefaultParam.Name = "gbDefaultParam";
this.gbDefaultParam.Size = new System.Drawing.Size(228, 62);
this.gbDefaultParam.TabIndex = 13;
this.gbDefaultParam.Text = " Default Paramter";
//
// layoutControl7
//
this.layoutControl7.Controls.Add(this.btnDefaultSet);
this.layoutControl7.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl7.Location = new System.Drawing.Point(2, 23);
this.layoutControl7.Name = "layoutControl7";
this.layoutControl7.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1212, 252, 614, 350);
this.layoutControl7.Root = this.layoutControlGroup7;
this.layoutControl7.Size = new System.Drawing.Size(224, 37);
this.layoutControl7.TabIndex = 0;
this.layoutControl7.Text = "layoutControl7";
//
// btnDefaultSet
//
this.btnDefaultSet.Location = new System.Drawing.Point(130, 5);
this.btnDefaultSet.Name = "btnDefaultSet";
this.btnDefaultSet.Size = new System.Drawing.Size(89, 27);
this.btnDefaultSet.StyleController = this.layoutControl7;
this.btnDefaultSet.TabIndex = 5;
this.btnDefaultSet.Text = "Set";
this.btnDefaultSet.Click += new System.EventHandler(this.btnDefaultSet_Click);
//
// layoutControlGroup7
//
this.layoutControlGroup7.CustomizationFormText = "layoutControlGroup7";
this.layoutControlGroup7.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup7.GroupBordersVisible = false;
this.layoutControlGroup7.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem22,
this.emptySpaceItem4});
this.layoutControlGroup7.Name = "Root";
this.layoutControlGroup7.Padding = new DevExpress.XtraLayout.Utils.Padding(3, 3, 3, 3);
this.layoutControlGroup7.Size = new System.Drawing.Size(224, 37);
this.layoutControlGroup7.TextVisible = false;
//
// layoutControlItem22
//
this.layoutControlItem22.Control = this.btnDefaultSet;
this.layoutControlItem22.CustomizationFormText = "layoutControlItem22";
this.layoutControlItem22.Location = new System.Drawing.Point(125, 0);
this.layoutControlItem22.MinSize = new System.Drawing.Size(93, 26);
this.layoutControlItem22.Name = "layoutControlItem22";
this.layoutControlItem22.Size = new System.Drawing.Size(93, 31);
this.layoutControlItem22.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem22.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem22.TextVisible = false;
//
// emptySpaceItem4
//
this.emptySpaceItem4.AllowHotTrack = false;
this.emptySpaceItem4.Location = new System.Drawing.Point(0, 0);
this.emptySpaceItem4.Name = "emptySpaceItem4";
this.emptySpaceItem4.Size = new System.Drawing.Size(125, 31);
this.emptySpaceItem4.TextSize = new System.Drawing.Size(0, 0);
//
// gbCurrentParam
//
this.gbCurrentParam.Controls.Add(this.layoutControl5);
this.gbCurrentParam.Location = new System.Drawing.Point(3, 431);
this.gbCurrentParam.Name = "gbCurrentParam";
this.gbCurrentParam.Size = new System.Drawing.Size(455, 210);
this.gbCurrentParam.TabIndex = 10;
this.gbCurrentParam.Text = "Current Parameter";
//
// layoutControl5
//
this.layoutControl5.Controls.Add(this.ucDOCParam);
this.layoutControl5.Controls.Add(this.ucCOCParam);
this.layoutControl5.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl5.Location = new System.Drawing.Point(2, 23);
this.layoutControl5.Name = "layoutControl5";
this.layoutControl5.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(757, 268, 250, 350);
this.layoutControl5.Root = this.layoutControlGroup5;
this.layoutControl5.Size = new System.Drawing.Size(451, 185);
this.layoutControl5.TabIndex = 0;
this.layoutControl5.Text = "layoutControl5";
//
// layoutControlGroup5
//
this.layoutControlGroup5.CustomizationFormText = "layoutControlGroup5";
this.layoutControlGroup5.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup5.GroupBordersVisible = false;
this.layoutControlGroup5.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem14,
this.layoutControlItem15});
this.layoutControlGroup5.Name = "layoutControlGroup5";
this.layoutControlGroup5.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
this.layoutControlGroup5.Size = new System.Drawing.Size(451, 185);
this.layoutControlGroup5.TextVisible = false;
//
// gbDchTempParam
//
this.gbDchTempParam.Controls.Add(this.layoutControl4);
this.gbDchTempParam.Location = new System.Drawing.Point(462, 217);
this.gbDchTempParam.Name = "gbDchTempParam";
this.gbDchTempParam.Size = new System.Drawing.Size(460, 210);
this.gbDchTempParam.TabIndex = 9;
this.gbDchTempParam.Text = "Discharge Temp Parameter";
//
// layoutControl4
//
this.layoutControl4.Controls.Add(this.ucDLTParam);
this.layoutControl4.Controls.Add(this.ucDHTParam);
this.layoutControl4.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl4.Location = new System.Drawing.Point(2, 23);
this.layoutControl4.Name = "layoutControl4";
this.layoutControl4.Root = this.layoutControlGroup4;
this.layoutControl4.Size = new System.Drawing.Size(456, 185);
this.layoutControl4.TabIndex = 0;
this.layoutControl4.Text = "layoutControl4";
//
// layoutControlGroup4
//
this.layoutControlGroup4.CustomizationFormText = "layoutControlGroup4";
this.layoutControlGroup4.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup4.GroupBordersVisible = false;
this.layoutControlGroup4.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem12,
this.layoutControlItem13});
this.layoutControlGroup4.Name = "layoutControlGroup4";
this.layoutControlGroup4.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
this.layoutControlGroup4.Size = new System.Drawing.Size(456, 185);
this.layoutControlGroup4.TextVisible = false;
//
// gbChaTempParam
//
this.gbChaTempParam.Controls.Add(this.layoutControl3);
this.gbChaTempParam.Location = new System.Drawing.Point(3, 217);
this.gbChaTempParam.Name = "gbChaTempParam";
this.gbChaTempParam.Size = new System.Drawing.Size(455, 210);
this.gbChaTempParam.TabIndex = 8;
this.gbChaTempParam.Text = "Charge Temp Parameter";
//
// layoutControl3
//
this.layoutControl3.Controls.Add(this.ucCLTParam);
this.layoutControl3.Controls.Add(this.ucCHTParam);
this.layoutControl3.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl3.Location = new System.Drawing.Point(2, 23);
this.layoutControl3.Name = "layoutControl3";
this.layoutControl3.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1273, 246, 250, 350);
this.layoutControl3.Root = this.layoutControlGroup3;
this.layoutControl3.Size = new System.Drawing.Size(451, 185);
this.layoutControl3.TabIndex = 0;
this.layoutControl3.Text = "layoutControl3";
//
// layoutControlGroup3
//
this.layoutControlGroup3.CustomizationFormText = "layoutControlGroup3";
this.layoutControlGroup3.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup3.GroupBordersVisible = false;
this.layoutControlGroup3.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem9,
this.layoutControlItem10});
this.layoutControlGroup3.Name = "layoutControlGroup3";
this.layoutControlGroup3.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
this.layoutControlGroup3.Size = new System.Drawing.Size(451, 185);
this.layoutControlGroup3.TextVisible = false;
//
// gbVoltageParamSet
//
this.gbVoltageParamSet.Controls.Add(this.layoutControl2);
this.gbVoltageParamSet.Location = new System.Drawing.Point(3, 3);
this.gbVoltageParamSet.Name = "gbVoltageParamSet";
this.gbVoltageParamSet.Size = new System.Drawing.Size(919, 210);
this.gbVoltageParamSet.TabIndex = 7;
this.gbVoltageParamSet.Text = "-";
//
// layoutControl2
//
this.layoutControl2.Controls.Add(this.ucSUVParam);
this.layoutControl2.Controls.Add(this.ucSOVParam);
this.layoutControl2.Controls.Add(this.ucCUVParam);
this.layoutControl2.Controls.Add(this.ucCOVParam);
this.layoutControl2.Dock = System.Windows.Forms.DockStyle.Fill;
this.layoutControl2.Location = new System.Drawing.Point(2, 23);
this.layoutControl2.Name = "layoutControl2";
this.layoutControl2.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1218, 0, 650, 400);
this.layoutControl2.Root = this.layoutControlGroup2;
this.layoutControl2.Size = new System.Drawing.Size(915, 185);
this.layoutControl2.TabIndex = 0;
this.layoutControl2.Text = "layoutControl2";
//
// layoutControlGroup2
//
this.layoutControlGroup2.CustomizationFormText = "layoutControlGroup2";
this.layoutControlGroup2.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup2.GroupBordersVisible = false;
this.layoutControlGroup2.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem4,
this.layoutControlItem5,
this.layoutControlItem6,
this.layoutControlItem7});
this.layoutControlGroup2.Name = "Root";
this.layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
this.layoutControlGroup2.Size = new System.Drawing.Size(915, 185);
this.layoutControlGroup2.TextVisible = false;
//
// btnClose
//
this.btnClose.Location = new System.Drawing.Point(3, 711);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(919, 63);
this.btnClose.StyleController = this.layoutControl1;
this.btnClose.TabIndex = 6;
this.btnClose.Text = "CLOSE";
this.btnClose.Click += new System.EventHandler(this.btnCancel_Click);
//
// layoutControlGroup1
//
this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
this.layoutControlGroup1.GroupBordersVisible = false;
this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem3,
this.layoutControlItem1,
this.layoutControlItem8,
this.layoutControlItem11,
this.layoutControlItem2,
this.emptySpaceItem1,
this.emptySpaceItem2,
this.layoutControlItem19,
this.emptySpaceItem3,
this.layoutControlGroup6});
this.layoutControlGroup1.Name = "Root";
this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup1.Size = new System.Drawing.Size(925, 777);
this.layoutControlGroup1.TextVisible = false;
//
// layoutControlItem3
//
this.layoutControlItem3.Control = this.btnClose;
this.layoutControlItem3.CustomizationFormText = "layoutControlItem3";
this.layoutControlItem3.Location = new System.Drawing.Point(0, 708);
this.layoutControlItem3.MinSize = new System.Drawing.Size(93, 26);
this.layoutControlItem3.Name = "layoutControlItem3";
this.layoutControlItem3.Size = new System.Drawing.Size(923, 67);
this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem3.TextVisible = false;
//
// layoutControlItem1
//
this.layoutControlItem1.Control = this.gbVoltageParamSet;
this.layoutControlItem1.CustomizationFormText = "layoutControlItem1";
this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem1.MaxSize = new System.Drawing.Size(0, 214);
this.layoutControlItem1.MinSize = new System.Drawing.Size(424, 214);
this.layoutControlItem1.Name = "layoutControlItem1";
this.layoutControlItem1.Size = new System.Drawing.Size(923, 214);
this.layoutControlItem1.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem1.TextVisible = false;
//
// layoutControlItem8
//
this.layoutControlItem8.Control = this.gbChaTempParam;
this.layoutControlItem8.CustomizationFormText = "layoutControlItem8";
this.layoutControlItem8.Location = new System.Drawing.Point(0, 214);
this.layoutControlItem8.MaxSize = new System.Drawing.Size(0, 214);
this.layoutControlItem8.MinSize = new System.Drawing.Size(216, 214);
this.layoutControlItem8.Name = "layoutControlItem8";
this.layoutControlItem8.Size = new System.Drawing.Size(459, 214);
this.layoutControlItem8.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem8.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem8.TextVisible = false;
//
// layoutControlItem11
//
this.layoutControlItem11.Control = this.gbDchTempParam;
this.layoutControlItem11.CustomizationFormText = "layoutControlItem11";
this.layoutControlItem11.Location = new System.Drawing.Point(459, 214);
this.layoutControlItem11.Name = "layoutControlItem11";
this.layoutControlItem11.Size = new System.Drawing.Size(464, 214);
this.layoutControlItem11.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem11.TextVisible = false;
//
// layoutControlItem2
//
this.layoutControlItem2.Control = this.gbCurrentParam;
this.layoutControlItem2.CustomizationFormText = "layoutControlItem2";
this.layoutControlItem2.Location = new System.Drawing.Point(0, 428);
this.layoutControlItem2.MaxSize = new System.Drawing.Size(0, 214);
this.layoutControlItem2.MinSize = new System.Drawing.Size(216, 214);
this.layoutControlItem2.Name = "layoutControlItem2";
this.layoutControlItem2.Size = new System.Drawing.Size(459, 214);
this.layoutControlItem2.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem2.TextVisible = false;
//
// emptySpaceItem1
//
this.emptySpaceItem1.AllowHotTrack = false;
this.emptySpaceItem1.CustomizationFormText = "emptySpaceItem1";
this.emptySpaceItem1.Location = new System.Drawing.Point(0, 642);
this.emptySpaceItem1.Name = "emptySpaceItem1";
this.emptySpaceItem1.Size = new System.Drawing.Size(459, 66);
this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
//
// emptySpaceItem2
//
this.emptySpaceItem2.AllowHotTrack = false;
this.emptySpaceItem2.CustomizationFormText = "emptySpaceItem2";
this.emptySpaceItem2.Location = new System.Drawing.Point(459, 642);
this.emptySpaceItem2.Name = "emptySpaceItem2";
this.emptySpaceItem2.Size = new System.Drawing.Size(232, 66);
this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
//
// layoutControlItem19
//
this.layoutControlItem19.Control = this.gbDefaultParam;
this.layoutControlItem19.CustomizationFormText = "layoutControlItem19";
this.layoutControlItem19.Location = new System.Drawing.Point(691, 642);
this.layoutControlItem19.Name = "layoutControlItem19";
this.layoutControlItem19.Size = new System.Drawing.Size(232, 66);
this.layoutControlItem19.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem19.TextVisible = false;
//
// emptySpaceItem3
//
this.emptySpaceItem3.AllowHotTrack = false;
this.emptySpaceItem3.Location = new System.Drawing.Point(459, 428);
this.emptySpaceItem3.Name = "emptySpaceItem3";
this.emptySpaceItem3.Size = new System.Drawing.Size(232, 214);
this.emptySpaceItem3.TextSize = new System.Drawing.Size(0, 0);
//
// layoutControlGroup6
//
this.layoutControlGroup6.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
this.layoutControlItem16});
this.layoutControlGroup6.Location = new System.Drawing.Point(691, 428);
this.layoutControlGroup6.Name = "layoutControlGroup6";
this.layoutControlGroup6.Padding = new DevExpress.XtraLayout.Utils.Padding(1, 1, 1, 1);
this.layoutControlGroup6.Size = new System.Drawing.Size(232, 214);
this.layoutControlGroup6.Text = "SOC Parameter";
//
// tmrDisplay
//
this.tmrDisplay.Interval = 500;
this.tmrDisplay.Tick += new System.EventHandler(this.tmrDisplay_Tick);
//
// ucSocParam
//
this.ucSocParam.Location = new System.Drawing.Point(698, 456);
this.ucSocParam.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.ucSocParam.Name = "ucSocParam";
this.ucSocParam.Size = new System.Drawing.Size(220, 181);
this.ucSocParam.TabIndex = 14;
//
// ucDOCParam
//
this.ucDOCParam.Location = new System.Drawing.Point(227, 2);
this.ucDOCParam.Name = "ucDOCParam";
this.ucDOCParam.Size = new System.Drawing.Size(222, 181);
this.ucDOCParam.TabIndex = 5;
//
// ucCOCParam
//
this.ucCOCParam.Location = new System.Drawing.Point(2, 2);
this.ucCOCParam.Name = "ucCOCParam";
this.ucCOCParam.Size = new System.Drawing.Size(221, 181);
this.ucCOCParam.TabIndex = 4;
//
// layoutControlItem14
//
this.layoutControlItem14.Control = this.ucCOCParam;
this.layoutControlItem14.CustomizationFormText = "layoutControlItem14";
this.layoutControlItem14.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem14.Name = "layoutControlItem14";
this.layoutControlItem14.Size = new System.Drawing.Size(225, 185);
this.layoutControlItem14.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem14.TextVisible = false;
//
// layoutControlItem15
//
this.layoutControlItem15.Control = this.ucDOCParam;
this.layoutControlItem15.CustomizationFormText = "layoutControlItem15";
this.layoutControlItem15.Location = new System.Drawing.Point(225, 0);
this.layoutControlItem15.Name = "layoutControlItem15";
this.layoutControlItem15.Size = new System.Drawing.Size(226, 185);
this.layoutControlItem15.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem15.TextVisible = false;
//
// ucDLTParam
//
this.ucDLTParam.Location = new System.Drawing.Point(229, 2);
this.ucDLTParam.Name = "ucDLTParam";
this.ucDLTParam.Size = new System.Drawing.Size(225, 181);
this.ucDLTParam.TabIndex = 5;
//
// ucDHTParam
//
this.ucDHTParam.Location = new System.Drawing.Point(2, 2);
this.ucDHTParam.Name = "ucDHTParam";
this.ucDHTParam.Size = new System.Drawing.Size(223, 181);
this.ucDHTParam.TabIndex = 4;
//
// layoutControlItem12
//
this.layoutControlItem12.Control = this.ucDHTParam;
this.layoutControlItem12.CustomizationFormText = "layoutControlItem12";
this.layoutControlItem12.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem12.Name = "layoutControlItem12";
this.layoutControlItem12.Size = new System.Drawing.Size(227, 185);
this.layoutControlItem12.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem12.TextVisible = false;
//
// layoutControlItem13
//
this.layoutControlItem13.Control = this.ucDLTParam;
this.layoutControlItem13.CustomizationFormText = "layoutControlItem13";
this.layoutControlItem13.Location = new System.Drawing.Point(227, 0);
this.layoutControlItem13.Name = "layoutControlItem13";
this.layoutControlItem13.Size = new System.Drawing.Size(229, 185);
this.layoutControlItem13.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem13.TextVisible = false;
//
// ucCLTParam
//
this.ucCLTParam.Location = new System.Drawing.Point(227, 2);
this.ucCLTParam.Name = "ucCLTParam";
this.ucCLTParam.Size = new System.Drawing.Size(222, 181);
this.ucCLTParam.TabIndex = 5;
//
// ucCHTParam
//
this.ucCHTParam.Location = new System.Drawing.Point(2, 2);
this.ucCHTParam.Name = "ucCHTParam";
this.ucCHTParam.Size = new System.Drawing.Size(221, 181);
this.ucCHTParam.TabIndex = 4;
//
// layoutControlItem9
//
this.layoutControlItem9.Control = this.ucCHTParam;
this.layoutControlItem9.CustomizationFormText = "layoutControlItem9";
this.layoutControlItem9.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem9.Name = "layoutControlItem9";
this.layoutControlItem9.Size = new System.Drawing.Size(225, 185);
this.layoutControlItem9.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem9.TextVisible = false;
//
// layoutControlItem10
//
this.layoutControlItem10.Control = this.ucCLTParam;
this.layoutControlItem10.CustomizationFormText = "layoutControlItem10";
this.layoutControlItem10.Location = new System.Drawing.Point(225, 0);
this.layoutControlItem10.Name = "layoutControlItem10";
this.layoutControlItem10.Size = new System.Drawing.Size(226, 185);
this.layoutControlItem10.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem10.TextVisible = false;
//
// ucSUVParam
//
this.ucSUVParam.Location = new System.Drawing.Point(687, 2);
this.ucSUVParam.Name = "ucSUVParam";
this.ucSUVParam.Size = new System.Drawing.Size(226, 181);
this.ucSUVParam.TabIndex = 7;
//
// ucSOVParam
//
this.ucSOVParam.Location = new System.Drawing.Point(460, 2);
this.ucSOVParam.Name = "ucSOVParam";
this.ucSOVParam.Size = new System.Drawing.Size(223, 181);
this.ucSOVParam.TabIndex = 6;
//
// ucCUVParam
//
this.ucCUVParam.Location = new System.Drawing.Point(231, 2);
this.ucCUVParam.Name = "ucCUVParam";
this.ucCUVParam.Size = new System.Drawing.Size(225, 181);
this.ucCUVParam.TabIndex = 5;
//
// ucCOVParam
//
this.ucCOVParam.Location = new System.Drawing.Point(2, 2);
this.ucCOVParam.Name = "ucCOVParam";
this.ucCOVParam.Size = new System.Drawing.Size(225, 181);
this.ucCOVParam.TabIndex = 4;
//
// layoutControlItem4
//
this.layoutControlItem4.Control = this.ucCOVParam;
this.layoutControlItem4.CustomizationFormText = "layoutControlItem4";
this.layoutControlItem4.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem4.Name = "layoutControlItem4";
this.layoutControlItem4.Size = new System.Drawing.Size(229, 185);
this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem4.TextVisible = false;
//
// layoutControlItem5
//
this.layoutControlItem5.Control = this.ucCUVParam;
this.layoutControlItem5.CustomizationFormText = "layoutControlItem5";
this.layoutControlItem5.Location = new System.Drawing.Point(229, 0);
this.layoutControlItem5.Name = "layoutControlItem5";
this.layoutControlItem5.Size = new System.Drawing.Size(229, 185);
this.layoutControlItem5.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem5.TextVisible = false;
//
// layoutControlItem6
//
this.layoutControlItem6.Control = this.ucSOVParam;
this.layoutControlItem6.CustomizationFormText = "layoutControlItem6";
this.layoutControlItem6.Location = new System.Drawing.Point(458, 0);
this.layoutControlItem6.Name = "layoutControlItem6";
this.layoutControlItem6.Size = new System.Drawing.Size(227, 185);
this.layoutControlItem6.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem6.TextVisible = false;
//
// layoutControlItem7
//
this.layoutControlItem7.Control = this.ucSUVParam;
this.layoutControlItem7.CustomizationFormText = "layoutControlItem7";
this.layoutControlItem7.Location = new System.Drawing.Point(685, 0);
this.layoutControlItem7.Name = "layoutControlItem7";
this.layoutControlItem7.Size = new System.Drawing.Size(230, 185);
this.layoutControlItem7.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem7.TextVisible = false;
//
// layoutControlItem16
//
this.layoutControlItem16.Control = this.ucSocParam;
this.layoutControlItem16.Location = new System.Drawing.Point(0, 0);
this.layoutControlItem16.Name = "layoutControlItem16";
this.layoutControlItem16.Size = new System.Drawing.Size(224, 185);
this.layoutControlItem16.TextSize = new System.Drawing.Size(0, 0);
this.layoutControlItem16.TextVisible = false;
//
// fmxParamConfig
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(925, 777);
this.Controls.Add(this.layoutControl1);
this.IconOptions.Icon = ((System.Drawing.Icon)(resources.GetObject("fmxParamConfig.IconOptions.Icon")));
this.Name = "fmxParamConfig";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Parameter Config";
this.Load += new System.EventHandler(this.fmxParamConfig_Load);
((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
this.layoutControl1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.gbDefaultParam)).EndInit();
this.gbDefaultParam.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControl7)).EndInit();
this.layoutControl7.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup7)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem22)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gbCurrentParam)).EndInit();
this.gbCurrentParam.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControl5)).EndInit();
this.layoutControl5.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gbDchTempParam)).EndInit();
this.gbDchTempParam.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControl4)).EndInit();
this.layoutControl4.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gbChaTempParam)).EndInit();
this.gbChaTempParam.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControl3)).EndInit();
this.layoutControl3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.gbVoltageParamSet)).EndInit();
this.gbVoltageParamSet.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControl2)).EndInit();
this.layoutControl2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem15)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraLayout.LayoutControl layoutControl1;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
private DevExpress.XtraEditors.SimpleButton btnClose;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
private System.Windows.Forms.Timer tmrDisplay;
private DevExpress.XtraEditors.GroupControl gbVoltageParamSet;
private DevExpress.XtraLayout.LayoutControl layoutControl2;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup2;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
private Controls.ucParamSet ucCOVParam;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
private Controls.ucParamSet ucCUVParam;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
private Controls.ucParamSet ucSUVParam;
private Controls.ucParamSet ucSOVParam;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
private DevExpress.XtraEditors.GroupControl gbChaTempParam;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8;
private DevExpress.XtraLayout.LayoutControl layoutControl3;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup3;
private Controls.ucParamSet ucCLTParam;
private Controls.ucParamSet ucCHTParam;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10;
private DevExpress.XtraEditors.GroupControl gbDchTempParam;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11;
private DevExpress.XtraLayout.LayoutControl layoutControl4;
private Controls.ucParamSet ucDLTParam;
private Controls.ucParamSet ucDHTParam;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup4;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem12;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem13;
private DevExpress.XtraEditors.GroupControl gbCurrentParam;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
private DevExpress.XtraLayout.LayoutControl layoutControl5;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup5;
private Controls.ucParamSet ucDOCParam;
private Controls.ucParamSet ucCOCParam;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem14;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem15;
private DevExpress.XtraEditors.GroupControl gbDefaultParam;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem19;
private DevExpress.XtraLayout.LayoutControl layoutControl7;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup7;
private DevExpress.XtraEditors.SimpleButton btnDefaultSet;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem22;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem3;
private Controls.ucParamSet ucSocParam;
private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup6;
private DevExpress.XtraLayout.LayoutControlItem layoutControlItem16;
private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem4;
}
}

View File

@@ -0,0 +1,396 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using LFP_Manager.DataStructure;
using LFP_Manager.Function;
using LFP_Manager.Controls;
namespace LFP_Manager.Forms
{
public partial class fmxParamConfig : DevExpress.XtraEditors.XtraForm
{
#region DELEGATE
public delegate void ParamUpdateEvent(object sendor);
public delegate void ParamCmdEvent(int sId, int mode, int index, int flag,
ref CsDeviceData.DeviceModuleData.DeviceParamData aParam,
ref CsDeviceData.DeviceModuleData.DeviceCalibration aCalib);
#endregion
#region VARIABLES
private int SystemId = 0;
private CommConfig Config = null;
private CsDeviceData.DeviceModuleData.DeviceParamData Param;
private CsDeviceData.DeviceModuleData.DeviceCalibration Calib;
private ucParamSet[] ParamSet = null;
private int PasswordResult = 0;
public event ParamUpdateEvent OnUpdate = null;
public event ParamCmdEvent OnCommand = null;
#endregion
#region CONSTRUCTORS
public fmxParamConfig(int sId, CommConfig aConfig, CsDeviceData.DeviceModuleData.DeviceParamData aParam)
{
InitializeComponent();
Config = aConfig;
SystemId = sId;
Param = aParam;
InitComponent();
gbVoltageParamSet.Text = "Parameter Config";
tmrDisplay.Enabled = true;
}
public void InitComponent()
{
ParamSet = new ucParamSet[11];
// Cell Voltage Parameter
ParamSet[0] = ucCOVParam;
ParamSet[0].SetParamName(0, "Cell Over Voltage");
ParamSet[0].SetParamName(1, "mV");
ParamSet[0].SetId(0);
ParamSet[0].OnCommand += OnCmdEvent;
ParamSet[1] = ucCUVParam;
ParamSet[1].SetParamName(0, "Cell Under Voltage");
ParamSet[1].SetParamName(1, "mV");
ParamSet[1].SetId(1);
ParamSet[1].OnCommand += OnCmdEvent;
//ucCUVParam.EnableItem(0, false);
// System Voltage Parameter
ParamSet[2] = ucSOVParam;
ParamSet[2].SetParamName(0, "System Over Voltage");
ParamSet[2].SetParamName(1, "V");
ParamSet[2].SetId(2);
ParamSet[2].OnCommand += OnCmdEvent;
ParamSet[3] = ucSUVParam;
ParamSet[3].SetParamName(0, "System Under Voltage");
ParamSet[3].SetParamName(1, "V");
ParamSet[3].SetId(3);
ParamSet[3].OnCommand += OnCmdEvent;
//ucSUVParam.EnableItem(0, false);
// Charge Temperature Parameter
ParamSet[4] = ucCHTParam;
ParamSet[4].SetParamName(0, "Charge High Temp");
ParamSet[4].SetParamName(1, "C");
ParamSet[4].SetId(4);
ParamSet[4].OnCommand += OnCmdEvent;
ParamSet[5] = ucCLTParam;
ParamSet[5].SetParamName(0, "Charge Low Temp");
ParamSet[5].SetParamName(1, "C");
ParamSet[5].SetId(5);
ParamSet[5].OnCommand += OnCmdEvent;
// Discharge Temperature Parameter
ParamSet[6] = ucDHTParam;
ParamSet[6].SetParamName(0, "Discharge High Temp");
ParamSet[6].SetParamName(1, "C");
ParamSet[6].SetId(6);
ParamSet[6].OnCommand += OnCmdEvent;
//ucDHTParam.EnableItem(0, false);
ParamSet[7] = ucDLTParam;
ParamSet[7].SetParamName(0, "Discharge Low Temp");
ParamSet[7].SetParamName(1, "C");
ParamSet[7].SetId(7);
ParamSet[7].OnCommand += OnCmdEvent;
//ucDLTParam.EnableItem(0, false);
// Over Current Parameter
ParamSet[8] = ucCOCParam;
ParamSet[8].SetParamName(0, "Charge Over Current");
ParamSet[8].SetParamName(1, "A");
ParamSet[8].SetId(8);
ParamSet[8].OnCommand += OnCmdEvent;
//ucCOCParam.EnableItem(2, false);
ParamSet[9] = ucDOCParam;
ParamSet[9].SetParamName(0, "Discharge Over Current");
ParamSet[9].SetParamName(1, "A");
ParamSet[9].SetId(9);
ParamSet[9].OnCommand += OnCmdEvent;
//ucDOCParam.EnableItem(2, false);
// Low Capacity Parameter
ParamSet[10] = ucSocParam;
ParamSet[10].SetParamName(0, "SOC");
ParamSet[10].SetParamName(1, "%");
ParamSet[10].SetId(10);
ParamSet[10].OnCommand += OnCmdEvent;
ParamSet[10].VisibleItem(0, false);
ParamSet[10].VisibleItem(2, false);
}
#endregion
#region COMMAND EVENT
private void OnCmdEvent(int mode, int flag, ParamData aParam)
{
int cmd = 0;
CsDeviceData.DeviceModuleData.DeviceParamData wParam = Param.DeepCopy();
switch (mode)
{
case 0: // Cell Over Voltage
cmd = csConstData.UART_PARAM_LIST.CELL_OVER_VOLTAGE;
wParam.CellOverVoltageTrip = aParam.Fault;
wParam.CellOverVoltageWarning = aParam.Warning;
wParam.CellOverVoltageRelease = aParam.Release;
break;
case 1: // Cell Under Voltage
cmd = csConstData.UART_PARAM_LIST.CELL_UNDER_VOLTAGE;
wParam.CellUnderVoltageTrip = aParam.Fault;
wParam.CellUnderVoltageWarning = aParam.Warning;
wParam.CellUnderVoltageRelease = aParam.Release;
break;
case 2: // System Over Voltage
cmd = csConstData.UART_PARAM_LIST.PACK_OVER_VOLTAGE;
wParam.SysOverVoltageTrip = aParam.Fault;
wParam.SysOverVoltageWarning = aParam.Warning;
wParam.SysOverVoltageRelease = aParam.Release;
break;
case 3: // System Under Voltage
cmd = csConstData.UART_PARAM_LIST.PACK_UNDER_VOLTAGE;
wParam.SysUnderVoltageTrip = aParam.Fault;
wParam.SysUnderVoltageWarning = aParam.Warning;
wParam.SysUnderVoltageRelease = aParam.Release;
break;
case 4: // Charge High Temperature
cmd = csConstData.UART_PARAM_LIST.CHG_HIGH_TEMPERATURE;
wParam.ChaHighTempTrip = aParam.Fault;
wParam.ChaHighTempWarning = aParam.Warning;
wParam.ChaHighTempRelease = aParam.Release;
break;
case 5: // Charge Low Temperature
cmd = csConstData.UART_PARAM_LIST.CHG_LOW_TEMPERATURE;
wParam.ChaLowTempTrip = aParam.Fault;
wParam.ChaLowTempWarning = aParam.Warning;
wParam.ChaLowTempRelease = aParam.Release;
break;
case 6: // Discharge High Temperature
cmd = csConstData.UART_PARAM_LIST.DCH_HIGH_TEMPERATURE;
wParam.DchHighTempTrip = aParam.Fault;
wParam.DchHighTempWarning = aParam.Warning;
wParam.DchHighTempRelease = aParam.Release;
break;
case 7: // Discharge Low Temperature
cmd = csConstData.UART_PARAM_LIST.DCH_LOW_TEMPERATURE;
wParam.DchLowTempTrip = aParam.Fault;
wParam.DchLowTempWarning = aParam.Warning;
wParam.DchLowTempRelease = aParam.Release;
break;
case 8: // Charge Over Current
cmd = csConstData.UART_PARAM_LIST.CHG_OVER_CURRENT;
wParam.ChaOverCurrentTrip2 = aParam.Fault;
wParam.ChaOverCurrentTrip1 = aParam.Warning;
wParam.ChaOverCurrentReleaseTime = aParam.Release;
break;
case 9: // Discharge Over Current
cmd = csConstData.UART_PARAM_LIST.DCH_OVER_CURRENT;
wParam.DchOverCurrentTrip2 = aParam.Fault;
wParam.DchOverCurrentTrip1 = aParam.Warning;
wParam.DchOverCurrentReleaseTime = aParam.Release;
break;
case 10:
cmd = csConstData.UART_PARAM_LIST.LOW_CAPACITY;
wParam.LowSocTrip = aParam.Fault;
wParam.LowSocWarning = aParam.Warning;
wParam.LowSocRelease = aParam.Release;
break;
case 16: // Default Parameter
cmd = 0;
wParam.DefalutParamOption = aParam.Fault;
wParam.DefalutParamAll = aParam.Release;
break;
case 0x2D:
wParam.ReadParamAll = 0x002D;
cmd = 0x2D;
break;
case 99:
cmd = 200; // All parameter read
break;
}
OnCommand?.Invoke(SystemId, cmd, 6, flag, ref wParam, ref Calib);
}
#endregion
#region UPDATE DATA
public void UpdateData(CsDeviceData.DeviceModuleData.DeviceParamData aParam, CsDeviceData.DeviceModuleData.DeviceCalibration aCalib)
{
Param = aParam;
Calib = aCalib;
}
#endregion
#region TIMER EVENT
private void tmrDisplay_Tick(object sender, EventArgs e)
{
DisplayValue();
OnUpdate?.Invoke(this);
}
#endregion
private void DisplayValue()
{
ParamData pData = new ParamData();
// Cell Voltage Parameter
pData.Fault = Param.CellOverVoltageTrip;
pData.Warning = Param.CellOverVoltageWarning;
pData.Release = Param.CellOverVoltageRelease;
ucCOVParam.UpdateData(pData);
pData.Fault = Param.CellUnderVoltageTrip;
pData.Warning = Param.CellUnderVoltageWarning;
pData.Release = Param.CellUnderVoltageRelease;
ucCUVParam.UpdateData(pData);
// System Voltage Parameter
pData.Fault = Param.SysOverVoltageTrip;
pData.Warning = Param.SysOverVoltageWarning;
pData.Release = Param.SysOverVoltageRelease;
ucSOVParam.UpdateData(pData);
pData.Fault = Param.SysUnderVoltageTrip;
pData.Warning = Param.SysUnderVoltageWarning;
pData.Release = Param.SysUnderVoltageRelease;
ucSUVParam.UpdateData(pData);
// Charge Temp Parameter
pData.Fault = Param.ChaHighTempTrip;
pData.Warning = Param.ChaHighTempWarning;
pData.Release = Param.ChaHighTempRelease;
ucCHTParam.UpdateData(pData);
pData.Fault = Param.ChaLowTempTrip;
pData.Warning = Param.ChaLowTempWarning;
pData.Release = Param.ChaLowTempRelease;
ucCLTParam.UpdateData(pData);
// Discharge Temp Parameter
pData.Fault = Param.DchHighTempTrip;
pData.Warning = Param.DchHighTempWarning;
pData.Release = Param.DchHighTempRelease;
ucDHTParam.UpdateData(pData);
pData.Fault = Param.DchLowTempTrip;
pData.Warning = Param.DchLowTempWarning;
pData.Release = Param.DchLowTempRelease;
ucDLTParam.UpdateData(pData);
// Charge Over Current
pData.Fault = Param.ChaOverCurrentTrip2;
pData.Warning = Param.ChaOverCurrentTrip1;
pData.Release = Param.ChaOverCurrentReleaseTime;
ucCOCParam.UpdateData(pData);
// Discharge Over Current
pData.Fault = Param.DchOverCurrentTrip2;
pData.Warning = Param.DchOverCurrentTrip1;
pData.Release = Param.DchOverCurrentReleaseTime;
ucDOCParam.UpdateData(pData);
// SOC Parameter
pData.Fault = Param.LowSocTrip;
pData.Warning = Param.LowSocWarning;
pData.Release = Param.LowSocRelease;
ucSocParam.UpdateData(pData);
}
#region BUTTON EVENT
private void btnCancel_Click(object sender, EventArgs e)
{
this.Close();
}
private void btnGetAll_Click(object sender, EventArgs e)
{
ParamData aa = new ParamData();
OnCmdEvent(0x2D, 0, aa);
}
private void btnDefaultSet_Click(object sender, EventArgs e)
{
ParamData aa = new ParamData();
OnCmdEvent(16, 1, aa);
//DefaultTempAlarm();
}
#endregion
#region FORM EVENT
private void fmxParamConfig_Load(object sender, EventArgs e)
{
ParamConfig_ReLoad();
}
private void ParamConfig_ReLoad()
{
switch (Config.ControlLevel)
{
case 0: // User Level
for (int i = 0; i < ParamSet.Length; i++)
{
ParamSet[i].EnableDisableSetBtn(false);
}
btnDefaultSet.Enabled = false;
break;
case 1: // Technician Level
for (int i = 0; i < ParamSet.Length; i++)
{
ParamSet[i].EnableDisableSetBtn(false);
}
btnDefaultSet.Enabled = false;
break;
case 2: // Engineer Level
for (int i = 0; i < ParamSet.Length; i++)
{
ParamSet[i].EnableDisableSetBtn(true);
}
btnDefaultSet.Enabled = true;
break;
case 3: // Master Level
for (int i = 0; i < ParamSet.Length; i++)
{
ParamSet[i].EnableDisableSetBtn(true);
}
btnDefaultSet.Enabled = true;
break;
default: // User Level
for (int i = 0; i < ParamSet.Length; i++)
{
ParamSet[i].EnableDisableSetBtn(false);
}
btnDefaultSet.Enabled = false;
break;
}
}
#endregion
}
}

File diff suppressed because it is too large Load Diff

94
LFP_Manager/Forms/fmxWait.Designer.cs generated Normal file
View File

@@ -0,0 +1,94 @@
namespace LFP_Manager.Forms
{
partial class fmxWait
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.progressPanel1 = new DevExpress.XtraWaitForm.ProgressPanel();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// progressPanel1
//
this.progressPanel1.Appearance.BackColor = System.Drawing.Color.Transparent;
this.progressPanel1.Appearance.Options.UseBackColor = true;
this.progressPanel1.AppearanceCaption.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
this.progressPanel1.AppearanceCaption.Options.UseFont = true;
this.progressPanel1.AppearanceDescription.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.progressPanel1.AppearanceDescription.Options.UseFont = true;
this.progressPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.progressPanel1.ImageHorzOffset = 20;
this.progressPanel1.Location = new System.Drawing.Point(0, 16);
this.progressPanel1.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
this.progressPanel1.Name = "progressPanel1";
this.progressPanel1.Size = new System.Drawing.Size(287, 35);
this.progressPanel1.TabIndex = 0;
this.progressPanel1.Text = "progressPanel1";
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.AutoSize = true;
this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent;
this.tableLayoutPanel1.ColumnCount = 1;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Controls.Add(this.progressPanel1, 0, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.Padding = new System.Windows.Forms.Padding(0, 13, 0, 13);
this.tableLayoutPanel1.RowCount = 1;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(287, 67);
this.tableLayoutPanel1.TabIndex = 1;
//
// fmxWait
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoSize = true;
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.ClientSize = new System.Drawing.Size(287, 67);
this.Controls.Add(this.tableLayoutPanel1);
this.DoubleBuffered = true;
this.Name = "fmxWait";
this.ShowOnTopMode = DevExpress.XtraWaitForm.ShowFormOnTopMode.AboveAll;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "Form1";
this.tableLayoutPanel1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private DevExpress.XtraWaitForm.ProgressPanel progressPanel1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
}
}

View File

@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraWaitForm;
namespace LFP_Manager.Forms
{
public partial class fmxWait : WaitForm
{
public fmxWait()
{
InitializeComponent();
this.progressPanel1.AutoHeight = true;
}
#region Overrides
public override void SetCaption(string caption)
{
base.SetCaption(caption);
this.progressPanel1.Caption = caption;
}
public override void SetDescription(string description)
{
base.SetDescription(description);
this.progressPanel1.Description = description;
}
public override void ProcessCommand(Enum cmd, object arg)
{
base.ProcessCommand(cmd, arg);
}
#endregion
public enum WaitFormCommand
{
}
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>