Commit 5f6322e1 authored by leon.huang's avatar leon.huang

中译英临时提交。保存备份

parents c84acfab 6fb6f88a
...@@ -3,6 +3,7 @@ using System.Collections.Generic; ...@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.Globalization;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
...@@ -64,7 +65,14 @@ namespace GcDevicePc.ConfigMethod ...@@ -64,7 +65,14 @@ namespace GcDevicePc.ConfigMethod
if(this.updateflag) if(this.updateflag)
{ {
this.savebth.Text = "保存并提交"; if (Thread.CurrentThread.CurrentUICulture == CultureInfo.GetCultureInfo("en"))
{
this.savebth.Text = "Save and Run";
}
else
{
this.savebth.Text = "保存并提交";
}
} }
} }
...@@ -76,7 +84,15 @@ namespace GcDevicePc.ConfigMethod ...@@ -76,7 +84,15 @@ namespace GcDevicePc.ConfigMethod
if (this.updateflag) if (this.updateflag)
{ {
this.savebth.Text = "保存并提交"; if (Thread.CurrentThread.CurrentUICulture == CultureInfo.GetCultureInfo("en"))
{
this.savebth.Text = "Save and Run";
}
else
{
this.savebth.Text = "保存并提交";
}
} }
if (!enable) if (!enable)
...@@ -214,9 +230,22 @@ namespace GcDevicePc.ConfigMethod ...@@ -214,9 +230,22 @@ namespace GcDevicePc.ConfigMethod
//m_iPSPL.reflashContent(); //m_iPSPL.reflashContent();
//m_iPVAL.reflashContent(); //m_iPVAL.reflashContent();
} }
private void MethodMain_Load(object sender, EventArgs e) private void MethodMain_Load(object sender, EventArgs e)
{ {
if (Thread.CurrentThread.CurrentUICulture == CultureInfo.GetCultureInfo("en"))
{
for (int i = 0; i < methodimages.Images.Count; i++)
{
methodimages.Images[i] = EnglishImageList1.Images[i];
}
}
else
{
for (int i = 0; i < methodimages.Images.Count; i++)
{
methodimages.Images[i] = ChaineseImageList1.Images[i];
}
}
m_SampleTab.TopLevel = false; m_SampleTab.TopLevel = false;
m_SampleTab.Show(); m_SampleTab.Show();
...@@ -493,5 +522,10 @@ namespace GcDevicePc.ConfigMethod ...@@ -493,5 +522,10 @@ namespace GcDevicePc.ConfigMethod
//string message = "另存为成功!"; //string message = "另存为成功!";
//MessageBox.Show(message, "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.ServiceNotification); //MessageBox.Show(message, "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.ServiceNotification);
} }
private void MethodMain_Paint(object sender, PaintEventArgs e)
{
}
} }
} }
This diff is collapsed.
This diff is collapsed.
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConnTimeOut));
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
...@@ -35,46 +36,33 @@ ...@@ -35,46 +36,33 @@
// //
// button1 // button1
// //
resources.ApplyResources(this.button1, "button1");
this.button1.DialogResult = System.Windows.Forms.DialogResult.OK; this.button1.DialogResult = System.Windows.Forms.DialogResult.OK;
this.button1.Location = new System.Drawing.Point(45, 65);
this.button1.Name = "button1"; this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(74, 23);
this.button1.TabIndex = 0;
this.button1.Text = "进入离线";
this.button1.UseVisualStyleBackColor = true; this.button1.UseVisualStyleBackColor = true;
// //
// button2 // button2
// //
resources.ApplyResources(this.button2, "button2");
this.button2.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.button2.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.button2.Location = new System.Drawing.Point(205, 65);
this.button2.Name = "button2"; this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 1;
this.button2.Text = "退出程序";
this.button2.UseVisualStyleBackColor = true; this.button2.UseVisualStyleBackColor = true;
// //
// label1 // label1
// //
this.label1.AutoSize = true; resources.ApplyResources(this.label1, "label1");
this.label1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(73, 26);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(184, 16);
this.label1.TabIndex = 2;
this.label1.Text = "连接超时,请检查网络。";
// //
// ConnTimeOut // ConnTimeOut
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(334, 104);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Controls.Add(this.button2); this.Controls.Add(this.button2);
this.Controls.Add(this.button1); this.Controls.Add(this.button1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "ConnTimeOut"; this.Name = "ConnTimeOut";
this.Opacity = 0.9D; this.Opacity = 0.9D;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.TopMost = true; this.TopMost = true;
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
......
<?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="button1.Location" type="System.Drawing.Point, System.Drawing">
<value>20, 65</value>
</data>
<data name="button1.Size" type="System.Drawing.Size, System.Drawing">
<value>143, 30</value>
</data>
<data name="button1.Text" xml:space="preserve">
<value>Enter Offline Device</value>
</data>
<data name="button2.Location" type="System.Drawing.Point, System.Drawing">
<value>213, 65</value>
</data>
<data name="button2.Size" type="System.Drawing.Size, System.Drawing">
<value>143, 30</value>
</data>
<data name="button2.Text" xml:space="preserve">
<value>Exit</value>
</data>
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 27</value>
</data>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<value>360, 16</value>
</data>
<data name="label1.Text" xml:space="preserve">
<value>Connection Timeout,Please Check the Network.</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>376, 104</value>
</data>
</root>
\ No newline at end of file
...@@ -117,4 +117,106 @@ ...@@ -117,4 +117,106 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="label1.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="button2.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="&gt;&gt;button2.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 12</value>
</data>
<data name="button2.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="label1.Font" type="System.Drawing.Font, System.Drawing">
<value>宋体, 12pt</value>
</data>
<data name="&gt;&gt;button2.Name" xml:space="preserve">
<value>button2</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>ConnTimeOut</value>
</data>
<data name="&gt;&gt;button2.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
<value>73, 26</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>334, 104</value>
</data>
<data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterScreen</value>
</data>
<data name="button1.Size" type="System.Drawing.Size, System.Drawing">
<value>74, 23</value>
</data>
<data name="&gt;&gt;label1.Name" xml:space="preserve">
<value>label1</value>
</data>
<data name="&gt;&gt;button1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;label1.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="&gt;&gt;button1.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="button2.Text" xml:space="preserve">
<value>退出程序</value>
</data>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<value>184, 16</value>
</data>
<data name="label1.Text" xml:space="preserve">
<value>连接超时,请检查网络。</value>
</data>
<data name="button1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="&gt;&gt;button1.Name" xml:space="preserve">
<value>button1</value>
</data>
<data name="&gt;&gt;button1.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="button1.Text" xml:space="preserve">
<value>进入离线</value>
</data>
<data name="button1.Location" type="System.Drawing.Point, System.Drawing">
<value>45, 65</value>
</data>
<data name="button2.Location" type="System.Drawing.Point, System.Drawing">
<value>205, 65</value>
</data>
<data name="&gt;&gt;label1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;button2.Parent" xml:space="preserve">
<value>$this</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>en</value>
</metadata>
</root> </root>
\ No newline at end of file
...@@ -34,32 +34,22 @@ ...@@ -34,32 +34,22 @@
// //
// datalist // datalist
// //
this.datalist.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) resources.ApplyResources(this.datalist, "datalist");
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.datalist.FullRowSelect = true; this.datalist.FullRowSelect = true;
this.datalist.GridLines = true; this.datalist.GridLines = true;
this.datalist.HideSelection = false; this.datalist.HideSelection = false;
this.datalist.Location = new System.Drawing.Point(0, 0);
this.datalist.Margin = new System.Windows.Forms.Padding(0);
this.datalist.Name = "datalist"; this.datalist.Name = "datalist";
this.datalist.OwnerDraw = true; this.datalist.OwnerDraw = true;
this.datalist.Size = new System.Drawing.Size(286, 330);
this.datalist.TabIndex = 0;
this.datalist.UseCompatibleStateImageBehavior = false; this.datalist.UseCompatibleStateImageBehavior = false;
this.datalist.View = System.Windows.Forms.View.Details; this.datalist.View = System.Windows.Forms.View.Details;
// //
// DataState // DataState
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(284, 325);
this.Controls.Add(this.datalist); this.Controls.Add(this.datalist);
this.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "DataState"; this.Name = "DataState";
this.Text = "GC 显示系统";
this.Load += new System.EventHandler(this.DataState_Load); this.Load += new System.EventHandler(this.DataState_Load);
this.ResumeLayout(false); this.ResumeLayout(false);
......
This diff is collapsed.
This diff is collapsed.
...@@ -117,6 +117,12 @@ ...@@ -117,6 +117,12 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>WeifenLuo.WinFormsUI.Docking.DockContent, WeifenLuo.WinFormsUI.Docking, Version=2.9.0.0, Culture=neutral, PublicKeyToken=5cded1a1a0a7b481</value>
</data>
<data name="&gt;&gt;datalist.Type" xml:space="preserve">
<value>GcDevicePc.ListViewNF, GcDevicePc, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
...@@ -284,4 +290,51 @@ ...@@ -284,4 +290,51 @@
AAA= AAA=
</value> </value>
</data> </data>
<data name="datalist.Size" type="System.Drawing.Size, System.Drawing">
<value>286, 330</value>
</data>
<data name="&gt;&gt;datalist.Parent" xml:space="preserve">
<value>$this</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="datalist.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>0, 0, 0, 0</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>284, 325</value>
</data>
<data name="datalist.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 0</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>DataState</value>
</data>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 12</value>
</data>
<data name="datalist.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top, Bottom, Left, Right</value>
</data>
<data name="&gt;&gt;datalist.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>GC 显示系统</value>
</data>
<data name="&gt;&gt;datalist.Name" xml:space="preserve">
<value>datalist</value>
</data>
<data name="$this.Font" type="System.Drawing.Font, System.Drawing">
<value>宋体, 9pt</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="datalist.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>en</value>
</metadata>
</root> </root>
\ No newline at end of file
namespace GcDevicePc using System.Globalization;
using System.Threading;
namespace GcDevicePc
{ {
partial class GCTitle partial class GCTitle
{ {
...@@ -34,6 +37,9 @@ ...@@ -34,6 +37,9 @@
this.ordimages = new System.Windows.Forms.ImageList(this.components); this.ordimages = new System.Windows.Forms.ImageList(this.components);
this.sysimages = new System.Windows.Forms.ImageList(this.components); this.sysimages = new System.Windows.Forms.ImageList(this.components);
this.pictureMenu1 = new GcDevicePc.Controls.PictureMenu(); this.pictureMenu1 = new GcDevicePc.Controls.PictureMenu();
this.EnglishOptimages = new System.Windows.Forms.ImageList(this.components);
this.EnglishOrdimages = new System.Windows.Forms.ImageList(this.components);
this.EnglishSysimages = new System.Windows.Forms.ImageList(this.components);
this.SuspendLayout(); this.SuspendLayout();
// //
// optimages // optimages
...@@ -84,34 +90,75 @@ ...@@ -84,34 +90,75 @@
// //
// pictureMenu1 // pictureMenu1
// //
resources.ApplyResources(this.pictureMenu1, "pictureMenu1");
this.pictureMenu1.BackColor = System.Drawing.SystemColors.Control; this.pictureMenu1.BackColor = System.Drawing.SystemColors.Control;
this.pictureMenu1.Location = new System.Drawing.Point(0, 0);
this.pictureMenu1.Name = "pictureMenu1"; this.pictureMenu1.Name = "pictureMenu1";
this.pictureMenu1.OPTBtnnum = 3; this.pictureMenu1.OPTBtnnum = 3;
this.pictureMenu1.ORDBtnnum = 10; this.pictureMenu1.ORDBtnnum = 10;
this.pictureMenu1.PMHeight = 62; this.pictureMenu1.PMHeight = 62;
this.pictureMenu1.PMOptbtnstatus = 0; this.pictureMenu1.PMOptbtnstatus = 0;
this.pictureMenu1.PMOptimage = this.optimages; this.pictureMenu1.PMOptimage = this.EnglishOptimages;
this.pictureMenu1.PMOrdimage = this.ordimages; this.pictureMenu1.PMOrdimage = this.EnglishOrdimages;
this.pictureMenu1.PMSysbtnstatus = 0; this.pictureMenu1.PMSysbtnstatus = 0;
this.pictureMenu1.PMSysimage = this.sysimages; this.pictureMenu1.PMSysimage = this.EnglishSysimages;
this.pictureMenu1.PMWidth = 57; this.pictureMenu1.PMWidth = 57;
this.pictureMenu1.Size = new System.Drawing.Size(1008, 62);
this.pictureMenu1.StatusText = "未连接"; this.pictureMenu1.StatusText = "未连接";
this.pictureMenu1.SYSBtnnum = 1; this.pictureMenu1.SYSBtnnum = 1;
this.pictureMenu1.TabIndex = 0;
this.pictureMenu1.WaingShow = true; this.pictureMenu1.WaingShow = true;
// //
// EnglishOptimages
//
this.EnglishOptimages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("EnglishOptimages.ImageStream")));
this.EnglishOptimages.TransparentColor = System.Drawing.Color.Transparent;
this.EnglishOptimages.Images.SetKeyName(0, "A0.png");
this.EnglishOptimages.Images.SetKeyName(1, "B0.png");
this.EnglishOptimages.Images.SetKeyName(2, "C0.png");
this.EnglishOptimages.Images.SetKeyName(3, "A1.png");
this.EnglishOptimages.Images.SetKeyName(4, "B1.png");
this.EnglishOptimages.Images.SetKeyName(5, "C1.png");
this.EnglishOptimages.Images.SetKeyName(6, "A2.png");
this.EnglishOptimages.Images.SetKeyName(7, "B2.png");
this.EnglishOptimages.Images.SetKeyName(8, "C2.png");
//
// EnglishOrdimages
//
this.EnglishOrdimages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("EnglishOrdimages.ImageStream")));
this.EnglishOrdimages.TransparentColor = System.Drawing.Color.Transparent;
this.EnglishOrdimages.Images.SetKeyName(0, "D0.png");
this.EnglishOrdimages.Images.SetKeyName(1, "E0.png");
this.EnglishOrdimages.Images.SetKeyName(2, "F0.png");
this.EnglishOrdimages.Images.SetKeyName(3, "G0.png");
this.EnglishOrdimages.Images.SetKeyName(4, "H0.png");
this.EnglishOrdimages.Images.SetKeyName(5, "I0.png");
this.EnglishOrdimages.Images.SetKeyName(6, "J0.png");
this.EnglishOrdimages.Images.SetKeyName(7, "K0.png");
this.EnglishOrdimages.Images.SetKeyName(8, "L0.png");
this.EnglishOrdimages.Images.SetKeyName(9, "M0.png");
this.EnglishOrdimages.Images.SetKeyName(10, "D1.png");
this.EnglishOrdimages.Images.SetKeyName(11, "E1.png");
this.EnglishOrdimages.Images.SetKeyName(12, "F1.png");
this.EnglishOrdimages.Images.SetKeyName(13, "G1.png");
this.EnglishOrdimages.Images.SetKeyName(14, "H1.png");
this.EnglishOrdimages.Images.SetKeyName(15, "I1.png");
this.EnglishOrdimages.Images.SetKeyName(16, "J1.png");
this.EnglishOrdimages.Images.SetKeyName(17, "K1.png");
this.EnglishOrdimages.Images.SetKeyName(18, "L1.png");
this.EnglishOrdimages.Images.SetKeyName(19, "M1.png");
//
// EnglishSysimages
//
this.EnglishSysimages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("EnglishSysimages.ImageStream")));
this.EnglishSysimages.TransparentColor = System.Drawing.Color.Transparent;
this.EnglishSysimages.Images.SetKeyName(0, "N0.png");
this.EnglishSysimages.Images.SetKeyName(1, "N1.png");
//
// GCTitle // GCTitle
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 62);
this.Controls.Add(this.pictureMenu1); this.Controls.Add(this.pictureMenu1);
this.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "GCTitle"; this.Name = "GCTitle";
this.Text = "GCTitle";
this.ResumeLayout(false); this.ResumeLayout(false);
} }
...@@ -122,5 +169,8 @@ ...@@ -122,5 +169,8 @@
private System.Windows.Forms.ImageList optimages; private System.Windows.Forms.ImageList optimages;
private System.Windows.Forms.ImageList ordimages; private System.Windows.Forms.ImageList ordimages;
private System.Windows.Forms.ImageList sysimages; private System.Windows.Forms.ImageList sysimages;
private System.Windows.Forms.ImageList EnglishOptimages;
private System.Windows.Forms.ImageList EnglishOrdimages;
private System.Windows.Forms.ImageList EnglishSysimages;
} }
} }
\ No newline at end of file
...@@ -4,8 +4,10 @@ using System.Collections.Generic; ...@@ -4,8 +4,10 @@ using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Drawing; using System.Drawing;
using System.Globalization;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading;
using System.Windows.Forms; using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking; using WeifenLuo.WinFormsUI.Docking;
...@@ -16,11 +18,44 @@ namespace GcDevicePc ...@@ -16,11 +18,44 @@ namespace GcDevicePc
public GCTitle() public GCTitle()
{ {
InitializeComponent(); InitializeComponent();
if (Thread.CurrentThread.CurrentUICulture == CultureInfo.GetCultureInfo("en"))
{
this.pictureMenu1.PMOptimage = this.EnglishOptimages;
this.pictureMenu1.PMOrdimage = this.EnglishOrdimages;
this.pictureMenu1.PMSysimage = this.EnglishSysimages;
}
else
{
this.pictureMenu1.PMOptimage = this.optimages;
this.pictureMenu1.PMOrdimage = this.ordimages;
this.pictureMenu1.PMSysimage = this.sysimages;
}
//pictureMenu1.PMOrdBtnClicked += PictureMenu1_PMOrdBtnClicked; //pictureMenu1.PMOrdBtnClicked += PictureMenu1_PMOrdBtnClicked;
//pictureMenu1.PMOptBtnClicked += PictureMenu1_PMOptBtnClicked; //pictureMenu1.PMOptBtnClicked += PictureMenu1_PMOptBtnClicked;
//pictureMenu1.PMSysBtnClicked += PictureMenu1_PMSysBtnClicked; //pictureMenu1.PMSysBtnClicked += PictureMenu1_PMSysBtnClicked;
} }
private void GCTitle_Load(object sender, EventArgs e)
{
if (Thread.CurrentThread.CurrentUICulture == CultureInfo.GetCultureInfo("en"))
{
pictureMenu1.PMOptimage = EnglishOptimages;
//for (int i = 0; i < optimages.Images.Count; i++)
//{
// optimages.Images[i] = EnglishOptimages.Images[i];
//}
}
else
{
//for (int i = 0; i < optimages.Images.Count; i++)
//{
// optimages.Images[i] = ChineseOptimages.Images[i];
//}
}
}
////private void PictureMenu1_PMSysBtnClicked(object sender, EventArgs e) ////private void PictureMenu1_PMSysBtnClicked(object sender, EventArgs e)
////{ ////{
//// MessageBox.Show("1"); //// MessageBox.Show("1");
......
This diff is collapsed.
This diff is collapsed.
...@@ -751,8 +751,12 @@ ...@@ -751,8 +751,12 @@
<EmbeddedResource Include="AboutForm.resx"> <EmbeddedResource Include="AboutForm.resx">
<DependentUpon>AboutForm.cs</DependentUpon> <DependentUpon>AboutForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="auxtool.en.resx">
<DependentUpon>auxtool.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="auxtool.resx"> <EmbeddedResource Include="auxtool.resx">
<DependentUpon>auxtool.cs</DependentUpon> <DependentUpon>auxtool.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="CK_UI\AdjustFrom.resx"> <EmbeddedResource Include="CK_UI\AdjustFrom.resx">
<DependentUpon>AdjustFrom.cs</DependentUpon> <DependentUpon>AdjustFrom.cs</DependentUpon>
...@@ -863,6 +867,9 @@ ...@@ -863,6 +867,9 @@
<EmbeddedResource Include="ConfigMethod\injectionport\IPVAL.resx"> <EmbeddedResource Include="ConfigMethod\injectionport\IPVAL.resx">
<DependentUpon>IPVAL.cs</DependentUpon> <DependentUpon>IPVAL.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="ConfigMethod\MethodMain.en.resx">
<DependentUpon>MethodMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ConfigMethod\MethodMain.resx"> <EmbeddedResource Include="ConfigMethod\MethodMain.resx">
<DependentUpon>MethodMain.cs</DependentUpon> <DependentUpon>MethodMain.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
...@@ -890,6 +897,9 @@ ...@@ -890,6 +897,9 @@
<EmbeddedResource Include="ConfigMethod\ValveTab.resx"> <EmbeddedResource Include="ConfigMethod\ValveTab.resx">
<DependentUpon>ValveTab.cs</DependentUpon> <DependentUpon>ValveTab.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="ConnTimeOut.en.resx">
<DependentUpon>ConnTimeOut.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ConnTimeOut.resx"> <EmbeddedResource Include="ConnTimeOut.resx">
<DependentUpon>ConnTimeOut.cs</DependentUpon> <DependentUpon>ConnTimeOut.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
...@@ -911,6 +921,9 @@ ...@@ -911,6 +921,9 @@
<EmbeddedResource Include="CK_UI\CurveDisPlay.resx"> <EmbeddedResource Include="CK_UI\CurveDisPlay.resx">
<DependentUpon>CurveDisPlay.cs</DependentUpon> <DependentUpon>CurveDisPlay.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="DataState.en.resx">
<DependentUpon>DataState.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="DataState.resx"> <EmbeddedResource Include="DataState.resx">
<DependentUpon>DataState.cs</DependentUpon> <DependentUpon>DataState.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
...@@ -947,6 +960,9 @@ ...@@ -947,6 +960,9 @@
<EmbeddedResource Include="GCMain.resx"> <EmbeddedResource Include="GCMain.resx">
<DependentUpon>GCMain.cs</DependentUpon> <DependentUpon>GCMain.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="GCTitle.en.resx">
<DependentUpon>GCTitle.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="GCTitle.resx"> <EmbeddedResource Include="GCTitle.resx">
<DependentUpon>GCTitle.cs</DependentUpon> <DependentUpon>GCTitle.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
...@@ -965,8 +981,12 @@ ...@@ -965,8 +981,12 @@
<EmbeddedResource Include="ConfigDlg\MethodConfig.resx"> <EmbeddedResource Include="ConfigDlg\MethodConfig.resx">
<DependentUpon>MethodConfig.cs</DependentUpon> <DependentUpon>MethodConfig.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="MDIBase.en.resx">
<DependentUpon>MDIBase.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="MDIBase.resx"> <EmbeddedResource Include="MDIBase.resx">
<DependentUpon>MDIBase.cs</DependentUpon> <DependentUpon>MDIBase.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx"> <EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
...@@ -978,6 +998,9 @@ ...@@ -978,6 +998,9 @@
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
</Compile> </Compile>
<EmbeddedResource Include="QuitForm.en.resx">
<DependentUpon>QuitForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="QuitForm.resx"> <EmbeddedResource Include="QuitForm.resx">
<DependentUpon>QuitForm.cs</DependentUpon> <DependentUpon>QuitForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
...@@ -999,6 +1022,9 @@ ...@@ -999,6 +1022,9 @@
<EmbeddedResource Include="ShowConfig.resx"> <EmbeddedResource Include="ShowConfig.resx">
<DependentUpon>ShowConfig.cs</DependentUpon> <DependentUpon>ShowConfig.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="StartForm.en.resx">
<DependentUpon>StartForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="StartForm.resx"> <EmbeddedResource Include="StartForm.resx">
<DependentUpon>StartForm.cs</DependentUpon> <DependentUpon>StartForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
using SpaceM; using SpaceM;
using System; using System;
using System.Globalization;
using System.Threading;
using System.Windows.Forms; using System.Windows.Forms;
namespace GcDevicePc namespace GcDevicePc
...@@ -21,6 +23,7 @@ namespace GcDevicePc ...@@ -21,6 +23,7 @@ namespace GcDevicePc
{ {
if (createNew) if (createNew)
{ {
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("en");
Application.Run(new StartForm()); Application.Run(new StartForm());
mutex.ReleaseMutex(); mutex.ReleaseMutex();
} }
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(QuitForm));
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.allquit = new System.Windows.Forms.Button(); this.allquit = new System.Windows.Forms.Button();
this.onlyquit = new System.Windows.Forms.Button(); this.onlyquit = new System.Windows.Forms.Button();
...@@ -36,57 +37,41 @@ ...@@ -36,57 +37,41 @@
// //
// label1 // label1
// //
this.label1.AutoSize = true; resources.ApplyResources(this.label1, "label1");
this.label1.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(64, 62);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(238, 19);
this.label1.TabIndex = 0;
this.label1.Text = "程序正在使用中,确认退出?";
// //
// allquit // allquit
// //
resources.ApplyResources(this.allquit, "allquit");
this.allquit.DialogResult = System.Windows.Forms.DialogResult.OK; this.allquit.DialogResult = System.Windows.Forms.DialogResult.OK;
this.allquit.Location = new System.Drawing.Point(48, 109); this.allquit.ForeColor = System.Drawing.SystemColors.ControlText;
this.allquit.Name = "allquit"; this.allquit.Name = "allquit";
this.allquit.Size = new System.Drawing.Size(75, 23);
this.allquit.TabIndex = 3;
this.allquit.Text = "停止退出";
this.allquit.UseVisualStyleBackColor = true; this.allquit.UseVisualStyleBackColor = true;
// //
// onlyquit // onlyquit
// //
resources.ApplyResources(this.onlyquit, "onlyquit");
this.onlyquit.DialogResult = System.Windows.Forms.DialogResult.Yes; this.onlyquit.DialogResult = System.Windows.Forms.DialogResult.Yes;
this.onlyquit.Location = new System.Drawing.Point(153, 109);
this.onlyquit.Name = "onlyquit"; this.onlyquit.Name = "onlyquit";
this.onlyquit.Size = new System.Drawing.Size(75, 23);
this.onlyquit.TabIndex = 4;
this.onlyquit.Text = "仅退出";
this.onlyquit.UseVisualStyleBackColor = true; this.onlyquit.UseVisualStyleBackColor = true;
// //
// cancalquit // cancalquit
// //
resources.ApplyResources(this.cancalquit, "cancalquit");
this.cancalquit.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.cancalquit.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancalquit.Location = new System.Drawing.Point(260, 109);
this.cancalquit.Name = "cancalquit"; this.cancalquit.Name = "cancalquit";
this.cancalquit.Size = new System.Drawing.Size(75, 23);
this.cancalquit.TabIndex = 5;
this.cancalquit.Text = "取消";
this.cancalquit.UseVisualStyleBackColor = true; this.cancalquit.UseVisualStyleBackColor = true;
// //
// QuitForm // QuitForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(367, 158);
this.Controls.Add(this.cancalquit); this.Controls.Add(this.cancalquit);
this.Controls.Add(this.onlyquit); this.Controls.Add(this.onlyquit);
this.Controls.Add(this.allquit); this.Controls.Add(this.allquit);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "QuitForm"; this.Name = "QuitForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "消息提示";
this.TopMost = true; this.TopMost = true;
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
......
<?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="label1.Location" type="System.Drawing.Point, System.Drawing">
<value>37, 43</value>
</data>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<value>429, 19</value>
</data>
<data name="label1.Text" xml:space="preserve">
<value>The program is using. Do you want to exit?</value>
</data>
<data name="allquit.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 104</value>
</data>
<data name="allquit.Size" type="System.Drawing.Size, System.Drawing">
<value>150, 31</value>
</data>
<data name="allquit.Text" xml:space="preserve">
<value>Stop Control And Exit</value>
</data>
<data name="onlyquit.Location" type="System.Drawing.Point, System.Drawing">
<value>178, 104</value>
</data>
<data name="onlyquit.Size" type="System.Drawing.Size, System.Drawing">
<value>150, 31</value>
</data>
<data name="onlyquit.Text" xml:space="preserve">
<value>Exit only</value>
</data>
<data name="cancalquit.Location" type="System.Drawing.Point, System.Drawing">
<value>343, 104</value>
</data>
<data name="cancalquit.Size" type="System.Drawing.Size, System.Drawing">
<value>150, 31</value>
</data>
<data name="cancalquit.Text" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>501, 158</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Message</value>
</data>
</root>
\ No newline at end of file
...@@ -117,4 +117,133 @@ ...@@ -117,4 +117,133 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="label1.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="label1.Text" xml:space="preserve">
<value>程序正在使用中,确认退出?</value>
</data>
<data name="allquit.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="&gt;&gt;onlyquit.Name" xml:space="preserve">
<value>onlyquit</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 12</value>
</data>
<data name="allquit.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="cancalquit.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="&gt;&gt;allquit.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="label1.Font" type="System.Drawing.Font, System.Drawing">
<value>宋体, 14pt</value>
</data>
<data name="onlyquit.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="cancalquit.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
<value>64, 62</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>QuitForm</value>
</data>
<data name="allquit.Text" xml:space="preserve">
<value>停止退出</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>367, 158</value>
</data>
<data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterScreen</value>
</data>
<data name="&gt;&gt;label1.Name" xml:space="preserve">
<value>label1</value>
</data>
<data name="&gt;&gt;onlyquit.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="&gt;&gt;onlyquit.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;allquit.Name" xml:space="preserve">
<value>allquit</value>
</data>
<data name="&gt;&gt;cancalquit.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="cancalquit.Location" type="System.Drawing.Point, System.Drawing">
<value>260, 109</value>
</data>
<data name="onlyquit.Location" type="System.Drawing.Point, System.Drawing">
<value>153, 109</value>
</data>
<data name="&gt;&gt;label1.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;cancalquit.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="onlyquit.Text" xml:space="preserve">
<value>仅退出</value>
</data>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<value>238, 19</value>
</data>
<data name="&gt;&gt;allquit.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;allquit.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;cancalquit.Name" xml:space="preserve">
<value>cancalquit</value>
</data>
<data name="&gt;&gt;onlyquit.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="allquit.Location" type="System.Drawing.Point, System.Drawing">
<value>48, 109</value>
</data>
<data name="&gt;&gt;cancalquit.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="onlyquit.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>消息提示</value>
</data>
<data name="cancalquit.Text" xml:space="preserve">
<value>取消</value>
</data>
<data name="&gt;&gt;label1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>en</value>
</metadata>
</root> </root>
\ No newline at end of file
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
private void InitializeComponent() private void InitializeComponent()
{ {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(StartForm)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(StartForm));
this.bgpicture = new System.Windows.Forms.PictureBox();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.offlinebth = new System.Windows.Forms.Button(); this.offlinebth = new System.Windows.Forms.Button();
...@@ -37,55 +36,28 @@ ...@@ -37,55 +36,28 @@
this.BindButton1 = new System.Windows.Forms.Button(); this.BindButton1 = new System.Windows.Forms.Button();
this.HMIMACComboBox1 = new System.Windows.Forms.ComboBox(); this.HMIMACComboBox1 = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label();
this.bgpicture = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.bgpicture)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bgpicture)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// bgpicture
//
this.bgpicture.BackColor = System.Drawing.Color.Black;
this.bgpicture.Image = ((System.Drawing.Image)(resources.GetObject("bgpicture.Image")));
this.bgpicture.ImageLocation = "";
this.bgpicture.InitialImage = null;
this.bgpicture.Location = new System.Drawing.Point(-1, 0);
this.bgpicture.Name = "bgpicture";
this.bgpicture.Size = new System.Drawing.Size(480, 411);
this.bgpicture.TabIndex = 0;
this.bgpicture.TabStop = false;
this.bgpicture.Paint += new System.Windows.Forms.PaintEventHandler(this.bgpicture_Paint);
this.bgpicture.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.bgpicture_MouseDoubleClick);
//
// label1 // label1
// //
this.label1.AutoSize = true; resources.ApplyResources(this.label1, "label1");
this.label1.BackColor = System.Drawing.SystemColors.Control; this.label1.BackColor = System.Drawing.SystemColors.Control;
this.label1.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.ForeColor = System.Drawing.Color.White; this.label1.ForeColor = System.Drawing.Color.White;
this.label1.Location = new System.Drawing.Point(12, 358);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(76, 19);
this.label1.TabIndex = 1;
this.label1.Text = "初始化:";
// //
// label2 // label2
// //
this.label2.AutoSize = true; resources.ApplyResources(this.label2, "label2");
this.label2.BackColor = System.Drawing.SystemColors.Control; this.label2.BackColor = System.Drawing.SystemColors.Control;
this.label2.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.ForeColor = System.Drawing.Color.White; this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(102, 359);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(69, 19);
this.label2.TabIndex = 2;
this.label2.Text = "label2";
// //
// offlinebth // offlinebth
// //
this.offlinebth.Font = new System.Drawing.Font("宋体", 14F); resources.ApplyResources(this.offlinebth, "offlinebth");
this.offlinebth.Location = new System.Drawing.Point(376, 349);
this.offlinebth.Name = "offlinebth"; this.offlinebth.Name = "offlinebth";
this.offlinebth.Size = new System.Drawing.Size(95, 27);
this.offlinebth.TabIndex = 3;
this.offlinebth.Text = "离线模式";
this.offlinebth.UseVisualStyleBackColor = true; this.offlinebth.UseVisualStyleBackColor = true;
this.offlinebth.Click += new System.EventHandler(this.offlinebth_Click); this.offlinebth.Click += new System.EventHandler(this.offlinebth_Click);
// //
...@@ -98,44 +70,39 @@ ...@@ -98,44 +70,39 @@
// //
// BindButton1 // BindButton1
// //
resources.ApplyResources(this.BindButton1, "BindButton1");
this.BindButton1.FlatAppearance.BorderColor = System.Drawing.SystemColors.Control; this.BindButton1.FlatAppearance.BorderColor = System.Drawing.SystemColors.Control;
this.BindButton1.Font = new System.Drawing.Font("宋体", 14F);
this.BindButton1.Location = new System.Drawing.Point(376, 380);
this.BindButton1.Name = "BindButton1"; this.BindButton1.Name = "BindButton1";
this.BindButton1.Size = new System.Drawing.Size(95, 27);
this.BindButton1.TabIndex = 5;
this.BindButton1.Text = "绑定";
this.BindButton1.UseVisualStyleBackColor = true; this.BindButton1.UseVisualStyleBackColor = true;
this.BindButton1.Visible = false;
this.BindButton1.Click += new System.EventHandler(this.BindButton1_Click); this.BindButton1.Click += new System.EventHandler(this.BindButton1_Click);
// //
// HMIMACComboBox1 // HMIMACComboBox1
// //
this.HMIMACComboBox1.Font = new System.Drawing.Font("宋体", 14F); resources.ApplyResources(this.HMIMACComboBox1, "HMIMACComboBox1");
this.HMIMACComboBox1.FormattingEnabled = true; this.HMIMACComboBox1.FormattingEnabled = true;
this.HMIMACComboBox1.Location = new System.Drawing.Point(102, 381);
this.HMIMACComboBox1.Name = "HMIMACComboBox1"; this.HMIMACComboBox1.Name = "HMIMACComboBox1";
this.HMIMACComboBox1.Size = new System.Drawing.Size(193, 27);
this.HMIMACComboBox1.TabIndex = 6;
this.HMIMACComboBox1.Visible = false;
// //
// label3 // label3
// //
resources.ApplyResources(this.label3, "label3");
this.label3.BackColor = System.Drawing.SystemColors.Control; this.label3.BackColor = System.Drawing.SystemColors.Control;
this.label3.Font = new System.Drawing.Font("宋体", 14F);
this.label3.ForeColor = System.Drawing.Color.White; this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(6, 381);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(90, 30); //
this.label3.TabIndex = 7; // bgpicture
this.label3.Visible = false; //
resources.ApplyResources(this.bgpicture, "bgpicture");
this.bgpicture.BackColor = System.Drawing.Color.Black;
this.bgpicture.Name = "bgpicture";
this.bgpicture.TabStop = false;
this.bgpicture.Paint += new System.Windows.Forms.PaintEventHandler(this.bgpicture_Paint);
this.bgpicture.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.bgpicture_MouseDoubleClick);
// //
// StartForm // StartForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Black; this.BackColor = System.Drawing.Color.Black;
this.ClientSize = new System.Drawing.Size(479, 414);
this.Controls.Add(this.label3); this.Controls.Add(this.label3);
this.Controls.Add(this.HMIMACComboBox1); this.Controls.Add(this.HMIMACComboBox1);
this.Controls.Add(this.BindButton1); this.Controls.Add(this.BindButton1);
...@@ -145,10 +112,7 @@ ...@@ -145,10 +112,7 @@
this.Controls.Add(this.bgpicture); this.Controls.Add(this.bgpicture);
this.ForeColor = System.Drawing.SystemColors.ControlText; this.ForeColor = System.Drawing.SystemColors.ControlText;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "StartForm"; this.Name = "StartForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "StartForm";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.StartForm_FormClosed); this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.StartForm_FormClosed);
this.Load += new System.EventHandler(this.StartForm_Load); this.Load += new System.EventHandler(this.StartForm_Load);
((System.ComponentModel.ISupportInitialize)(this.bgpicture)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bgpicture)).EndInit();
......
...@@ -7,12 +7,14 @@ using System.IO; ...@@ -7,12 +7,14 @@ using System.IO;
using System.Collections.Generic; using System.Collections.Generic;
using Ini.Net; using Ini.Net;
using GcDevicePc.ProThread; using GcDevicePc.ProThread;
using System.Globalization;
namespace GcDevicePc namespace GcDevicePc
{ {
public partial class StartForm : Form public partial class StartForm : Form
{ {
#region 窗口效果需要变量 #region 窗口效果需要变量
bool bEnglishLanguage = (Thread.CurrentThread.CurrentUICulture == CultureInfo.GetCultureInfo("en")) ? true:false;
private double _mCurrentOpacity; private double _mCurrentOpacity;
private const double OpacityInterval = 0.02; //0.02 private const double OpacityInterval = 0.02; //0.02
private const double StayTime = 2000; //5s private const double StayTime = 2000; //5s
...@@ -111,7 +113,7 @@ namespace GcDevicePc ...@@ -111,7 +113,7 @@ namespace GcDevicePc
public StartForm() public StartForm()
{ {
InitializeComponent(); InitializeComponent();
_appInitInfo = bEnglishLanguage == false ? "系统初始化开始" : "System Initializing";
Opacity = _mCurrentOpacity; Opacity = _mCurrentOpacity;
_opacityTimer = new System.Timers.Timer(); _opacityTimer = new System.Timers.Timer();
_opacityTimer.Interval = 30; _opacityTimer.Interval = 30;
...@@ -162,10 +164,10 @@ namespace GcDevicePc ...@@ -162,10 +164,10 @@ namespace GcDevicePc
bool ret = false; bool ret = false;
ManualResetEvent ManualResetEvent = new ManualResetEvent(false); ManualResetEvent ManualResetEvent = new ManualResetEvent(false);
//globaldata.m_appinit.InitAppFolderGC(); //globaldata.m_appinit.InitAppFolderGC();
_appInitInfo = "系统初始化开始"; _appInitInfo = bEnglishLanguage == false ? "系统初始化开始" : "System Initializing";
_appInitInfo = "检测本地网络"; _appInitInfo = bEnglishLanguage == false ? "检测本地网络":"Detect local network";
globaldata.m_appinit.LocalNetworkCheck(); globaldata.m_appinit.LocalNetworkCheck();
_appInitInfo = "搜寻设备"; _appInitInfo = bEnglishLanguage == false ? "搜寻设备": "Search For Equipment";
string file = Path.Combine(Path.GetDirectoryName(System.Windows.Forms.Application.StartupPath), "GC_Config\\GC_Set\\启动参数\\startup.ini"); string file = Path.Combine(Path.GetDirectoryName(System.Windows.Forms.Application.StartupPath), "GC_Config\\GC_Set\\启动参数\\startup.ini");
INIOperation test = new INIOperation(file); INIOperation test = new INIOperation(file);
string strSearch = test.INIGetStringValue("NetWorkConfig", "MAC地址", null); string strSearch = test.INIGetStringValue("NetWorkConfig", "MAC地址", null);
...@@ -206,8 +208,8 @@ namespace GcDevicePc ...@@ -206,8 +208,8 @@ namespace GcDevicePc
{ {
if (globaldata.DeviceList.Count >= 1 && bStartSearchOK == true && bShowBindOver == false) if (globaldata.DeviceList.Count >= 1 && bStartSearchOK == true && bShowBindOver == false)
{ {
_appInitInfo = "获取到设备,请选择一个设备进行绑定"; _appInitInfo = bEnglishLanguage == false ? "获取到设备,请选择一个设备进行绑定" : "Get the device, Please select a device to bind";
this.label3.Text = "设备SN号:"; this.label3.Text = bEnglishLanguage == false ? "设备SN号:":"Device SN:";
HMIMACComboBox1.Visible = true; HMIMACComboBox1.Visible = true;
BindButton1.Visible = true; BindButton1.Visible = true;
bShowBindOver = true; bShowBindOver = true;
...@@ -240,15 +242,15 @@ namespace GcDevicePc ...@@ -240,15 +242,15 @@ namespace GcDevicePc
} }
//_opacityTimer.Enabled = true; //_opacityTimer.Enabled = true;
bWaitOver = true; bWaitOver = true;
_appInitInfo = "获取设备信息"; _appInitInfo = bEnglishLanguage == false ? "获取设备信息" : "Get Device";
globaldata.m_appinit.InitDeviceInfo(); globaldata.m_appinit.InitDeviceInfo();
_appInitInfo = "检测本地目录开始"; _appInitInfo = bEnglishLanguage == false ? "检测本地目录开始" : "Start checking the local directory";
globaldata.m_appinit.InitAppFolder(globaldata.DeviceName); globaldata.m_appinit.InitAppFolder(globaldata.DeviceName);
_appInitInfo = "检测本地目录完成"; _appInitInfo = bEnglishLanguage == false ? "检测本地目录完成": "Complete check that the local directory";
_appInitInfo = "开始同步GC配置"; _appInitInfo = bEnglishLanguage == false ? "开始同步GC配置" : "Start Syncing GC Configuration";
ret = globaldata.m_appinit.SyncConfigFiles(); ret = globaldata.m_appinit.SyncConfigFiles();
_appInitInfo = ret ? "同步GC配置完成" : "同步GC配置失败"; _appInitInfo = ret ? (bEnglishLanguage == false ? "同步GC配置完成" : "Synchronous GC configuration completed") : (bEnglishLanguage == false ? "同步GC配置失败": "Synchronization configuration failed");
_appInitInfo = "加载配置完成"; _appInitInfo = bEnglishLanguage == false ? "加载配置完成" : "Loading Configuration";
globaldata.m_appinit.InitAppDefaultConfig(); globaldata.m_appinit.InitAppDefaultConfig();
} }
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Record Time:2020-10-23 09:47:43,388 Thread ID:[1]- Info:System Init Success
Record Time:2020-10-23 09:47:48,254 Thread ID:[7]- Info:Start Get PC Local IP...
Record Time:2020-10-23 09:47:59,953 Thread ID:[7]- Info:Start Search HMI...
Record Time:2020-10-23 09:48:10,465 Thread ID:[7]- Info:Start Search HMI...
Record Time:2020-10-23 10:21:28,708 Thread ID:[1]- Info:System Init Success
Record Time:2020-10-23 10:21:33,165 Thread ID:[6]- Info:Start Get PC Local IP...
Record Time:2020-10-23 10:21:44,099 Thread ID:[6]- Info:Start Search HMI...
Record Time:2020-10-23 10:21:54,605 Thread ID:[6]- Info:Start Search HMI...
Record Time:2020-10-23 13:31:34,983 Thread ID:[7]- Info:Start Get PC Local IP...
Record Time:2020-10-23 13:31:37,750 Thread ID:[1]- Info:System Init Success
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment