Many localisation improvements, ver.2.7.297

This commit is contained in:
Milan Hanajik
2016-05-29 23:17:48 +02:00
parent 1a4d20b6e2
commit 2935bc2c77
53 changed files with 2262 additions and 5094 deletions
+5 -1
View File
@@ -114,7 +114,11 @@
<Compile Include="Mappings\WatermeterMap.cs" /> <Compile Include="Mappings\WatermeterMap.cs" />
<Compile Include="Mappings\WMTypeMap.cs" /> <Compile Include="Mappings\WMTypeMap.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Resources\Strings.Designer.cs" /> <Compile Include="Resources\Strings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.resx</DependentUpon>
</Compile>
<Compile Include="Units.cs" /> <Compile Include="Units.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
+5 -3
View File
@@ -87,8 +87,10 @@ namespace Config
} }
catch (Exception exc) catch (Exception exc)
{ {
MessageBox.Show(string.Format("Cannot open database.\r\nReason:\r\n{0}", exc.Message), MessageBox.Show(string.Format(Strings.Cannot_open_DB_Cause_0, exc.Message),
"Error", MessageBoxButtons.OK, MessageBoxIcon.Error); Strings.Error,
MessageBoxButtons.OK,
MessageBoxIcon.Error);
return null; return null;
} }
} }
@@ -181,7 +183,7 @@ namespace Config
var admin = new Entities.User var admin = new Entities.User
{ {
Name = Data.AdminUsername, Name = Data.AdminUsername,
Description = "Administrator", Description = Strings.Administrator,
LastPwChange = DateTime.Now LastPwChange = DateTime.Now
}; };
admin.SetPassword(Data.AdminPassword); admin.SetPassword(Data.AdminPassword);
+17 -3021
View File
File diff suppressed because it is too large Load Diff
+119 -97
View File
@@ -1,101 +1,123 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema 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.
Version 1.3 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
The primary goals of this format is to allow a simple XML format : using a System.ComponentModel.TypeConverter
that is mostly human readable. The generation and parsing of the : and then encoded with base64 encoding.
various data types are done through the TypeConverter classes -->
associated with the data types. <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" />
Example: <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
... ado.net/XML headers & schema ... <xsd:choice maxOccurs="unbounded">
<resheader name="resmimetype">text/microsoft-resx</resheader> <xsd:element name="metadata">
<resheader name="version">1.3</resheader> <xsd:complexType>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <xsd:sequence>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <xsd:element name="value" type="xsd:string" minOccurs="0" />
<data name="Name1">this is my long string</data> </xsd:sequence>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <xsd:attribute name="name" use="required" type="xsd:string" />
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <xsd:attribute name="type" type="xsd:string" />
[base64 mime encoded serialized .NET Framework object] <xsd:attribute name="mimetype" type="xsd:string" />
</data> <xsd:attribute ref="xml:space" />
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> </xsd:complexType>
[base64 mime encoded string representing a byte array form of the .NET Framework object] </xsd:element>
</data> <xsd:element name="assembly">
<xsd:complexType>
There are any number of "resheader" rows that contain simple <xsd:attribute name="alias" type="xsd:string" />
name/value pairs. <xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
Each data row contains a name, and value. The row also contains a </xsd:element>
type or mimetype. Type corresponds to a .NET class that support <xsd:element name="data">
text/value conversion through the TypeConverter architecture. <xsd:complexType>
Classes that don't support this are serialized and stored with the <xsd:sequence>
mimetype set. <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
The mimetype is used for serialized objects, and tells the </xsd:sequence>
ResXResourceReader how to depersist the object. This is currently not <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
extensible. For a given mimetype the value must be set accordingly: <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
Note - application/x-microsoft.net.object.binary.base64 is the format <xsd:attribute ref="xml:space" />
that the ResXResourceWriter will generate, however the reader can </xsd:complexType>
read any of the formats listed below. </xsd:element>
<xsd:element name="resheader">
mimetype: application/x-microsoft.net.object.binary.base64 <xsd:complexType>
value : The object must be serialized with <xsd:sequence>
: System.Serialization.Formatters.Binary.BinaryFormatter <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
: and then encoded with base64 encoding. </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
mimetype: application/x-microsoft.net.object.soap.base64 </xsd:complexType>
value : The object must be serialized with </xsd:element>
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter </xsd:choice>
: and then encoded with base64 encoding. </xsd:complexType>
</xsd:element>
mimetype: application/x-microsoft.net.object.bytearray.base64 </xsd:schema>
value : The object must be serialized into a byte array <resheader name="resmimetype">
: using a System.ComponentModel.TypeConverter <value>text/microsoft-resx</value>
: and then encoded with base64 encoding. </resheader>
--> <resheader name="version">
<value>2.0</value>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> </resheader>
<xsd:element name="root" msdata:IsDataSet="true"> <resheader name="reader">
<xsd:complexType> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<xsd:choice maxOccurs="unbounded"> </resheader>
<xsd:element name="data"> <resheader name="writer">
<xsd:complexType> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<xsd:sequence> </resheader>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <data name="Error" xml:space="preserve">
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> <value>Chyba</value>
</xsd:sequence> </data>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</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>1.3</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root> </root>
+122 -97
View File
@@ -1,103 +1,122 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema 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.
Version 1.3 mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
The primary goals of this format is to allow a simple XML format : using a System.ComponentModel.TypeConverter
that is mostly human readable. The generation and parsing of the : and then encoded with base64 encoding.
various data types are done through the TypeConverter classes -->
associated with the data types. <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" />
Example: <xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
... ado.net/XML headers & schema ... <xsd:choice maxOccurs="unbounded">
<resheader name="resmimetype">text/microsoft-resx</resheader> <xsd:element name="metadata">
<resheader name="version">1.3</resheader> <xsd:complexType>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <xsd:sequence>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> <xsd:element name="value" type="xsd:string" minOccurs="0" />
<data name="Name1">this is my long string</data> </xsd:sequence>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <xsd:attribute name="name" use="required" type="xsd:string" />
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <xsd:attribute name="type" type="xsd:string" />
[base64 mime encoded serialized .NET Framework object] <xsd:attribute name="mimetype" type="xsd:string" />
</data> <xsd:attribute ref="xml:space" />
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> </xsd:complexType>
[base64 mime encoded string representing a byte array form of the .NET Framework object] </xsd:element>
</data> <xsd:element name="assembly">
<xsd:complexType>
There are any number of "resheader" rows that contain simple <xsd:attribute name="alias" type="xsd:string" />
name/value pairs. <xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
Each data row contains a name, and value. The row also contains a </xsd:element>
type or mimetype. Type corresponds to a .NET class that support <xsd:element name="data">
text/value conversion through the TypeConverter architecture. <xsd:complexType>
Classes that don't support this are serialized and stored with the <xsd:sequence>
mimetype set. <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
The mimetype is used for serialized objects, and tells the </xsd:sequence>
ResXResourceReader how to depersist the object. This is currently not <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
extensible. For a given mimetype the value must be set accordingly: <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
Note - application/x-microsoft.net.object.binary.base64 is the format <xsd:attribute ref="xml:space" />
that the ResXResourceWriter will generate, however the reader can </xsd:complexType>
read any of the formats listed below. </xsd:element>
<xsd:element name="resheader">
mimetype: application/x-microsoft.net.object.binary.base64 <xsd:complexType>
value : The object must be serialized with <xsd:sequence>
: System.Serialization.Formatters.Binary.BinaryFormatter <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
: and then encoded with base64 encoding. </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
mimetype: application/x-microsoft.net.object.soap.base64 </xsd:complexType>
value : The object must be serialized with </xsd:element>
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter </xsd:choice>
: and then encoded with base64 encoding. </xsd:complexType>
</xsd:element>
mimetype: application/x-microsoft.net.object.bytearray.base64 </xsd:schema>
value : The object must be serialized into a byte array <resheader name="resmimetype">
: using a System.ComponentModel.TypeConverter <value>text/microsoft-resx</value>
: and then encoded with base64 encoding. </resheader>
--> <resheader name="version">
<value>2.0</value>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> </resheader>
<xsd:element name="root" msdata:IsDataSet="true"> <resheader name="reader">
<xsd:complexType> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<xsd:choice maxOccurs="unbounded"> </resheader>
<xsd:element name="data"> <resheader name="writer">
<xsd:complexType> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<xsd:sequence> </resheader>
<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" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</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>1.3</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Administrator" xml:space="preserve"> <data name="Administrator" xml:space="preserve">
<value>Administrator</value> <value>Administrator</value>
</data> </data>
@@ -125,4 +144,10 @@
<data name="Passed" xml:space="preserve"> <data name="Passed" xml:space="preserve">
<value>iO</value> <value>iO</value>
</data> </data>
<data name="Error" xml:space="preserve">
<value>Fehler</value>
</data>
<data name="Cannot_open_DB_Cause_0" xml:space="preserve">
<value>Datenbank kann nicht geöffnet.\\r\\nUrsache:\\r\\n{0}</value>
</data>
</root> </root>
+6
View File
@@ -144,4 +144,10 @@
<data name="Passed" xml:space="preserve"> <data name="Passed" xml:space="preserve">
<value>OK</value> <value>OK</value>
</data> </data>
<data name="Cannot_open_DB_Cause_0" xml:space="preserve">
<value>Cannot open database.\\r\\nCause:\\r\\n{0}</value>
</data>
<data name="Error" xml:space="preserve">
<value>Error</value>
</data>
</root> </root>
@@ -186,25 +186,12 @@ namespace TBF.BenchControl.DB.SensusOracle
{ {
this.batch = batch; this.batch = batch;
if (batch.WaterMeters.Count > 0 && !batch.WaterMeters[0].Compound()) string fname = GetLogFileName(batch.StartTime);
{
rsltItems = Results.ItemSpec.FromStrArray(Program.LocalSettings.RsltItems_Disk_SingleWM);
}
else
{
rsltItems = Results.ItemSpec.FromStrArray(Program.LocalSettings.RsltItems_Disk_CombinedWM);
}
string fname = GetFileName(batch.EndTime); try
try { writer = new StreamWriter(System.IO.File.Create(fname)); }
catch
{ {
writer = null; logger = new StreamWriter(System.IO.File.Create(fname));
log.ErrorFormat("Was not able to open results file {0}", fname);
} }
fname = GetLogFileName(batch.StartTime);
try { logger = new StreamWriter(System.IO.File.Create(fname)); }
catch catch
{ {
logger = null; logger = null;
@@ -233,7 +220,6 @@ namespace TBF.BenchControl.DB.SensusOracle
} }
#endif #endif
WriteResultsToDisk(batch);
WriteLogsToDisk(logger, batch); WriteLogsToDisk(logger, batch);
if (anyError) if (anyError)
@@ -252,209 +238,6 @@ namespace TBF.BenchControl.DB.SensusOracle
} }
public Retv WriteResultsToDisk(Results.Entities.Batch batch)
{
if (writer == null) return Retv.Error;
try
{
///----------
/// Header
///----------
writer.WriteLine(batch.ProtocolTitle);
writer.WriteLine(string.Empty);
string[] leftColumn = new string[]
{
"Batch number: ",
"Date and time: ",
"Procedure:",
Strings.User_,
"Ambient temperature: ",
"Ambient pressure: ",
"Ambient humidity: ",
};
string[] rightColumn = new string[]
{
batch.BatchNr.ToString(),
//batch.EndTime.ToShortDateString() + " " + batch.EndTime.ToShortTimeString(),
string.Format("{0:yyyy.MM.dd hh:mm}", batch.EndTime),
batch.ProcedureName,
batch.UserName,
batch.AmbientTempAve().ToString("F1") + " °C",
batch.AmbientPressAve().ToString("F0") + " mbar",
batch.AmbientHumiAve().ToString("F0") + " %",
};
/// Determine max. left column width in characters
int maxLen = 0;
foreach (var s in leftColumn) if (s.Length > maxLen) maxLen = s.Length;
/// Write aligned columns
for (int i = 0; i < Math.Min(leftColumn.Length, rightColumn.Length); i++)
{
writer.Write(leftColumn[i]);
writer.Write(new string(' ', maxLen - leftColumn[i].Length + 3));
writer.WriteLine(rightColumn[i]);
}
writer.WriteLine(string.Empty);
///--------
/// Body
///--------
foreach (var wMtr in batch.WaterMeters) WriteWM(wMtr);
/// Close the file
writer.Close();
writer = null;
}
catch (Exception exc)
{
log.ErrorFormat("Results not saved to disk: {0}", exc.Message);
return Retv.Error;
}
return Retv.OK; /// OK
}
/// <summary>
/// Write one water meter results
/// </summary>
/// <param name="wmNr">Water meter number (0-based)</param>
void WriteWM(Results.Entities.WaterMeter wm)
{
/// Determine column widths
int[] columnWidths = new int[rsltItems.Count];
int totalWidth = 0;
for (int i = 0; i < rsltItems.Count; i++)
{
columnWidths[i] = ElSpaces(rsltItems[i].ClmnHeaderText).Length;
foreach (var mtr in wm.MeterTestRslts)
{
string itemText;
if (!wm.Compound())
{
/// Single water meter
itemText = rsltItems[i].Print(mtr);
}
else if (mtr.CompoundMeterId == (byte)CompoundMeterId.Compound)
{
Results.Entities.MeterTestRslt mainMtr = wm.GetMeterTestRslt(mtr.Name(), CompoundMeterId.CompoundMain);
Results.Entities.MeterTestRslt auxMtr = wm.GetMeterTestRslt(mtr.Name(), CompoundMeterId.CompoundAux);
itemText = rsltItems[i].PrintCombined(mainMtr, auxMtr, mtr);
}
else
{
continue;
}
/// Strip color information
string[] texts = itemText.Split(new char[] { '|' });
if (texts.Length == 2) { itemText = texts[0]; }
int len = ElSpaces(itemText).Length;
if (len > columnWidths[i]) columnWidths[i] = len;
}
totalWidth += columnWidths[i];
}
totalWidth += 3 * (rsltItems.Count - 1);
if (totalWidth < 0) totalWidth = 0;
/// Write water meter number and s/n
writer.Write(string.Format("Water meter {0}", wm.WMPosition));
if (!string.IsNullOrEmpty(wm.SerialNr)) writer.Write(string.Format(" s/n: {0}", wm.SerialNr));
writer.WriteLine(string.Empty);
writer.WriteLine(new String('-', totalWidth)); /// Horizontal line above the header
/// Write column headers
for (int i = 0; i < rsltItems.Count; i++)
{
writer.Write(ElSpaces(rsltItems[i].ClmnHeaderText));
if (i < rsltItems.Count - 1)
{
if (!DBCfg.EliminateSpaces)
{
writer.Write(new string(' ', columnWidths[i] - rsltItems[i].ClmnHeaderText.Length + 3));
}
writer.Write(separatorStr);
}
else
{
writer.WriteLine(string.Empty);
}
}
writer.WriteLine(new String('-', totalWidth)); /// Horizontal line between the header and the body
/// Write table data
foreach (var mtr in wm.MeterTestRslts)
{
if (mtr != null)
{
for (int i = 0; i < rsltItems.Count; i++)
{
string itemText;
///
/// Fetch an item
///
if (!wm.Compound())
{
/// Single water meter
itemText = rsltItems[i].Print(mtr);
}
else if (mtr.CompoundMeterId == (byte)CompoundMeterId.Compound)
{
Results.Entities.MeterTestRslt mainMtr = wm.GetMeterTestRslt(mtr.Name(), CompoundMeterId.CompoundMain);
Results.Entities.MeterTestRslt auxMtr = wm.GetMeterTestRslt(mtr.Name(), CompoundMeterId.CompoundAux);
itemText = rsltItems[i].PrintCombined(mainMtr, auxMtr, mtr);
}
else
{
continue;
}
///
/// Print the item
///
string[] texts = itemText.Split(new char[] { '|' });
if (texts.Length == 2) { itemText = texts[0]; } /// Strip color information
writer.Write(ElSpaces(itemText));
if (i < rsltItems.Count - 1)
{
if (!DBCfg.EliminateSpaces)
{
writer.Write(new string(' ', columnWidths[i] - itemText.Length + 3));
}
writer.Write(separatorStr);
}
else
{
writer.WriteLine(string.Empty);
}
}
}
}
writer.WriteLine(new String('-', totalWidth)); /// Horizontal line below the body
writer.WriteLine(string.Empty);
}
public static Retv WriteLogsToDisk(StreamWriter logger, Results.Entities.Batch batch) public static Retv WriteLogsToDisk(StreamWriter logger, Results.Entities.Batch batch)
{ {
#if IPERLST || IPERLST_SPECIAL #if IPERLST || IPERLST_SPECIAL
@@ -114,7 +114,7 @@ namespace TBF.BenchControl.DataEntry.Combined
void Localize() void Localize()
{ {
Text = Strings.Data; Text = Strings.Data;
orderGroupBox.Text = Strings.Purchase_Order; orderGroupBox.Text = Strings.Purchase_order;
groupBox1.Text = Strings.Water_Meter + " 1"; groupBox1.Text = Strings.Water_Meter + " 1";
groupBox2.Text = Strings.Water_Meter + " 2"; groupBox2.Text = Strings.Water_Meter + " 2";
groupBox3.Text = Strings.Water_Meter + " 3"; groupBox3.Text = Strings.Water_Meter + " 3";
@@ -78,7 +78,7 @@ namespace TBF.BenchControl.DataEntry.Standard
void Localize() void Localize()
{ {
Text = Strings.Data; Text = Strings.Data;
orderGroupBox.Text = Strings.Purchase_Order; orderGroupBox.Text = Strings.Purchase_order;
groupBox1.Text = Strings.Water_Meter + " 1"; groupBox1.Text = Strings.Water_Meter + " 1";
groupBox2.Text = Strings.Water_Meter + " 2"; groupBox2.Text = Strings.Water_Meter + " 2";
groupBox3.Text = Strings.Water_Meter + " 3"; groupBox3.Text = Strings.Water_Meter + " 3";
@@ -124,7 +124,7 @@ namespace TBF.BenchControl.DataEntry.Standard12
void Localize() void Localize()
{ {
Text = Strings.Data; Text = Strings.Data;
orderGroupBox.Text = Strings.Purchase_Order; orderGroupBox.Text = Strings.Purchase_order;
for (int i = 0; i < textBoxesCount; i++) for (int i = 0; i < textBoxesCount; i++)
{ {
labels[i].Text = Strings.Serial_Number + " " + (i + 1).ToString(); labels[i].Text = Strings.Serial_Number + " " + (i + 1).ToString();
@@ -129,7 +129,7 @@ namespace TBF.BenchControl.DataEntry.Standard24
void Localize() void Localize()
{ {
Text = Strings.Data; Text = Strings.Data;
orderGroupBox.Text = Strings.Purchase_Order; orderGroupBox.Text = Strings.Purchase_order;
for (int i = 0; i < textBoxesCount; i++) for (int i = 0; i < textBoxesCount; i++)
{ {
labels[i].Text = Strings.Serial_Number + " " + (i + 1).ToString(); labels[i].Text = Strings.Serial_Number + " " + (i + 1).ToString();
@@ -133,7 +133,7 @@ namespace TBF.BenchControl.DataEntry.Standard48
void Localize() void Localize()
{ {
Text = Strings.Data; Text = Strings.Data;
orderGroupBox.Text = Strings.Purchase_Order; orderGroupBox.Text = Strings.Purchase_order;
for (int i = 0; i < textBoxesCount; i++) for (int i = 0; i < textBoxesCount; i++)
{ {
labels[i].Text = Strings.Serial_Number + " " + (i + 1).ToString(); labels[i].Text = Strings.Serial_Number + " " + (i + 1).ToString();
@@ -51,7 +51,7 @@ namespace TBF.BenchControl.DataEntry.iPerl
private void CycleBeginningForm_Load(object sender, EventArgs e) private void CycleBeginningForm_Load(object sender, EventArgs e)
{ {
Text = Strings.Data; Text = Strings.Data;
orderGroupBox.Text = Strings.Purchase_Order; orderGroupBox.Text = Strings.Purchase_order;
okButton.Text = Strings.OkBtnText; okButton.Text = Strings.OkBtnText;
PrepareOrderCombo(orderComboBox); PrepareOrderCombo(orderComboBox);
} }
@@ -215,25 +215,20 @@ namespace TBF.BenchControl.ResultsPrinters.Zapiska
string[] leftColumn = new string[] string[] leftColumn = new string[]
{ {
Strings.Purchase_order_, Strings.Purchase_order + ": ",
Strings.Date_and_time_, Strings.Date_and_time + ": ",
Strings.Procedure_, Strings.Procedure + ": ",
Strings.Tester_, Strings.Tester + ": ",
Strings.Approval_, Strings.Approval + ": ",
Strings.Ambient_temperature_, Strings.Ambient_temperature + ": ",
Strings.Ambient_pressure_, Strings.Ambient_pressure + ": ",
Strings.Ambient_humidity_, Strings.Ambient_humidity + ": ",
}; };
string[] rightColumn = new string[] string[] rightColumn = new string[]
{ {
allResults[0].PurchaseOrder, allResults[0].PurchaseOrder,
//dateTime.ToShortDateString() + " " + dateTime.ToShortTimeString(), string.Format("{0:yyyy.MM.dd HH:mm}", dateTime),
string.Format("{0}.{1}.{2} {3}:{4}", dateTime.Year.ToString("D4"),
dateTime.Month.ToString("D2"),
dateTime.Day.ToString("D2"),
dateTime.Hour.ToString("D2"),
dateTime.Minute.ToString("D2")),
procedure.Name, procedure.Name,
tester, tester,
string.Empty, string.Empty,
@@ -730,7 +730,7 @@ namespace TBF.BenchControl.Sequences
CloseBeginForm(); CloseBeginForm();
} }
Bridge.OnActivity(this, "Enter protocol data"); Bridge.OnActivity(this, Strings.Enter_protocol_data);
//-------------------------------- //--------------------------------
GenericDevices.IDataEntry dataEntryCmpnt = TbfComponents.FindComponent(StateMachine.Procedure.DataEntry) as GenericDevices.IDataEntry; GenericDevices.IDataEntry dataEntryCmpnt = TbfComponents.FindComponent(StateMachine.Procedure.DataEntry) as GenericDevices.IDataEntry;
@@ -758,7 +758,7 @@ namespace TBF.BenchControl.Sequences
ProcessData.BatchRslts.AddWaterMetersToBatch(); ProcessData.BatchRslts.AddWaterMetersToBatch();
//------------------------------------------------------ //------------------------------------------------------
Bridge.OnActivity(this, "Saving and printing results"); Bridge.OnActivity(this, Strings.Saving_and_printing_results);
State savingAndPrintingRslts = State.Create("MainSeq : Saving and printing results"); State savingAndPrintingRslts = State.Create("MainSeq : Saving and printing results");
string[] writers = StateMachine.Procedure.ResultsWriter.Split(new char[] { '~' }); string[] writers = StateMachine.Procedure.ResultsWriter.Split(new char[] { '~' });
@@ -474,7 +474,7 @@ namespace TBF.BenchControl.Sequences
TbfComponents.FindComponent(StateMachine.Procedure.DataEntry) as GenericDevices.IDataEntry; TbfComponents.FindComponent(StateMachine.Procedure.DataEntry) as GenericDevices.IDataEntry;
if (dataEntryCmpnt is IHasCycleBeginForm) if (dataEntryCmpnt is IHasCycleBeginForm)
{ {
Bridge.OnActivity(this, "Enter the water meter data"); Bridge.OnActivity(this, Strings.Enter_water_meter_data);
State.Create("MainSeq : Enter begin data") State.Create("MainSeq : Enter begin data")
.AddPermanentOperation((dataEntryCmpnt as IHasCycleBeginForm).ShowCycleBeginFormOp()) .AddPermanentOperation((dataEntryCmpnt as IHasCycleBeginForm).ShowCycleBeginFormOp())
.AddOperation(checkUiOp) .AddOperation(checkUiOp)
@@ -224,7 +224,7 @@ namespace TBF.BenchControl.TestMethods.FixedStartAdvanced
TbfComponents.FindComponent(StateMachine.Procedure.DataEntry) as GenericDevices.IHasWMStatesForm; TbfComponents.FindComponent(StateMachine.Procedure.DataEntry) as GenericDevices.IHasWMStatesForm;
if (dataEntryCmpnt != null) if (dataEntryCmpnt != null)
{ {
Bridge.OnActivity(this, "Enter the water meter data"); Bridge.OnActivity(this, Strings.Enter_water_meter_data);
State.Create("FixedStartAdvanced : Enter begin-state") State.Create("FixedStartAdvanced : Enter begin-state")
.AddOperation((dataEntryCmpnt as GenericDevices.IHasWMStatesForm).ShowTestStartFormOp()) .AddOperation((dataEntryCmpnt as GenericDevices.IHasWMStatesForm).ShowTestStartFormOp())
.AddOperation(checkUiOp) .AddOperation(checkUiOp)
@@ -431,7 +431,7 @@ namespace TBF.BenchControl.TestMethods.FixedStartAdvanced
/// ///
if (dataEntryCmpnt != null) if (dataEntryCmpnt != null)
{ {
Bridge.OnActivity(this, "Enter the water meter data"); Bridge.OnActivity(this, Strings.Enter_water_meter_data);
State.Create("FixedStartAdvanced : Enter end-state") State.Create("FixedStartAdvanced : Enter end-state")
.AddOperation(dataEntryCmpnt.ShowTestEndFormOp(volumeCTV, test.ErrLimLo + test.Uncertainty, .AddOperation(dataEntryCmpnt.ShowTestEndFormOp(volumeCTV, test.ErrLimLo + test.Uncertainty,
test.ErrLimHi - test.Uncertainty)) test.ErrLimHi - test.Uncertainty))
@@ -224,7 +224,7 @@ namespace TBF.BenchControl.TestMethods.FixedStartCombinedMeters
TbfComponents.FindComponent(StateMachine.Procedure.DataEntry) as GenericDevices.IHasWMStatesForm; TbfComponents.FindComponent(StateMachine.Procedure.DataEntry) as GenericDevices.IHasWMStatesForm;
if (dataEntryCmpnt != null) if (dataEntryCmpnt != null)
{ {
Bridge.OnActivity(this, "Enter the water meter data"); Bridge.OnActivity(this, Strings.Enter_water_meter_data);
State.Create("FixedStartCombinedMeters : Enter begin-state") State.Create("FixedStartCombinedMeters : Enter begin-state")
.AddOperation((dataEntryCmpnt as GenericDevices.IHasWMStatesForm).ShowTestStartFormOp()) .AddOperation((dataEntryCmpnt as GenericDevices.IHasWMStatesForm).ShowTestStartFormOp())
.AddOperation(checkUiOp) .AddOperation(checkUiOp)
@@ -441,7 +441,7 @@ namespace TBF.BenchControl.TestMethods.FixedStartCombinedMeters
/// ///
if (dataEntryCmpnt != null) if (dataEntryCmpnt != null)
{ {
Bridge.OnActivity(this, "Enter the water meter data"); Bridge.OnActivity(this, Strings.Enter_water_meter_data);
State.Create("FixedStartCombinedMeters : Enter end-state") State.Create("FixedStartCombinedMeters : Enter end-state")
.AddOperation(dataEntryCmpnt.ShowTestEndFormOp(volumeCTV, test.ErrLimLo + test.Uncertainty, .AddOperation(dataEntryCmpnt.ShowTestEndFormOp(volumeCTV, test.ErrLimLo + test.Uncertainty,
test.ErrLimHi - test.Uncertainty)) test.ErrLimHi - test.Uncertainty))
@@ -224,7 +224,7 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection
TbfComponents.FindComponent(StateMachine.Procedure.DataEntry) as GenericDevices.IHasWMStatesForm; TbfComponents.FindComponent(StateMachine.Procedure.DataEntry) as GenericDevices.IHasWMStatesForm;
if (dataEntryCmpnt != null) if (dataEntryCmpnt != null)
{ {
Bridge.OnActivity(this, "Enter the water meter data"); Bridge.OnActivity(this, Strings.Enter_water_meter_data);
State.Create("FixedStartMassCollection : Enter begin-state") State.Create("FixedStartMassCollection : Enter begin-state")
.AddOperation((dataEntryCmpnt as GenericDevices.IHasWMStatesForm).ShowTestStartFormOp()) .AddOperation((dataEntryCmpnt as GenericDevices.IHasWMStatesForm).ShowTestStartFormOp())
.AddOperation(checkUiOp) .AddOperation(checkUiOp)
@@ -430,7 +430,7 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection
/// ///
if (dataEntryCmpnt != null) if (dataEntryCmpnt != null)
{ {
Bridge.OnActivity(this, "Enter the water meter data"); Bridge.OnActivity(this, Strings.Enter_water_meter_data);
State.Create("FixedStartMassCollection : Enter end-state") State.Create("FixedStartMassCollection : Enter end-state")
.AddOperation(dataEntryCmpnt.ShowTestEndFormOp(volumeCTV, test.ErrLimLo + test.Uncertainty, .AddOperation(dataEntryCmpnt.ShowTestEndFormOp(volumeCTV, test.ErrLimLo + test.Uncertainty,
test.ErrLimHi - test.Uncertainty)) test.ErrLimHi - test.Uncertainty))
@@ -12,6 +12,7 @@ using log4net;
using Config.Entities; using Config.Entities;
using TBF.BenchControl; using TBF.BenchControl;
using TBF.BenchControl.Generic; using TBF.BenchControl.Generic;
using TBF.Resources;
namespace TBF.BenchControl.WaterMeters.iPerl namespace TBF.BenchControl.WaterMeters.iPerl
{ {
@@ -596,8 +597,11 @@ namespace TBF.BenchControl.WaterMeters.iPerl
} }
catch (Exception exc) catch (Exception exc)
{ {
MessageBox.Show(string.Format("Chyba pri zapisovani do suboru:\r\n{0}\\{1}\r\n{2}", directory, optoDataLogFileName, exc.Message), MessageBox.Show(Strings.Error_writing_into_file_ + Environment.NewLine +
"Chyba", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); string.Format("{0}\\{1}\r\n{2}", directory, optoDataLogFileName, exc.Message),
Strings.Error,
MessageBoxButtons.OK,
MessageBoxIcon.Exclamation);
} }
} }
+28 -28
View File
@@ -31,34 +31,34 @@ namespace TBF.Forms
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout(); this.SuspendLayout();
// //
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(37, 68); this.label1.Location = new System.Drawing.Point(60, 68);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(306, 24); this.label1.Size = new System.Drawing.Size(305, 24);
this.label1.TabIndex = 0; this.label1.TabIndex = 0;
this.label1.Text = "Closing the Test Bench Framework"; this.label1.Text = "Closing the Test Bench Framework";
// //
// ClosingProgram // ClosingProgram
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.PeachPuff; this.BackColor = System.Drawing.Color.PeachPuff;
this.ClientSize = new System.Drawing.Size(373, 161); this.ClientSize = new System.Drawing.Size(487, 161);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false; this.MinimizeBox = false;
this.Name = "ClosingProgram"; this.Name = "ClosingProgram";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Closing the Test Bench Framework"; this.Text = "Closing the Test Bench Framework";
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
} }
@@ -3,6 +3,7 @@
/// ///
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
using TBF.Resources;
namespace TBF.Forms namespace TBF.Forms
{ {
@@ -14,6 +15,8 @@ namespace TBF.Forms
{ {
InitializeComponent(); InitializeComponent();
label1.Text = Strings.Closing_Test_Bench_Framework;
timer = new Timer(); timer = new Timer();
timer.Interval = 1000; timer.Interval = 1000;
timer.Tick += new EventHandler(timer_Tick); timer.Tick += new EventHandler(timer_Tick);
@@ -19,6 +19,7 @@ namespace TBF.Forms
{ {
Visible = true; Visible = true;
InitializeComponent(); InitializeComponent();
emergencyStopMsgLabel.Text = Strings.Emergency_STOP; emergencyStopMsgLabel.Text = Strings.Emergency_STOP;
emergencyStopMsgLabel.Enabled = true; emergencyStopMsgLabel.Enabled = true;
emergencyStopMsgLabel.Visible = true; emergencyStopMsgLabel.Visible = true;
@@ -26,7 +26,7 @@ namespace TBF.Forms
private void NoDatabaseMsgDlg_Load(object sender, EventArgs e) private void NoDatabaseMsgDlg_Load(object sender, EventArgs e)
{ {
Text = Strings.Error; Text = Strings.Error;
errorMessageLabel.Text = (Message != null) ? Message : Strings.Error; errorMessageLabel.Text = (Message != null) ? Message : Strings.Cannot_connect_to_the_database;
exitButton.Text = Strings.ExitBtnText; exitButton.Text = Strings.ExitBtnText;
retryButton.Text = Strings.RetryDatabaseText; retryButton.Text = Strings.RetryDatabaseText;
configureButton.Text = Strings.ConfigureDatabaseText; configureButton.Text = Strings.ConfigureDatabaseText;
+111 -111
View File
@@ -28,117 +28,117 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.sendButton = new System.Windows.Forms.Button(); this.sendButton = new System.Windows.Forms.Button();
this.sentCheckBox = new System.Windows.Forms.CheckBox(); this.sentCheckBox = new System.Windows.Forms.CheckBox();
this.failedCountLabel = new System.Windows.Forms.Label(); this.failedCountLabel = new System.Windows.Forms.Label();
this.passedCountLabel = new System.Windows.Forms.Label(); this.passedCountLabel = new System.Windows.Forms.Label();
this.purchaseOrderLabel = new System.Windows.Forms.Label(); this.purchaseOrderLabel = new System.Windows.Forms.Label();
this.procedureLabel = new System.Windows.Forms.Label(); this.procedureLabel = new System.Windows.Forms.Label();
this.endTimeLabel = new System.Windows.Forms.Label(); this.endTimeLabel = new System.Windows.Forms.Label();
this.startTimeLabel = new System.Windows.Forms.Label(); this.startTimeLabel = new System.Windows.Forms.Label();
this.batchNrLabel = new System.Windows.Forms.Label(); this.batchNrLabel = new System.Windows.Forms.Label();
this.SuspendLayout(); this.SuspendLayout();
// //
// sendButton // sendButton
// //
this.sendButton.Location = new System.Drawing.Point(832, 2); this.sendButton.Location = new System.Drawing.Point(832, 2);
this.sendButton.Name = "sendButton"; this.sendButton.Name = "sendButton";
this.sendButton.Size = new System.Drawing.Size(75, 23); this.sendButton.Size = new System.Drawing.Size(75, 23);
this.sendButton.TabIndex = 15; this.sendButton.TabIndex = 15;
this.sendButton.Text = "Znova"; this.sendButton.Text = "Again";
this.sendButton.UseVisualStyleBackColor = true; this.sendButton.UseVisualStyleBackColor = true;
this.sendButton.Click += new System.EventHandler(this.sendButton_Click); this.sendButton.Click += new System.EventHandler(this.sendButton_Click);
// //
// sentCheckBox // sentCheckBox
// //
this.sentCheckBox.AutoSize = true; this.sentCheckBox.AutoSize = true;
this.sentCheckBox.Location = new System.Drawing.Point(748, 6); this.sentCheckBox.Location = new System.Drawing.Point(748, 6);
this.sentCheckBox.Name = "sentCheckBox"; this.sentCheckBox.Name = "sentCheckBox";
this.sentCheckBox.Size = new System.Drawing.Size(46, 17); this.sentCheckBox.Size = new System.Drawing.Size(48, 17);
this.sentCheckBox.TabIndex = 14; this.sentCheckBox.TabIndex = 14;
this.sentCheckBox.Text = "sent"; this.sentCheckBox.Text = "Sent";
this.sentCheckBox.UseVisualStyleBackColor = true; this.sentCheckBox.UseVisualStyleBackColor = true;
// //
// failedCountLabel // failedCountLabel
// //
this.failedCountLabel.AutoSize = true; this.failedCountLabel.AutoSize = true;
this.failedCountLabel.Location = new System.Drawing.Point(681, 7); this.failedCountLabel.Location = new System.Drawing.Point(681, 7);
this.failedCountLabel.Name = "failedCountLabel"; this.failedCountLabel.Name = "failedCountLabel";
this.failedCountLabel.Size = new System.Drawing.Size(48, 13); this.failedCountLabel.Size = new System.Drawing.Size(48, 13);
this.failedCountLabel.TabIndex = 13; this.failedCountLabel.TabIndex = 13;
this.failedCountLabel.Text = "failedCnt"; this.failedCountLabel.Text = "failedCnt";
// //
// passedCountLabel // passedCountLabel
// //
this.passedCountLabel.AutoSize = true; this.passedCountLabel.AutoSize = true;
this.passedCountLabel.Location = new System.Drawing.Point(590, 7); this.passedCountLabel.Location = new System.Drawing.Point(590, 7);
this.passedCountLabel.Name = "passedCountLabel"; this.passedCountLabel.Name = "passedCountLabel";
this.passedCountLabel.Size = new System.Drawing.Size(57, 13); this.passedCountLabel.Size = new System.Drawing.Size(57, 13);
this.passedCountLabel.TabIndex = 12; this.passedCountLabel.TabIndex = 12;
this.passedCountLabel.Text = "passedCnt"; this.passedCountLabel.Text = "passedCnt";
// //
// purchaseOrderLabel // purchaseOrderLabel
// //
this.purchaseOrderLabel.AutoSize = true; this.purchaseOrderLabel.AutoSize = true;
this.purchaseOrderLabel.Location = new System.Drawing.Point(490, 7); this.purchaseOrderLabel.Location = new System.Drawing.Point(490, 7);
this.purchaseOrderLabel.Name = "purchaseOrderLabel"; this.purchaseOrderLabel.Name = "purchaseOrderLabel";
this.purchaseOrderLabel.Size = new System.Drawing.Size(77, 13); this.purchaseOrderLabel.Size = new System.Drawing.Size(77, 13);
this.purchaseOrderLabel.TabIndex = 11; this.purchaseOrderLabel.TabIndex = 11;
this.purchaseOrderLabel.Text = "purchaseOrder"; this.purchaseOrderLabel.Text = "purchaseOrder";
// //
// procedureLabel // procedureLabel
// //
this.procedureLabel.AutoSize = true; this.procedureLabel.AutoSize = true;
this.procedureLabel.Location = new System.Drawing.Point(334, 7); this.procedureLabel.Location = new System.Drawing.Point(334, 7);
this.procedureLabel.Name = "procedureLabel"; this.procedureLabel.Name = "procedureLabel";
this.procedureLabel.Size = new System.Drawing.Size(55, 13); this.procedureLabel.Size = new System.Drawing.Size(55, 13);
this.procedureLabel.TabIndex = 10; this.procedureLabel.TabIndex = 10;
this.procedureLabel.Text = "procedure"; this.procedureLabel.Text = "procedure";
// //
// endTimeLabel // endTimeLabel
// //
this.endTimeLabel.AutoSize = true; this.endTimeLabel.AutoSize = true;
this.endTimeLabel.Location = new System.Drawing.Point(188, 7); this.endTimeLabel.Location = new System.Drawing.Point(188, 7);
this.endTimeLabel.Name = "endTimeLabel"; this.endTimeLabel.Name = "endTimeLabel";
this.endTimeLabel.Size = new System.Drawing.Size(48, 13); this.endTimeLabel.Size = new System.Drawing.Size(48, 13);
this.endTimeLabel.TabIndex = 9; this.endTimeLabel.TabIndex = 9;
this.endTimeLabel.Text = "endTime"; this.endTimeLabel.Text = "endTime";
// //
// startTimeLabel // startTimeLabel
// //
this.startTimeLabel.AutoSize = true; this.startTimeLabel.AutoSize = true;
this.startTimeLabel.Location = new System.Drawing.Point(54, 7); this.startTimeLabel.Location = new System.Drawing.Point(54, 7);
this.startTimeLabel.Name = "startTimeLabel"; this.startTimeLabel.Name = "startTimeLabel";
this.startTimeLabel.Size = new System.Drawing.Size(50, 13); this.startTimeLabel.Size = new System.Drawing.Size(50, 13);
this.startTimeLabel.TabIndex = 8; this.startTimeLabel.TabIndex = 8;
this.startTimeLabel.Text = "startTime"; this.startTimeLabel.Text = "startTime";
// //
// batchNrLabel // batchNrLabel
// //
this.batchNrLabel.AutoSize = true; this.batchNrLabel.AutoSize = true;
this.batchNrLabel.Location = new System.Drawing.Point(3, 7); this.batchNrLabel.Location = new System.Drawing.Point(3, 7);
this.batchNrLabel.Name = "batchNrLabel"; this.batchNrLabel.Name = "batchNrLabel";
this.batchNrLabel.Size = new System.Drawing.Size(24, 13); this.batchNrLabel.Size = new System.Drawing.Size(24, 13);
this.batchNrLabel.TabIndex = 16; this.batchNrLabel.TabIndex = 16;
this.batchNrLabel.Text = "bNr"; this.batchNrLabel.Text = "bNr";
// //
// PreviousResultCtrl // PreviousResultCtrl
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.batchNrLabel); this.Controls.Add(this.batchNrLabel);
this.Controls.Add(this.sendButton); this.Controls.Add(this.sendButton);
this.Controls.Add(this.sentCheckBox); this.Controls.Add(this.sentCheckBox);
this.Controls.Add(this.failedCountLabel); this.Controls.Add(this.failedCountLabel);
this.Controls.Add(this.passedCountLabel); this.Controls.Add(this.passedCountLabel);
this.Controls.Add(this.purchaseOrderLabel); this.Controls.Add(this.purchaseOrderLabel);
this.Controls.Add(this.procedureLabel); this.Controls.Add(this.procedureLabel);
this.Controls.Add(this.endTimeLabel); this.Controls.Add(this.endTimeLabel);
this.Controls.Add(this.startTimeLabel); this.Controls.Add(this.startTimeLabel);
this.Name = "PreviousResultCtrl"; this.Name = "PreviousResultCtrl";
this.Size = new System.Drawing.Size(925, 26); this.Size = new System.Drawing.Size(925, 26);
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
} }
@@ -6,6 +6,7 @@ using System.Data;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
using TBF.Resources;
namespace TBF.Forms namespace TBF.Forms
{ {
@@ -47,10 +48,11 @@ namespace TBF.Forms
purchaseOrderLabel.Text = string.Format("Obj.: {0}", PurchaseOrder); purchaseOrderLabel.Text = string.Format("Obj.: {0}", PurchaseOrder);
passedCountLabel.Text = string.Format("Dobrých: {0}", PassedCount); passedCountLabel.Text = string.Format("Dobrých: {0}", PassedCount);
failedCountLabel.Text = string.Format("Zlých: {0}", FailedCount); failedCountLabel.Text = string.Format("Zlých: {0}", FailedCount);
sentCheckBox.Text = "Odoslané";
sentCheckBox.Text = Strings.Sent;
sentCheckBox.Checked = Sent; sentCheckBox.Checked = Sent;
sendButton.Enabled = !Sent; sendButton.Enabled = !Sent;
sendButton.Text = "Znova"; sendButton.Text = Strings.Again;
} }
public void UpdateSentState(bool sent) public void UpdateSentState(bool sent)
@@ -12,6 +12,7 @@ using log4net;
using Oracle.DataAccess.Client; // ODP.NET Oracle managed provider using Oracle.DataAccess.Client; // ODP.NET Oracle managed provider
using Oracle.DataAccess.Types; using Oracle.DataAccess.Types;
using TBF.BenchControl.DB.SensusOracle; using TBF.BenchControl.DB.SensusOracle;
using TBF.Resources;
namespace TBF.Forms namespace TBF.Forms
{ {
@@ -55,7 +56,7 @@ namespace TBF.Forms
void Localize() void Localize()
{ {
Text = "Predošlé výsledky"; Text = Strings.Previous_results;
closeButton.Text = TBF.Resources.Strings.CloseBtnText; closeButton.Text = TBF.Resources.Strings.CloseBtnText;
} }
@@ -104,7 +105,7 @@ namespace TBF.Forms
else else
{ {
MessageBox.Show("Nepodarilo sa uložiť, pozrite log-súbor", MessageBox.Show("Nepodarilo sa uložiť, pozrite log-súbor",
"Chyba", Strings.Error,
MessageBoxButtons.OK, MessageBoxButtons.OK,
MessageBoxIcon.Error); MessageBoxIcon.Error);
} }
@@ -9,6 +9,7 @@ using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Windows.Forms; using System.Windows.Forms;
using TBF.Resources;
namespace TBF.Forms namespace TBF.Forms
{ {
@@ -26,6 +27,8 @@ namespace TBF.Forms
private void PrintOrderForm_Load(object sender, EventArgs e) private void PrintOrderForm_Load(object sender, EventArgs e)
{ {
Localize();
TBF.LocalSettings ls = Program.LocalSettings; TBF.LocalSettings ls = Program.LocalSettings;
Left = (ls.PrintOrderLeft != 0) ? ls.PrintOrderLeft : 200; Left = (ls.PrintOrderLeft != 0) ? ls.PrintOrderLeft : 200;
Top = (ls.PrintOrderTop != 0) ? ls.PrintOrderTop : 100; Top = (ls.PrintOrderTop != 0) ? ls.PrintOrderTop : 100;
@@ -37,6 +40,17 @@ namespace TBF.Forms
PrepareTesterCombo(testerComboBox); PrepareTesterCombo(testerComboBox);
} }
void Localize()
{
Text = Strings.Print_watermeter_results;
purchaseOrderGroupBox.Text = Strings.Purchase_order;
testerGroupBox.Text = Strings.Tester;
onlyGoodCheckBox.Text = Strings.Print_only_good_results;
onlyLastCheckBox.Text = Strings.Print_only_the_last_measurement;
printButton.Text = Strings.PrintBtnText;
cancelButton.Text = Strings.CancelBtnText;
}
/// <summary> /// <summary>
/// Load Purchase order combo box items from the LocalSettings PurchaseOrderHistory array /// Load Purchase order combo box items from the LocalSettings PurchaseOrderHistory array
/// </summary> /// </summary>
+24 -39
View File
@@ -35,6 +35,8 @@ namespace TBF.Forms
this.testsColumnsRadioButton = new System.Windows.Forms.RadioButton(); this.testsColumnsRadioButton = new System.Windows.Forms.RadioButton();
this.testsArangementGroupBox = new System.Windows.Forms.GroupBox(); this.testsArangementGroupBox = new System.Windows.Forms.GroupBox();
this.metersArangementGroupBox = new System.Windows.Forms.GroupBox(); this.metersArangementGroupBox = new System.Windows.Forms.GroupBox();
this.nrMetersTextBox = new System.Windows.Forms.TextBox();
this.nrMetersLabel = new System.Windows.Forms.Label();
this.verticallyRadioButton = new System.Windows.Forms.RadioButton(); this.verticallyRadioButton = new System.Windows.Forms.RadioButton();
this.horizontallyRadioButton = new System.Windows.Forms.RadioButton(); this.horizontallyRadioButton = new System.Windows.Forms.RadioButton();
this.okButton = new System.Windows.Forms.Button(); this.okButton = new System.Windows.Forms.Button();
@@ -53,9 +55,6 @@ namespace TBF.Forms
this.printerRadioButton = new System.Windows.Forms.RadioButton(); this.printerRadioButton = new System.Windows.Forms.RadioButton();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox(); this.groupBox2 = new System.Windows.Forms.GroupBox();
this.diskRadioButton = new System.Windows.Forms.RadioButton();
this.nrMetersLabel = new System.Windows.Forms.Label();
this.nrMetersTextBox = new System.Windows.Forms.TextBox();
this.testsArangementGroupBox.SuspendLayout(); this.testsArangementGroupBox.SuspendLayout();
this.metersArangementGroupBox.SuspendLayout(); this.metersArangementGroupBox.SuspendLayout();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
@@ -110,6 +109,22 @@ namespace TBF.Forms
this.metersArangementGroupBox.TabStop = false; this.metersArangementGroupBox.TabStop = false;
this.metersArangementGroupBox.Text = "Arangement of tested meters"; this.metersArangementGroupBox.Text = "Arangement of tested meters";
// //
// nrMetersTextBox
//
this.nrMetersTextBox.Location = new System.Drawing.Point(169, 40);
this.nrMetersTextBox.Name = "nrMetersTextBox";
this.nrMetersTextBox.Size = new System.Drawing.Size(41, 20);
this.nrMetersTextBox.TabIndex = 5;
//
// nrMetersLabel
//
this.nrMetersLabel.AutoSize = true;
this.nrMetersLabel.Location = new System.Drawing.Point(138, 23);
this.nrMetersLabel.Name = "nrMetersLabel";
this.nrMetersLabel.Size = new System.Drawing.Size(108, 13);
this.nrMetersLabel.TabIndex = 4;
this.nrMetersLabel.Text = "Nr. meters in a group:";
//
// verticallyRadioButton // verticallyRadioButton
// //
this.verticallyRadioButton.AutoSize = true; this.verticallyRadioButton.AutoSize = true;
@@ -244,7 +259,7 @@ namespace TBF.Forms
this.singleRadioButton.Appearance = System.Windows.Forms.Appearance.Button; this.singleRadioButton.Appearance = System.Windows.Forms.Appearance.Button;
this.singleRadioButton.AutoSize = true; this.singleRadioButton.AutoSize = true;
this.singleRadioButton.Checked = true; this.singleRadioButton.Checked = true;
this.singleRadioButton.Location = new System.Drawing.Point(19, 24); this.singleRadioButton.Location = new System.Drawing.Point(18, 24);
this.singleRadioButton.Name = "singleRadioButton"; this.singleRadioButton.Name = "singleRadioButton";
this.singleRadioButton.Size = new System.Drawing.Size(46, 23); this.singleRadioButton.Size = new System.Drawing.Size(46, 23);
this.singleRadioButton.TabIndex = 48; this.singleRadioButton.TabIndex = 48;
@@ -257,7 +272,7 @@ namespace TBF.Forms
// //
this.combinedRadioButton.Appearance = System.Windows.Forms.Appearance.Button; this.combinedRadioButton.Appearance = System.Windows.Forms.Appearance.Button;
this.combinedRadioButton.AutoSize = true; this.combinedRadioButton.AutoSize = true;
this.combinedRadioButton.Location = new System.Drawing.Point(71, 24); this.combinedRadioButton.Location = new System.Drawing.Point(94, 24);
this.combinedRadioButton.Name = "combinedRadioButton"; this.combinedRadioButton.Name = "combinedRadioButton";
this.combinedRadioButton.Size = new System.Drawing.Size(64, 23); this.combinedRadioButton.Size = new System.Drawing.Size(64, 23);
this.combinedRadioButton.TabIndex = 49; this.combinedRadioButton.TabIndex = 49;
@@ -283,7 +298,7 @@ namespace TBF.Forms
// //
this.printerRadioButton.Appearance = System.Windows.Forms.Appearance.Button; this.printerRadioButton.Appearance = System.Windows.Forms.Appearance.Button;
this.printerRadioButton.AutoSize = true; this.printerRadioButton.AutoSize = true;
this.printerRadioButton.Location = new System.Drawing.Point(75, 24); this.printerRadioButton.Location = new System.Drawing.Point(94, 24);
this.printerRadioButton.Name = "printerRadioButton"; this.printerRadioButton.Name = "printerRadioButton";
this.printerRadioButton.Size = new System.Drawing.Size(47, 23); this.printerRadioButton.Size = new System.Drawing.Size(47, 23);
this.printerRadioButton.TabIndex = 51; this.printerRadioButton.TabIndex = 51;
@@ -297,51 +312,22 @@ namespace TBF.Forms
this.groupBox1.Controls.Add(this.singleRadioButton); this.groupBox1.Controls.Add(this.singleRadioButton);
this.groupBox1.Location = new System.Drawing.Point(17, 176); this.groupBox1.Location = new System.Drawing.Point(17, 176);
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(153, 60); this.groupBox1.Size = new System.Drawing.Size(181, 60);
this.groupBox1.TabIndex = 52; this.groupBox1.TabIndex = 52;
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
this.groupBox1.Text = "Water Meter"; this.groupBox1.Text = "Water Meter";
// //
// groupBox2 // groupBox2
// //
this.groupBox2.Controls.Add(this.diskRadioButton);
this.groupBox2.Controls.Add(this.printerRadioButton); this.groupBox2.Controls.Add(this.printerRadioButton);
this.groupBox2.Controls.Add(this.screenRadioButton); this.groupBox2.Controls.Add(this.screenRadioButton);
this.groupBox2.Location = new System.Drawing.Point(176, 176); this.groupBox2.Location = new System.Drawing.Point(204, 176);
this.groupBox2.Name = "groupBox2"; this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(210, 60); this.groupBox2.Size = new System.Drawing.Size(182, 60);
this.groupBox2.TabIndex = 0; this.groupBox2.TabIndex = 0;
this.groupBox2.TabStop = false; this.groupBox2.TabStop = false;
this.groupBox2.Text = "Device"; this.groupBox2.Text = "Device";
// //
// diskRadioButton
//
this.diskRadioButton.Appearance = System.Windows.Forms.Appearance.Button;
this.diskRadioButton.AutoSize = true;
this.diskRadioButton.Location = new System.Drawing.Point(128, 24);
this.diskRadioButton.Name = "diskRadioButton";
this.diskRadioButton.Size = new System.Drawing.Size(64, 23);
this.diskRadioButton.TabIndex = 52;
this.diskRadioButton.Text = "Hard Disk";
this.diskRadioButton.UseVisualStyleBackColor = true;
this.diskRadioButton.CheckedChanged += new System.EventHandler(this.diskRadioButton_CheckedChanged);
//
// nrMetersLabel
//
this.nrMetersLabel.AutoSize = true;
this.nrMetersLabel.Location = new System.Drawing.Point(138, 23);
this.nrMetersLabel.Name = "nrMetersLabel";
this.nrMetersLabel.Size = new System.Drawing.Size(108, 13);
this.nrMetersLabel.TabIndex = 4;
this.nrMetersLabel.Text = "Nr. meters in a group:";
//
// nrMetersTextBox
//
this.nrMetersTextBox.Location = new System.Drawing.Point(169, 40);
this.nrMetersTextBox.Name = "nrMetersTextBox";
this.nrMetersTextBox.Size = new System.Drawing.Size(41, 20);
this.nrMetersTextBox.TabIndex = 5;
//
// ResultsConfig // ResultsConfig
// //
this.AcceptButton = this.okButton; this.AcceptButton = this.okButton;
@@ -404,7 +390,6 @@ namespace TBF.Forms
private System.Windows.Forms.RadioButton printerRadioButton; private System.Windows.Forms.RadioButton printerRadioButton;
private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.RadioButton diskRadioButton;
private System.Windows.Forms.TextBox nrMetersTextBox; private System.Windows.Forms.TextBox nrMetersTextBox;
private System.Windows.Forms.Label nrMetersLabel; private System.Windows.Forms.Label nrMetersLabel;
} }
+2 -13
View File
@@ -30,8 +30,6 @@ namespace TBF.Forms
public IList<Results.ItemSpec> RsltItems_Screen_CombinedWM; public IList<Results.ItemSpec> RsltItems_Screen_CombinedWM;
public IList<Results.ItemSpec> RsltItems_Printer_SingleWM; public IList<Results.ItemSpec> RsltItems_Printer_SingleWM;
public IList<Results.ItemSpec> RsltItems_Printer_CombinedWM; public IList<Results.ItemSpec> RsltItems_Printer_CombinedWM;
public IList<Results.ItemSpec> RsltItems_Disk_SingleWM;
public IList<Results.ItemSpec> RsltItems_Disk_CombinedWM;
bool combined; /// false = single meter items, true = combined meter items bool combined; /// false = single meter items, true = combined meter items
Device device; /// Screen, Printer or Disk Device device; /// Screen, Printer or Disk
@@ -104,7 +102,6 @@ namespace TBF.Forms
default: default:
case Device.Screen: return RsltItems_Screen_CombinedWM; case Device.Screen: return RsltItems_Screen_CombinedWM;
case Device.Printer: return RsltItems_Printer_CombinedWM; case Device.Printer: return RsltItems_Printer_CombinedWM;
case Device.Disk: return RsltItems_Disk_CombinedWM;
} }
} }
else else
@@ -114,7 +111,6 @@ namespace TBF.Forms
default: default:
case Device.Screen: return RsltItems_Screen_SingleWM; case Device.Screen: return RsltItems_Screen_SingleWM;
case Device.Printer: return RsltItems_Printer_SingleWM; case Device.Printer: return RsltItems_Printer_SingleWM;
case Device.Disk: return RsltItems_Disk_SingleWM;
} }
} }
} }
@@ -131,7 +127,7 @@ namespace TBF.Forms
if (!GetSelectedItems().Contains(item) && (combined ? item.CanPrintCombined : item.CanPrintSingle)) if (!GetSelectedItems().Contains(item) && (combined ? item.CanPrintCombined : item.CanPrintSingle))
{ {
currentlyAvailableItems.Add(item); currentlyAvailableItems.Add(item);
availableResultsListBox.Items.Add(item.Name); availableResultsListBox.Items.Add(item.ClmnHeaderText);
} }
} }
} }
@@ -144,7 +140,7 @@ namespace TBF.Forms
selectedResultsListBox.Items.Clear(); selectedResultsListBox.Items.Clear();
foreach (var item in GetSelectedItems()) foreach (var item in GetSelectedItems())
{ {
selectedResultsListBox.Items.Add(item.Name); selectedResultsListBox.Items.Add(item.ClmnHeaderText);
} }
} }
@@ -283,12 +279,5 @@ namespace TBF.Forms
RedrawAvailable(); RedrawAvailable();
RedrawSelected(); RedrawSelected();
} }
private void diskRadioButton_CheckedChanged(object sender, EventArgs e)
{
if (diskRadioButton.Checked) device = Device.Disk;
RedrawAvailable();
RedrawSelected();
}
} }
} }
+7 -1
View File
@@ -16,13 +16,19 @@ namespace TBF.Forms
public TabNameDlg() public TabNameDlg()
{ {
InitializeComponent(); InitializeComponent();
TabNameLabel = string.Empty;
TabName = string.Empty;
IsVirtualBenchSeq = false;
} }
private void TabNameDlg_Load(object sender, EventArgs e) private void TabNameDlg_Load(object sender, EventArgs e)
{ {
Text = TabNameLabel; Text = TabNameLabel;
tabNameTextBox.Text = TabName; tabNameTextBox.Text = TabName;
IsVirtualBenchSeq = false;
radioButton1.Text = Strings.Transition_sequence;
radioButton2.Text = Strings.Virtual_bench_sequence;
okButton.Text = Strings.OkBtnText; okButton.Text = Strings.OkBtnText;
} }
-2
View File
@@ -177,8 +177,6 @@ namespace TBF
public string[] RsltItems_Screen_CombinedWM; public string[] RsltItems_Screen_CombinedWM;
public string[] RsltItems_Printer_SingleWM; public string[] RsltItems_Printer_SingleWM;
public string[] RsltItems_Printer_CombinedWM; public string[] RsltItems_Printer_CombinedWM;
public string[] RsltItems_Disk_SingleWM;
public string[] RsltItems_Disk_CombinedWM;
[XmlArrayAttribute("RsltsClmnWidths")] [XmlArrayAttribute("RsltsClmnWidths")]
public int[] RsltsClmnWidths; public int[] RsltsClmnWidths;
+11 -7
View File
@@ -157,8 +157,10 @@ namespace TBF
#if !MUNICH #if !MUNICH
if (message != null) if (message != null)
{ {
MessageBox.Show("The following components are in simulation mode: \r\n" + message, MessageBox.Show(Strings.The_following_components_are_in_simulation_mode_ + Environment.NewLine + message,
"Warning", MessageBoxButtons.OK, MessageBoxIcon.Information); Strings.Warning,
MessageBoxButtons.OK,
MessageBoxIcon.Information);
} }
#endif #endif
@@ -454,8 +456,10 @@ namespace TBF
emergencyStopModelessDlg.Visible = false; emergencyStopModelessDlg.Visible = false;
} }
if (DialogResult.Yes == MessageBox.Show("Do you want to exit the Test Bench Framework?", "Closing the program", if (DialogResult.Yes == MessageBox.Show(Strings.Do_you_want_to_exit_TBF,
MessageBoxButtons.YesNo, MessageBoxIcon.Question)) Strings.Closing_the_program,
MessageBoxButtons.YesNo,
MessageBoxIcon.Question))
{ {
BenchControl.StateMachine.Stop(); BenchControl.StateMachine.Stop();
UiBridge.Bridge.OnEmergencyStopChanged(this, UiBridge.EmergencyStopEventArgs.State.CloseForm); UiBridge.Bridge.OnEmergencyStopChanged(this, UiBridge.EmergencyStopEventArgs.State.CloseForm);
@@ -490,7 +494,7 @@ namespace TBF
if (testResults.Count == 0) if (testResults.Count == 0)
{ {
MessageBox.Show("No results to print", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); MessageBox.Show(Strings.No_results_to_print, Strings.Error, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return; return;
} }
@@ -545,7 +549,7 @@ namespace TBF
if (procedure.Count != 1) if (procedure.Count != 1)
{ {
MessageBox.Show("No results to print", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); MessageBox.Show(Strings.No_results_to_print, Strings.Error, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return; return;
} }
@@ -562,7 +566,7 @@ namespace TBF
} }
else else
{ {
MessageBox.Show("No results to print", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); MessageBox.Show(Strings.No_results_to_print, Strings.Error, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return; return;
} }
} }
+20 -29
View File
@@ -130,21 +130,9 @@
<data name="processTabPage.Size" type="System.Drawing.Size, System.Drawing"> <data name="processTabPage.Size" type="System.Drawing.Size, System.Drawing">
<value>1012, 533</value> <value>1012, 533</value>
</data> </data>
<data name="MeasurementTabPageCtrl.Size" type="System.Drawing.Size, System.Drawing">
<value>1012, 533</value>
</data>
<data name="measurementTabPage.Size" type="System.Drawing.Size, System.Drawing">
<value>1012, 533</value>
</data>
<data name="insertTabPage.Size" type="System.Drawing.Size, System.Drawing"> <data name="insertTabPage.Size" type="System.Drawing.Size, System.Drawing">
<value>1012, 533</value> <value>1012, 533</value>
</data> </data>
<data name="picturesTabPageCtrl1.Size" type="System.Drawing.Size, System.Drawing">
<value>1012, 533</value>
</data>
<data name="picturesTabPage.Size" type="System.Drawing.Size, System.Drawing">
<value>1012, 533</value>
</data>
<data name="resultsTabPageCtrl.Size" type="System.Drawing.Size, System.Drawing"> <data name="resultsTabPageCtrl.Size" type="System.Drawing.Size, System.Drawing">
<value>1012, 533</value> <value>1012, 533</value>
</data> </data>
@@ -157,6 +145,12 @@
<data name="logsTabPage.Size" type="System.Drawing.Size, System.Drawing"> <data name="logsTabPage.Size" type="System.Drawing.Size, System.Drawing">
<value>1012, 533</value> <value>1012, 533</value>
</data> </data>
<data name="picturesTabPageCtrl1.Size" type="System.Drawing.Size, System.Drawing">
<value>1012, 533</value>
</data>
<data name="picturesTabPage.Size" type="System.Drawing.Size, System.Drawing">
<value>1012, 533</value>
</data>
<data name="mainTabControl.Size" type="System.Drawing.Size, System.Drawing"> <data name="mainTabControl.Size" type="System.Drawing.Size, System.Drawing">
<value>1020, 542</value> <value>1020, 542</value>
</data> </data>
@@ -169,6 +163,12 @@
<data name="verticalSplitContainer.Size" type="System.Drawing.Size, System.Drawing"> <data name="verticalSplitContainer.Size" type="System.Drawing.Size, System.Drawing">
<value>1254, 666</value> <value>1254, 666</value>
</data> </data>
<data name="MeasurementTabPageCtrl.Size" type="System.Drawing.Size, System.Drawing">
<value>1012, 533</value>
</data>
<data name="measurementTabPage.Size" type="System.Drawing.Size, System.Drawing">
<value>1012, 533</value>
</data>
<data name="userInfoStatusLabel.Size" type="System.Drawing.Size, System.Drawing"> <data name="userInfoStatusLabel.Size" type="System.Drawing.Size, System.Drawing">
<value>73, 17</value> <value>73, 17</value>
</data> </data>
@@ -233,12 +233,6 @@
<data name="homeTSMenuItem.Text" xml:space="preserve"> <data name="homeTSMenuItem.Text" xml:space="preserve">
<value>Schema-Diagramm</value> <value>Schema-Diagramm</value>
</data> </data>
<data name="measurementTSMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>67, 20</value>
</data>
<data name="measurementTSMenuItem.Text" xml:space="preserve">
<value>Messung</value>
</data>
<data name="resultsTSMenuItem.Size" type="System.Drawing.Size, System.Drawing"> <data name="resultsTSMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 20</value> <value>75, 20</value>
</data> </data>
@@ -291,10 +285,10 @@
<value>Hilfe</value> <value>Hilfe</value>
</data> </data>
<data name="proceduresToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing"> <data name="proceduresToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 20</value> <value>87, 20</value>
</data> </data>
<data name="proceduresToolStripMenuItem.Text" xml:space="preserve"> <data name="proceduresToolStripMenuItem.Text" xml:space="preserve">
<value>Prüfungen</value> <value>Prüfvorlagen</value>
</data> </data>
<data name="processToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing"> <data name="processToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>58, 20</value> <value>58, 20</value>
@@ -302,22 +296,19 @@
<data name="processToolStripMenuItem.Text" xml:space="preserve"> <data name="processToolStripMenuItem.Text" xml:space="preserve">
<value>Prozess</value> <value>Prozess</value>
</data> </data>
<data name="picturesTSMItem.Size" type="System.Drawing.Size, System.Drawing">
<value>49, 20</value>
</data>
<data name="picturesTSMItem.Text" xml:space="preserve">
<value>Bilder</value>
</data>
<data name="resultsToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing"> <data name="resultsToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 20</value> <value>75, 20</value>
</data> </data>
<data name="resultsToolStripMenuItem.Text" xml:space="preserve"> <data name="resultsToolStripMenuItem.Text" xml:space="preserve">
<value>Ergebnisse</value> <value>Ergebnisse</value>
</data> </data>
<data name="printToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>63, 20</value>
</data>
<data name="printToolStripMenuItem.Text" xml:space="preserve">
<value>Drucken</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing"> <data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>1254, 712</value> <value>1254, 712</value>
</data> </data>
<data name="$this.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
</root> </root>
File diff suppressed because it is too large Load Diff
+9 -14
View File
@@ -215,25 +215,20 @@ namespace TBF
string[] leftColumn = new string[] string[] leftColumn = new string[]
{ {
Strings.Purchase_order_, Strings.Purchase_order + ": ",
Strings.Date_and_time_, Strings.Date_and_time + ": ",
Strings.Procedure_, Strings.Procedure + ": ",
Strings.Tester_, Strings.Tester + ": ",
Strings.Approval_, Strings.Approval + ": ",
Strings.Ambient_temperature_, Strings.Ambient_temperature + ": ",
Strings.Ambient_pressure_, Strings.Ambient_pressure + ": ",
Strings.Ambient_humidity_, Strings.Ambient_humidity + ": ",
}; };
string[] rightColumn = new string[] string[] rightColumn = new string[]
{ {
allResults[0].PurchaseOrder, allResults[0].PurchaseOrder,
//dateTime.ToShortDateString() + " " + dateTime.ToShortTimeString(), string.Format("{0:yyyy.MM.dd HH:mm}", dateTime),
string.Format("{0}.{1}.{2} {3}:{4}", dateTime.Year.ToString("D4"),
dateTime.Month.ToString("D2"),
dateTime.Day.ToString("D2"),
dateTime.Hour.ToString("D2"),
dateTime.Minute.ToString("D2")),
procedure.Name, procedure.Name,
tester, tester,
string.Empty, string.Empty,
+1 -1
View File
@@ -463,7 +463,7 @@ namespace TBF
historyListViewEx.Columns.Add(Strings.Name, (ls.HistoryColumnCount > 0) ? ls.HistoryColumnWidths[0] : 80); historyListViewEx.Columns.Add(Strings.Name, (ls.HistoryColumnCount > 0) ? ls.HistoryColumnWidths[0] : 80);
historyListViewEx.Columns.Add(Strings.Revision, (ls.HistoryColumnCount > 0) ? ls.HistoryColumnWidths[0] : 80); historyListViewEx.Columns.Add(Strings.Revision, (ls.HistoryColumnCount > 0) ? ls.HistoryColumnWidths[0] : 80);
historyListViewEx.Columns.Add(Strings.Date_and_time_, (ls.HistoryColumnCount > 1) ? ls.HistoryColumnWidths[1] : 120); historyListViewEx.Columns.Add(Strings.Date_and_time, (ls.HistoryColumnCount > 1) ? ls.HistoryColumnWidths[1] : 120);
historyListViewEx.Columns.Add(Strings.User_, (ls.HistoryColumnCount > 2) ? ls.HistoryColumnWidths[2] : 55); historyListViewEx.Columns.Add(Strings.User_, (ls.HistoryColumnCount > 2) ? ls.HistoryColumnWidths[2] : 55);
historyListViewEx.Columns.Add(Strings.DescriptionColHdr, (ls.HistoryColumnCount > 3) ? ls.HistoryColumnWidths[3] : 300); historyListViewEx.Columns.Add(Strings.DescriptionColHdr, (ls.HistoryColumnCount > 3) ? ls.HistoryColumnWidths[3] : 300);
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number // Build Number
// Revision // Revision
// //
[assembly: AssemblyVersion("2.7.296.1")] [assembly: AssemblyVersion("2.7.297.1")]
[assembly: AssemblyFileVersion("2.7.296.1")] [assembly: AssemblyFileVersion("2.7.297.1")]
+204 -51
View File
@@ -142,11 +142,20 @@ namespace TBF.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Air density [kg/m3]:. /// Looks up a localized string similar to Again.
/// </summary> /// </summary>
internal static string Air_density_kg_m3_ { internal static string Again {
get { get {
return ResourceManager.GetString("Air_density_kg_m3_", resourceCulture); return ResourceManager.GetString("Again", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Air density [kg/m3].
/// </summary>
internal static string Air_density_kg_m3 {
get {
return ResourceManager.GetString("Air_density_kg_m3", resourceCulture);
} }
} }
@@ -160,11 +169,11 @@ namespace TBF.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Ambient humidity: . /// Looks up a localized string similar to Ambient humidity.
/// </summary> /// </summary>
internal static string Ambient_humidity_ { internal static string Ambient_humidity {
get { get {
return ResourceManager.GetString("Ambient_humidity_", resourceCulture); return ResourceManager.GetString("Ambient_humidity", resourceCulture);
} }
} }
@@ -178,11 +187,11 @@ namespace TBF.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Ambient pressure: . /// Looks up a localized string similar to Ambient pressure.
/// </summary> /// </summary>
internal static string Ambient_pressure_ { internal static string Ambient_pressure {
get { get {
return ResourceManager.GetString("Ambient_pressure_", resourceCulture); return ResourceManager.GetString("Ambient_pressure", resourceCulture);
} }
} }
@@ -196,11 +205,11 @@ namespace TBF.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Ambient temperature: . /// Looks up a localized string similar to Ambient temperature.
/// </summary> /// </summary>
internal static string Ambient_temperature_ { internal static string Ambient_temperature {
get { get {
return ResourceManager.GetString("Ambient_temperature_", resourceCulture); return ResourceManager.GetString("Ambient_temperature", resourceCulture);
} }
} }
@@ -214,11 +223,11 @@ namespace TBF.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Approval: . /// Looks up a localized string similar to Approval.
/// </summary> /// </summary>
internal static string Approval_ { internal static string Approval {
get { get {
return ResourceManager.GetString("Approval_", resourceCulture); return ResourceManager.GetString("Approval", resourceCulture);
} }
} }
@@ -465,6 +474,24 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Cannot connect to the database.
/// </summary>
internal static string Cannot_connect_to_the_database {
get {
return ResourceManager.GetString("Cannot_connect_to_the_database", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cannot save changes.
/// </summary>
internal static string Cannot_save_changes {
get {
return ResourceManager.GetString("Cannot_save_changes", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Certificate. /// Looks up a localized string similar to Certificate.
/// </summary> /// </summary>
@@ -537,6 +564,24 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Test Bench Framework program is closing.
/// </summary>
internal static string Closing_Test_Bench_Framework {
get {
return ResourceManager.GetString("Closing_Test_Bench_Framework", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Closing the program.
/// </summary>
internal static string Closing_the_program {
get {
return ResourceManager.GetString("Closing_the_program", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Closing the tank. /// Looks up a localized string similar to Closing the tank.
/// </summary> /// </summary>
@@ -763,11 +808,11 @@ namespace TBF.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Date and time: . /// Looks up a localized string similar to Date and time.
/// </summary> /// </summary>
internal static string Date_and_time_ { internal static string Date_and_time {
get { get {
return ResourceManager.GetString("Date_and_time_", resourceCulture); return ResourceManager.GetString("Date_and_time", resourceCulture);
} }
} }
@@ -870,6 +915,15 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Do you want to exit the Test Bench Framework?.
/// </summary>
internal static string Do_you_want_to_exit_TBF {
get {
return ResourceManager.GetString("Do_you_want_to_exit_TBF", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Do you want to proceed?. /// Looks up a localized string similar to Do you want to proceed?.
/// </summary> /// </summary>
@@ -1023,6 +1077,15 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Enter protocol data.
/// </summary>
internal static string Enter_protocol_data {
get {
return ResourceManager.GetString("Enter_protocol_data", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Enter serial numbers at the end. /// Looks up a localized string similar to Enter serial numbers at the end.
/// </summary> /// </summary>
@@ -1032,6 +1095,15 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Enter water meter data.
/// </summary>
internal static string Enter_water_meter_data {
get {
return ResourceManager.GetString("Enter_water_meter_data", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Err. cor. - [%]. /// Looks up a localized string similar to Err. cor. - [%].
/// </summary> /// </summary>
@@ -1113,6 +1185,15 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Error writing into file:.
/// </summary>
internal static string Error_writing_into_file_ {
get {
return ResourceManager.GetString("Error_writing_into_file_", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Estimated time [s]:. /// Looks up a localized string similar to Estimated time [s]:.
/// </summary> /// </summary>
@@ -1788,6 +1869,15 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to No results to print.
/// </summary>
internal static string No_results_to_print {
get {
return ResourceManager.GetString("No_results_to_print", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to No test bench in the program configuration.. /// Looks up a localized string similar to No test bench in the program configuration..
/// </summary> /// </summary>
@@ -2022,6 +2112,15 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Please choose another transition sequence name.
/// </summary>
internal static string Please_choose_another_transition_sequence_name {
get {
return ResourceManager.GetString("Please_choose_another_transition_sequence_name", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Please select a cycle, a test or empty. /// Looks up a localized string similar to Please select a cycle, a test or empty.
/// </summary> /// </summary>
@@ -2166,6 +2265,42 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Print only good results.
/// </summary>
internal static string Print_only_good_results {
get {
return ResourceManager.GetString("Print_only_good_results", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Print only the last measurement.
/// </summary>
internal static string Print_only_the_last_measurement {
get {
return ResourceManager.GetString("Print_only_the_last_measurement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Print watermeter results.
/// </summary>
internal static string Print_watermeter_results {
get {
return ResourceManager.GetString("Print_watermeter_results", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Print.
/// </summary>
internal static string PrintBtnText {
get {
return ResourceManager.GetString("PrintBtnText", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Printer. /// Looks up a localized string similar to Printer.
/// </summary> /// </summary>
@@ -2193,15 +2328,6 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Procedure: .
/// </summary>
internal static string Procedure_ {
get {
return ResourceManager.GetString("Procedure_", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Procedure {0} added.. /// Looks up a localized string similar to Procedure {0} added..
/// </summary> /// </summary>
@@ -2329,20 +2455,11 @@ namespace TBF.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Purchase Order. /// Looks up a localized string similar to Purchase order.
/// </summary> /// </summary>
internal static string Purchase_Order { internal static string Purchase_order {
get { get {
return ResourceManager.GetString("Purchase_Order", resourceCulture); return ResourceManager.GetString("Purchase_order", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Purchase order: .
/// </summary>
internal static string Purchase_order_ {
get {
return ResourceManager.GetString("Purchase_order_", resourceCulture);
} }
} }
@@ -2536,11 +2653,11 @@ namespace TBF.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Ref. mass density [kg/m3]:. /// Looks up a localized string similar to Ref. mass density [kg/m3].
/// </summary> /// </summary>
internal static string Ref_mass_dens_kg_m3_ { internal static string Ref_mass_dens_kg_m3 {
get { get {
return ResourceManager.GetString("Ref_mass_dens_kg_m3_", resourceCulture); return ResourceManager.GetString("Ref_mass_dens_kg_m3", resourceCulture);
} }
} }
@@ -2733,6 +2850,15 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Saving and printing results.
/// </summary>
internal static string Saving_and_printing_results {
get {
return ResourceManager.GetString("Saving_and_printing_results", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Screen. /// Looks up a localized string similar to Screen.
/// </summary> /// </summary>
@@ -2796,6 +2922,15 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Sent.
/// </summary>
internal static string Sent {
get {
return ResourceManager.GetString("Sent", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Serial Number. /// Looks up a localized string similar to Serial Number.
/// </summary> /// </summary>
@@ -3336,15 +3471,6 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Tester: .
/// </summary>
internal static string Tester_ {
get {
return ResourceManager.GetString("Tester_", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
@@ -3402,6 +3528,15 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to The following components are in simulation mode:.
/// </summary>
internal static string The_following_components_are_in_simulation_mode_ {
get {
return ResourceManager.GetString("The_following_components_are_in_simulation_mode_", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to T stop - mass msrmt. [s]. /// Looks up a localized string similar to T stop - mass msrmt. [s].
/// </summary> /// </summary>
@@ -3456,6 +3591,15 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Transition sequence.
/// </summary>
internal static string Transition_sequence {
get {
return ResourceManager.GetString("Transition_sequence", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Transition - End. /// Looks up a localized string similar to Transition - End.
/// </summary> /// </summary>
@@ -3627,6 +3771,15 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Virtual bench sequence.
/// </summary>
internal static string Virtual_bench_sequence {
get {
return ResourceManager.GetString("Virtual_bench_sequence", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Volume:. /// Looks up a localized string similar to Volume:.
/// </summary> /// </summary>
+58 -16
View File
@@ -144,20 +144,20 @@
<data name="Administrator" xml:space="preserve"> <data name="Administrator" xml:space="preserve">
<value>Správce</value> <value>Správce</value>
</data> </data>
<data name="Ambient_humidity_" xml:space="preserve"> <data name="Ambient_humidity" xml:space="preserve">
<value>Okolní vlhkost:</value> <value>Okolní vlhkost</value>
</data> </data>
<data name="Ambient_pressure_" xml:space="preserve"> <data name="Ambient_pressure" xml:space="preserve">
<value>Okolní tlak:</value> <value>Okolní tlak</value>
</data> </data>
<data name="Ambient_temperature_" xml:space="preserve"> <data name="Ambient_temperature" xml:space="preserve">
<value>Okolní teplota:</value> <value>Okolní teplota</value>
</data> </data>
<data name="An_unhandled_error_occured" xml:space="preserve"> <data name="An_unhandled_error_occured" xml:space="preserve">
<value>Neošetřená chyba</value> <value>Neošetřená chyba</value>
</data> </data>
<data name="Approval_" xml:space="preserve"> <data name="Approval" xml:space="preserve">
<value>Schválení:</value> <value>Schválení</value>
</data> </data>
<data name="Approval_date" xml:space="preserve"> <data name="Approval_date" xml:space="preserve">
<value>Datum schválení</value> <value>Datum schválení</value>
@@ -309,8 +309,8 @@
<data name="Database_type" xml:space="preserve"> <data name="Database_type" xml:space="preserve">
<value>Typ databáze</value> <value>Typ databáze</value>
</data> </data>
<data name="Date_and_time_" xml:space="preserve"> <data name="Date_and_time" xml:space="preserve">
<value>Datum a čas:</value> <value>Datum a čas</value>
</data> </data>
<data name="DB_was_successfully_created" xml:space="preserve"> <data name="DB_was_successfully_created" xml:space="preserve">
<value>Databáze byla úspěšně vytvořena!</value> <value>Databáze byla úspěšně vytvořena!</value>
@@ -714,9 +714,6 @@
<data name="Procedure" xml:space="preserve"> <data name="Procedure" xml:space="preserve">
<value>Postup</value> <value>Postup</value>
</data> </data>
<data name="Procedure_" xml:space="preserve">
<value>Postup:</value>
</data>
<data name="Procedures" xml:space="preserve"> <data name="Procedures" xml:space="preserve">
<value>Postupy</value> <value>Postupy</value>
</data> </data>
@@ -1038,9 +1035,6 @@
<data name="Tester" xml:space="preserve"> <data name="Tester" xml:space="preserve">
<value>Tester</value> <value>Tester</value>
</data> </data>
<data name="Tester_" xml:space="preserve">
<value>Tester:</value>
</data>
<data name="Testing_Specialist" xml:space="preserve"> <data name="Testing_Specialist" xml:space="preserve">
<value>Testovací technik</value> <value>Testovací technik</value>
</data> </data>
@@ -1173,4 +1167,52 @@
<data name="Water_Meter_nr" xml:space="preserve"> <data name="Water_Meter_nr" xml:space="preserve">
<value>Vodoměr {0}</value> <value>Vodoměr {0}</value>
</data> </data>
<data name="Closing_the_program" xml:space="preserve">
<value>Uzavírání programu</value>
</data>
<data name="Do_you_want_to_exit_TBF" xml:space="preserve">
<value>Chcete ukončit Test Bench Framework?</value>
</data>
<data name="The_following_components_are_in_simulation_mode_" xml:space="preserve">
<value>Následující komponenty jsou v simulačním režimu:</value>
</data>
<data name="Cannot_save_changes" xml:space="preserve">
<value>Změny se nepodařilo uložit</value>
</data>
<data name="Error_writing_into_file_" xml:space="preserve">
<value>Chyba při zapisování do souboru:</value>
</data>
<data name="Please_choose_another_transition_sequence_name" xml:space="preserve">
<value>Zvolte jiné jméno přechodové sekvence</value>
</data>
<data name="Closing_Test_Bench_Framework" xml:space="preserve">
<value>Test Bench Framework program se zavírá</value>
</data>
<data name="Print_only_good_results" xml:space="preserve">
<value>Tisknout pouze dobré výsledky</value>
</data>
<data name="Print_only_the_last_measurement" xml:space="preserve">
<value>Tisknout pouze poslední měření</value>
</data>
<data name="Print_watermeter_results" xml:space="preserve">
<value>Tisk výsledů vodoměrů</value>
</data>
<data name="Again" xml:space="preserve">
<value>Znovu</value>
</data>
<data name="Previous_results" xml:space="preserve">
<value>Predešlé výsledky</value>
</data>
<data name="Sent" xml:space="preserve">
<value>Odeslané</value>
</data>
<data name="Enter_protocol_data" xml:space="preserve">
<value>Zadejte údaje o protokolu</value>
</data>
<data name="Saving_and_printing_results" xml:space="preserve">
<value>Ukládání a tisk výsledků</value>
</data>
<data name="Enter_water_meter_data" xml:space="preserve">
<value>Zadejte údaje o vodoměrech</value>
</data>
</root> </root>
+121 -31
View File
@@ -175,10 +175,10 @@
<value>Pumpe</value> <value>Pumpe</value>
</data> </data>
<data name="P_in" xml:space="preserve"> <data name="P_in" xml:space="preserve">
<value>P ein.</value> <value>Dr ob.</value>
</data> </data>
<data name="P_out" xml:space="preserve"> <data name="P_out" xml:space="preserve">
<value>P aus.</value> <value>Dr un.</value>
</data> </data>
<data name="Q_from" xml:space="preserve"> <data name="Q_from" xml:space="preserve">
<value>Q von</value> <value>Q von</value>
@@ -199,13 +199,13 @@
<value>Messs. </value> <value>Messs. </value>
</data> </data>
<data name="T_div" xml:space="preserve"> <data name="T_div" xml:space="preserve">
<value>T Klappe</value> <value>T div</value>
</data> </data>
<data name="T_in" xml:space="preserve"> <data name="T_in" xml:space="preserve">
<value>T ein.</value> <value>T ein</value>
</data> </data>
<data name="T_out" xml:space="preserve"> <data name="T_out" xml:space="preserve">
<value>T aus.</value> <value>T aus</value>
</data> </data>
<data name="Pressure_meter" xml:space="preserve"> <data name="Pressure_meter" xml:space="preserve">
<value>Drucksensor</value> <value>Drucksensor</value>
@@ -280,7 +280,7 @@
<value>Beschreibung</value> <value>Beschreibung</value>
</data> </data>
<data name="Procedure" xml:space="preserve"> <data name="Procedure" xml:space="preserve">
<value>Prüfung</value> <value>Prüfvorlage</value>
</data> </data>
<data name="Procedures" xml:space="preserve"> <data name="Procedures" xml:space="preserve">
<value>Prüfvorlagen</value> <value>Prüfvorlagen</value>
@@ -373,7 +373,7 @@
<value>Bestätigung</value> <value>Bestätigung</value>
</data> </data>
<data name="Corrected" xml:space="preserve"> <data name="Corrected" xml:space="preserve">
<value>korrigiert</value> <value>Korrigiert</value>
</data> </data>
<data name="Correction_g" xml:space="preserve"> <data name="Correction_g" xml:space="preserve">
<value>Korrektur [g]</value> <value>Korrektur [g]</value>
@@ -556,10 +556,10 @@
<value>Konfigurieren</value> <value>Konfigurieren</value>
</data> </data>
<data name="Arrangement_of_meters" xml:space="preserve"> <data name="Arrangement_of_meters" xml:space="preserve">
<value>Arrangement_of_meters</value> <value>Die Anordnung der Zähler</value>
</data> </data>
<data name="Arrangement_of_test" xml:space="preserve"> <data name="Arrangement_of_tests" xml:space="preserve">
<value>Arrangement_of_tests</value> <value>Die Anordnung der Prüfpunkte</value>
</data> </data>
<data name="Horizontally" xml:space="preserve"> <data name="Horizontally" xml:space="preserve">
<value>Horizontal</value> <value>Horizontal</value>
@@ -901,7 +901,7 @@
<value>Erkennung läuft</value> <value>Erkennung läuft</value>
</data> </data>
<data name="ScreenBtnText" xml:space="preserve"> <data name="ScreenBtnText" xml:space="preserve">
<value>Bildschirm [%]</value> <value>Bildschirm</value>
</data> </data>
<data name="Selected_results" xml:space="preserve"> <data name="Selected_results" xml:space="preserve">
<value>Ergebnisse ausgewählt</value> <value>Ergebnisse ausgewählt</value>
@@ -940,16 +940,16 @@
<value>WZ_Stand</value> <value>WZ_Stand</value>
</data> </data>
<data name="P_in_end" xml:space="preserve"> <data name="P_in_end" xml:space="preserve">
<value>P ein. ende</value> <value>Dr ob. ende</value>
</data> </data>
<data name="P_in_start" xml:space="preserve"> <data name="P_in_start" xml:space="preserve">
<value>P ein. start</value> <value>Dr ob. start</value>
</data> </data>
<data name="P_out_end" xml:space="preserve"> <data name="P_out_end" xml:space="preserve">
<value>P aus. ende</value> <value>Dr un. ende</value>
</data> </data>
<data name="P_out_start" xml:space="preserve"> <data name="P_out_start" xml:space="preserve">
<value>P aus. start</value> <value>Dr un. start</value>
</data> </data>
<data name="Language" xml:space="preserve"> <data name="Language" xml:space="preserve">
<value>Sprache</value> <value>Sprache</value>
@@ -973,7 +973,7 @@
<value>Über Test Bench Framework</value> <value>Über Test Bench Framework</value>
</data> </data>
<data name="BuildDateStr" xml:space="preserve"> <data name="BuildDateStr" xml:space="preserve">
<value>erstellt am {0}</value> <value>Erstellt am {0}</value>
</data> </data>
<data name="CopyrightStr" xml:space="preserve"> <data name="CopyrightStr" xml:space="preserve">
<value>© 2013 - {0} Sensus GmbH</value> <value>© 2013 - {0} Sensus GmbH</value>
@@ -994,10 +994,10 @@
<value>Ein unbehandelter Fehler ist aufgetreten!</value> <value>Ein unbehandelter Fehler ist aufgetreten!</value>
</data> </data>
<data name="Procedure_0_added" xml:space="preserve"> <data name="Procedure_0_added" xml:space="preserve">
<value>Prüfung {0} hinzugefügt</value> <value>Prüfvorlage {0} hinzugefügt</value>
</data> </data>
<data name="Procedure_0_modified" xml:space="preserve"> <data name="Procedure_0_modified" xml:space="preserve">
<value>Prüfung {0} bearbeitet</value> <value>Prüfvorlage {0} bearbeitet</value>
</data> </data>
<data name="Uncertainty_pct_chdr" xml:space="preserve"> <data name="Uncertainty_pct_chdr" xml:space="preserve">
<value>Unsicherheit [%]</value> <value>Unsicherheit [%]</value>
@@ -1020,17 +1020,17 @@
<data name="Camera" xml:space="preserve"> <data name="Camera" xml:space="preserve">
<value>Kamera</value> <value>Kamera</value>
</data> </data>
<data name="Air_density_kg_m3_" xml:space="preserve"> <data name="Air_density_kg_m3" xml:space="preserve">
<value>Luftdichte [kg/m3]:</value> <value>Luftdichte [kg/m3]</value>
</data> </data>
<data name="Ambient_humidity_" xml:space="preserve"> <data name="Ambient_humidity" xml:space="preserve">
<value>Umgebungsfeuchte:</value> <value>Umgebungsfeuchte</value>
</data> </data>
<data name="Ambient_pressure_" xml:space="preserve"> <data name="Ambient_pressure" xml:space="preserve">
<value>Umgebungsdruck:</value> <value>Umgebungsdruck</value>
</data> </data>
<data name="Ambient_temperature_" xml:space="preserve"> <data name="Ambient_temperature" xml:space="preserve">
<value>Umgebungstemperatur:</value> <value>Umgebungstemperatur</value>
</data> </data>
<data name="Calibration" xml:space="preserve"> <data name="Calibration" xml:space="preserve">
<value>Kalibrierung</value> <value>Kalibrierung</value>
@@ -1038,11 +1038,11 @@
<data name="Date" xml:space="preserve"> <data name="Date" xml:space="preserve">
<value>Datum</value> <value>Datum</value>
</data> </data>
<data name="Date_and_time_" xml:space="preserve"> <data name="Date_and_time" xml:space="preserve">
<value>Datum und Uhrzeit:</value> <value>Datum und Uhrzeit</value>
</data> </data>
<data name="Ref_mass_dens_kg_m3_" xml:space="preserve"> <data name="Ref_mass_dens_kg_m3" xml:space="preserve">
<value>Referenzmassendichte [kg/m3]:</value> <value>Referenzmassendichte [kg/m3]</value>
</data> </data>
<data name="Valid_until" xml:space="preserve"> <data name="Valid_until" xml:space="preserve">
<value>Gültig bis</value> <value>Gültig bis</value>
@@ -1138,7 +1138,7 @@
<value>Wasserzähler {0}</value> <value>Wasserzähler {0}</value>
</data> </data>
<data name="Continue_in_the_cycle" xml:space="preserve"> <data name="Continue_in_the_cycle" xml:space="preserve">
<value>Nach diesem Prüfpunkt weiterhin die Prüfung</value> <value>Nach diesem Prüfpunkt weiterhin die Prüfvorlage</value>
</data> </data>
<data name="Year_of_production" xml:space="preserve"> <data name="Year_of_production" xml:space="preserve">
<value>Eichjahr</value> <value>Eichjahr</value>
@@ -1146,4 +1146,94 @@
<data name="Mounting" xml:space="preserve"> <data name="Mounting" xml:space="preserve">
<value>Montage</value> <value>Montage</value>
</data> </data>
<data name="Closing_the_program" xml:space="preserve">
<value>Schließen des Programms</value>
</data>
<data name="Do_you_want_to_exit_TBF" xml:space="preserve">
<value>Wollen Sie die Test Bench Framework zu beenden?</value>
</data>
<data name="The_following_components_are_in_simulation_mode_" xml:space="preserve">
<value>Die folgenden Komponenten sind im Simulationsmodus:</value>
</data>
<data name="Cannot_save_changes" xml:space="preserve">
<value>Kann nicht Änderungen speichern</value>
</data>
<data name="Error_writing_into_file_" xml:space="preserve">
<value>Fehler beim Schreiben in Datei:</value>
</data>
<data name="No_results_to_print" xml:space="preserve">
<value>Keine Ergebnisse zu drucken</value>
</data>
<data name="Please_choose_another_transition_sequence_name" xml:space="preserve">
<value>Bitte wählen Sie anderen Übergangsekvenzname</value>
</data>
<data name="Closing_Test_Bench_Framework" xml:space="preserve">
<value>Test Bench Framework Programm schließt</value>
</data>
<data name="Approval" xml:space="preserve">
<value>Zulassung</value>
</data>
<data name="Cannot_connect_to_the_database" xml:space="preserve">
<value>Kann nicht mit der Datenbank verbinden</value>
</data>
<data name="PrintBtnText" xml:space="preserve">
<value>Drucken</value>
</data>
<data name="Print_only_good_results" xml:space="preserve">
<value>Nur gute Ergebnidse drucken</value>
</data>
<data name="Print_only_the_last_measurement" xml:space="preserve">
<value>Nur die letzte Messung drucken</value>
</data>
<data name="Print_watermeter_results" xml:space="preserve">
<value>Wasserzählerergebnisse drucken</value>
</data>
<data name="Again" xml:space="preserve">
<value>wieder</value>
</data>
<data name="Previous_results" xml:space="preserve">
<value>Vorherige Ergebnisse</value>
</data>
<data name="Sent" xml:space="preserve">
<value>Versendet</value>
</data>
<data name="Transition_sequence" xml:space="preserve">
<value>Übergängsequenz</value>
</data>
<data name="Virtual_bench_sequence" xml:space="preserve">
<value>Virtualprüfstationsequenz</value>
</data>
<data name="Purchase_order" xml:space="preserve">
<value>Bestellung</value>
</data>
<data name="Enter_protocol_data" xml:space="preserve">
<value>Geben Sie Protokolldaten</value>
</data>
<data name="Enter_water_meter_data" xml:space="preserve">
<value>Geben Sie Wasserzähler Daten</value>
</data>
<data name="Saving_and_printing_results" xml:space="preserve">
<value>Speichern und Drucken Ergebnisse</value>
</data>
<data name="Nr_meters_in_a_group" xml:space="preserve">
<value>Anzahl Zähler in Gruppe</value>
</data>
<data name="AtTemperature_C" xml:space="preserve">
<value>@Temperatur [°C]</value>
</data>
<data name="Certificate" xml:space="preserve">
<value>Zertifikat</value>
</data>
<data name="Density" xml:space="preserve">
<value>Dichte</value>
</data>
<data name="Density_kg_m3" xml:space="preserve">
<value>Dichte [kg/m3]</value>
</data>
<data name="End" xml:space="preserve">
<value>Ende</value>
</data>
<data name="End_Condition" xml:space="preserve">
<value>Bedingung für das Ende</value>
</data>
</root> </root>
+10 -16
View File
@@ -138,17 +138,17 @@
<data name="Administrator" xml:space="preserve"> <data name="Administrator" xml:space="preserve">
<value>Administrator</value> <value>Administrator</value>
</data> </data>
<data name="Ambient_humidity_" xml:space="preserve"> <data name="Ambient_humidity" xml:space="preserve">
<value>Wilgotność otoczenia:</value> <value>Wilgotność otoczenia</value>
</data> </data>
<data name="Ambient_pressure_" xml:space="preserve"> <data name="Ambient_pressure" xml:space="preserve">
<value>Ciśnienie pracy:</value> <value>Ciśnienie pracy</value>
</data> </data>
<data name="Ambient_temperature_" xml:space="preserve"> <data name="Ambient_temperature" xml:space="preserve">
<value>Temperatura otoczenia:</value> <value>Temperatura otoczenia</value>
</data> </data>
<data name="Approval_" xml:space="preserve"> <data name="Approval" xml:space="preserve">
<value>Zatwierdzenie:</value> <value>Zatwierdzenie</value>
</data> </data>
<data name="Approval_info" xml:space="preserve"> <data name="Approval_info" xml:space="preserve">
<value>Info zatwierdzenia</value> <value>Info zatwierdzenia</value>
@@ -276,8 +276,8 @@
<data name="Database_type" xml:space="preserve"> <data name="Database_type" xml:space="preserve">
<value>Typ bazy danych</value> <value>Typ bazy danych</value>
</data> </data>
<data name="Date_and_time_" xml:space="preserve"> <data name="Date_and_time" xml:space="preserve">
<value>Data i czas:</value> <value>Data i czas</value>
</data> </data>
<data name="DB_was_successfully_created" xml:space="preserve"> <data name="DB_was_successfully_created" xml:space="preserve">
<value>Baza danych została utworzona pomyślnie!</value> <value>Baza danych została utworzona pomyślnie!</value>
@@ -657,9 +657,6 @@
<data name="Procedure" xml:space="preserve"> <data name="Procedure" xml:space="preserve">
<value>Procedura</value> <value>Procedura</value>
</data> </data>
<data name="Procedure_" xml:space="preserve">
<value>Procedura:</value>
</data>
<data name="Procedures" xml:space="preserve"> <data name="Procedures" xml:space="preserve">
<value>Procedury</value> <value>Procedury</value>
</data> </data>
@@ -948,9 +945,6 @@
<data name="Tester" xml:space="preserve"> <data name="Tester" xml:space="preserve">
<value>Próbnik</value> <value>Próbnik</value>
</data> </data>
<data name="Tester_" xml:space="preserve">
<value>Próbnik:</value>
</data>
<data name="Testing_Specialist" xml:space="preserve"> <data name="Testing_Specialist" xml:space="preserve">
<value>Pracownik:</value> <value>Pracownik:</value>
</data> </data>
+76 -25
View File
@@ -991,32 +991,23 @@
<data name="Closing_valve_Pump_off" xml:space="preserve"> <data name="Closing_valve_Pump_off" xml:space="preserve">
<value>Closing input valve, switching the pump off</value> <value>Closing input valve, switching the pump off</value>
</data> </data>
<data name="Purchase_Order" xml:space="preserve"> <data name="Purchase_order" xml:space="preserve">
<value>Purchase Order</value> <value>Purchase order</value>
</data> </data>
<data name="Ambient_humidity_" xml:space="preserve"> <data name="Ambient_humidity" xml:space="preserve">
<value>Ambient humidity: </value> <value>Ambient humidity</value>
</data> </data>
<data name="Ambient_pressure_" xml:space="preserve"> <data name="Ambient_pressure" xml:space="preserve">
<value>Ambient pressure: </value> <value>Ambient pressure</value>
</data> </data>
<data name="Ambient_temperature_" xml:space="preserve"> <data name="Ambient_temperature" xml:space="preserve">
<value>Ambient temperature: </value> <value>Ambient temperature</value>
</data> </data>
<data name="Approval_" xml:space="preserve"> <data name="Approval" xml:space="preserve">
<value>Approval: </value> <value>Approval</value>
</data> </data>
<data name="Date_and_time_" xml:space="preserve"> <data name="Date_and_time" xml:space="preserve">
<value>Date and time: </value> <value>Date and time</value>
</data>
<data name="Procedure_" xml:space="preserve">
<value>Procedure: </value>
</data>
<data name="Purchase_order_" xml:space="preserve">
<value>Purchase order: </value>
</data>
<data name="Tester_" xml:space="preserve">
<value>Tester: </value>
</data> </data>
<data name="Page" xml:space="preserve"> <data name="Page" xml:space="preserve">
<value>Page</value> <value>Page</value>
@@ -1249,8 +1240,8 @@
<data name="Enter_SNs_at_the_end" xml:space="preserve"> <data name="Enter_SNs_at_the_end" xml:space="preserve">
<value>Enter serial numbers at the end</value> <value>Enter serial numbers at the end</value>
</data> </data>
<data name="Air_density_kg_m3_" xml:space="preserve"> <data name="Air_density_kg_m3" xml:space="preserve">
<value>Air density [kg/m3]:</value> <value>Air density [kg/m3]</value>
</data> </data>
<data name="Calibration" xml:space="preserve"> <data name="Calibration" xml:space="preserve">
<value>Calibration</value> <value>Calibration</value>
@@ -1258,8 +1249,8 @@
<data name="Date" xml:space="preserve"> <data name="Date" xml:space="preserve">
<value>Date</value> <value>Date</value>
</data> </data>
<data name="Ref_mass_dens_kg_m3_" xml:space="preserve"> <data name="Ref_mass_dens_kg_m3" xml:space="preserve">
<value>Ref. mass density [kg/m3]:</value> <value>Ref. mass density [kg/m3]</value>
</data> </data>
<data name="Valid_until" xml:space="preserve"> <data name="Valid_until" xml:space="preserve">
<value>Valid until</value> <value>Valid until</value>
@@ -1360,4 +1351,64 @@
<data name="Main" xml:space="preserve"> <data name="Main" xml:space="preserve">
<value>Main</value> <value>Main</value>
</data> </data>
<data name="Closing_the_program" xml:space="preserve">
<value>Closing the program</value>
</data>
<data name="Do_you_want_to_exit_TBF" xml:space="preserve">
<value>Do you want to exit the Test Bench Framework?</value>
</data>
<data name="The_following_components_are_in_simulation_mode_" xml:space="preserve">
<value>The following components are in simulation mode:</value>
</data>
<data name="Cannot_save_changes" xml:space="preserve">
<value>Cannot save changes</value>
</data>
<data name="Error_writing_into_file_" xml:space="preserve">
<value>Error writing into file:</value>
</data>
<data name="No_results_to_print" xml:space="preserve">
<value>No results to print</value>
</data>
<data name="Please_choose_another_transition_sequence_name" xml:space="preserve">
<value>Please choose another transition sequence name</value>
</data>
<data name="Closing_Test_Bench_Framework" xml:space="preserve">
<value>Test Bench Framework program is closing</value>
</data>
<data name="Cannot_connect_to_the_database" xml:space="preserve">
<value>Cannot connect to the database</value>
</data>
<data name="PrintBtnText" xml:space="preserve">
<value>Print</value>
</data>
<data name="Print_only_good_results" xml:space="preserve">
<value>Print only good results</value>
</data>
<data name="Print_only_the_last_measurement" xml:space="preserve">
<value>Print only the last measurement</value>
</data>
<data name="Print_watermeter_results" xml:space="preserve">
<value>Print watermeter results</value>
</data>
<data name="Again" xml:space="preserve">
<value>Again</value>
</data>
<data name="Sent" xml:space="preserve">
<value>Sent</value>
</data>
<data name="Transition_sequence" xml:space="preserve">
<value>Transition sequence</value>
</data>
<data name="Virtual_bench_sequence" xml:space="preserve">
<value>Virtual bench sequence</value>
</data>
<data name="Enter_protocol_data" xml:space="preserve">
<value>Enter protocol data</value>
</data>
<data name="Enter_water_meter_data" xml:space="preserve">
<value>Enter water meter data</value>
</data>
<data name="Saving_and_printing_results" xml:space="preserve">
<value>Saving and printing results</value>
</data>
</root> </root>
File diff suppressed because it is too large Load Diff
+11 -17
View File
@@ -144,20 +144,20 @@
<data name="Administrator" xml:space="preserve"> <data name="Administrator" xml:space="preserve">
<value>管理员</value> <value>管理员</value>
</data> </data>
<data name="Ambient_humidity_" xml:space="preserve"> <data name="Ambient_humidity" xml:space="preserve">
<value>环境湿度:</value> <value>环境湿度</value>
</data> </data>
<data name="Ambient_pressure_" xml:space="preserve"> <data name="Ambient_pressure" xml:space="preserve">
<value>环境压力:</value> <value>环境压力</value>
</data> </data>
<data name="Ambient_temperature_" xml:space="preserve"> <data name="Ambient_temperature" xml:space="preserve">
<value>环境温度:</value> <value>环境温度</value>
</data> </data>
<data name="An_unhandled_error_occured" xml:space="preserve"> <data name="An_unhandled_error_occured" xml:space="preserve">
<value>未处理的错误发生</value> <value>未处理的错误发生</value>
</data> </data>
<data name="Approval_" xml:space="preserve"> <data name="Approval" xml:space="preserve">
<value>批准:</value> <value>批准</value>
</data> </data>
<data name="Approval_date" xml:space="preserve"> <data name="Approval_date" xml:space="preserve">
<value>批准日期</value> <value>批准日期</value>
@@ -306,8 +306,8 @@
<data name="Database_type" xml:space="preserve"> <data name="Database_type" xml:space="preserve">
<value>数据库类型</value> <value>数据库类型</value>
</data> </data>
<data name="Date_and_time_" xml:space="preserve"> <data name="Date_and_time" xml:space="preserve">
<value>日期和时间:</value> <value>日期和时间</value>
</data> </data>
<data name="DB_was_successfully_created" xml:space="preserve"> <data name="DB_was_successfully_created" xml:space="preserve">
<value>数据库创建成功!</value> <value>数据库创建成功!</value>
@@ -714,9 +714,6 @@
<data name="Procedure" xml:space="preserve"> <data name="Procedure" xml:space="preserve">
<value>程序</value> <value>程序</value>
</data> </data>
<data name="Procedure_" xml:space="preserve">
<value>程序:</value>
</data>
<data name="Procedure_0_added" xml:space="preserve"> <data name="Procedure_0_added" xml:space="preserve">
<value>程序{0}添加。</value> <value>程序{0}添加。</value>
</data> </data>
@@ -1030,10 +1027,7 @@
<value>测试时间[秒]</value> <value>测试时间[秒]</value>
</data> </data>
<data name="Tester" xml:space="preserve"> <data name="Tester" xml:space="preserve">
<value>测试仪</value> <value>测试者</value>
</data>
<data name="Tester_" xml:space="preserve">
<value>测试者:</value>
</data> </data>
<data name="Testing_Specialist" xml:space="preserve"> <data name="Testing_Specialist" xml:space="preserve">
<value>测试专员</value> <value>测试专员</value>
+89 -89
View File
@@ -31,95 +31,95 @@ namespace TBF.Screens
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.splitContainer = new System.Windows.Forms.SplitContainer(); this.splitContainer = new System.Windows.Forms.SplitContainer();
this.columnWidthsButton = new System.Windows.Forms.Button(); this.columnWidthsButton = new System.Windows.Forms.Button();
this.previousResultsButton = new System.Windows.Forms.Button(); this.previousResultsButton = new System.Windows.Forms.Button();
this.configureButton = new System.Windows.Forms.Button(); this.configureButton = new System.Windows.Forms.Button();
this.flowLayoutPanel = new System.Windows.Forms.FlowLayoutPanel(); this.flowLayoutPanel = new System.Windows.Forms.FlowLayoutPanel();
((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit();
this.splitContainer.Panel1.SuspendLayout(); this.splitContainer.Panel1.SuspendLayout();
this.splitContainer.Panel2.SuspendLayout(); this.splitContainer.Panel2.SuspendLayout();
this.splitContainer.SuspendLayout(); this.splitContainer.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// splitContainer // splitContainer
// //
this.splitContainer.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; this.splitContainer.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
this.splitContainer.IsSplitterFixed = true; this.splitContainer.IsSplitterFixed = true;
this.splitContainer.Location = new System.Drawing.Point(0, 0); this.splitContainer.Location = new System.Drawing.Point(0, 0);
this.splitContainer.Name = "splitContainer"; this.splitContainer.Name = "splitContainer";
this.splitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal; this.splitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
// //
// splitContainer.Panel1 // splitContainer.Panel1
// //
this.splitContainer.Panel1.BackColor = System.Drawing.SystemColors.Control; this.splitContainer.Panel1.BackColor = System.Drawing.SystemColors.Control;
this.splitContainer.Panel1.Controls.Add(this.columnWidthsButton); this.splitContainer.Panel1.Controls.Add(this.columnWidthsButton);
this.splitContainer.Panel1.Controls.Add(this.previousResultsButton); this.splitContainer.Panel1.Controls.Add(this.previousResultsButton);
this.splitContainer.Panel1.Controls.Add(this.configureButton); this.splitContainer.Panel1.Controls.Add(this.configureButton);
// //
// splitContainer.Panel2 // splitContainer.Panel2
// //
this.splitContainer.Panel2.Controls.Add(this.flowLayoutPanel); this.splitContainer.Panel2.Controls.Add(this.flowLayoutPanel);
this.splitContainer.Size = new System.Drawing.Size(1057, 706); this.splitContainer.Size = new System.Drawing.Size(1057, 706);
this.splitContainer.SplitterDistance = 42; this.splitContainer.SplitterDistance = 42;
this.splitContainer.TabIndex = 0; this.splitContainer.TabIndex = 0;
// //
// columnWidthsButton // columnWidthsButton
// //
this.columnWidthsButton.Location = new System.Drawing.Point(126, 10); this.columnWidthsButton.Location = new System.Drawing.Point(126, 10);
this.columnWidthsButton.Name = "columnWidthsButton"; this.columnWidthsButton.Name = "columnWidthsButton";
this.columnWidthsButton.Size = new System.Drawing.Size(120, 30); this.columnWidthsButton.Size = new System.Drawing.Size(120, 30);
this.columnWidthsButton.TabIndex = 1; this.columnWidthsButton.TabIndex = 1;
this.columnWidthsButton.Text = "Save column widths"; this.columnWidthsButton.Text = "Save column widths";
this.columnWidthsButton.UseVisualStyleBackColor = true; this.columnWidthsButton.UseVisualStyleBackColor = true;
this.columnWidthsButton.Click += new System.EventHandler(this.columnWidthsButton_Click); this.columnWidthsButton.Click += new System.EventHandler(this.columnWidthsButton_Click);
// //
// previousResultsButton // previousResultsButton
// //
this.previousResultsButton.Location = new System.Drawing.Point(252, 10); this.previousResultsButton.Location = new System.Drawing.Point(252, 10);
this.previousResultsButton.Name = "previousResultsButton"; this.previousResultsButton.Name = "previousResultsButton";
this.previousResultsButton.Size = new System.Drawing.Size(100, 30); this.previousResultsButton.Size = new System.Drawing.Size(147, 30);
this.previousResultsButton.TabIndex = 2; this.previousResultsButton.TabIndex = 2;
this.previousResultsButton.Text = "Previous results"; this.previousResultsButton.Text = "Previous results";
this.previousResultsButton.UseVisualStyleBackColor = true; this.previousResultsButton.UseVisualStyleBackColor = true;
this.previousResultsButton.Click += new System.EventHandler(this.previousResultsButton_Click); this.previousResultsButton.Click += new System.EventHandler(this.previousResultsButton_Click);
// //
// configureButton // configureButton
// //
this.configureButton.Location = new System.Drawing.Point(20, 10); this.configureButton.Location = new System.Drawing.Point(20, 10);
this.configureButton.Name = "configureButton"; this.configureButton.Name = "configureButton";
this.configureButton.Size = new System.Drawing.Size(100, 30); this.configureButton.Size = new System.Drawing.Size(100, 30);
this.configureButton.TabIndex = 0; this.configureButton.TabIndex = 0;
this.configureButton.Text = "Configure"; this.configureButton.Text = "Configure";
this.configureButton.UseVisualStyleBackColor = true; this.configureButton.UseVisualStyleBackColor = true;
this.configureButton.Click += new System.EventHandler(this.configureButton_Click); this.configureButton.Click += new System.EventHandler(this.configureButton_Click);
// //
// flowLayoutPanel // flowLayoutPanel
// //
this.flowLayoutPanel.AutoScroll = true; this.flowLayoutPanel.AutoScroll = true;
this.flowLayoutPanel.BackColor = System.Drawing.SystemColors.Control; this.flowLayoutPanel.BackColor = System.Drawing.SystemColors.Control;
this.flowLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.flowLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.flowLayoutPanel.Location = new System.Drawing.Point(0, 0); this.flowLayoutPanel.Location = new System.Drawing.Point(0, 0);
this.flowLayoutPanel.Name = "flowLayoutPanel"; this.flowLayoutPanel.Name = "flowLayoutPanel";
this.flowLayoutPanel.Size = new System.Drawing.Size(1057, 660); this.flowLayoutPanel.Size = new System.Drawing.Size(1057, 660);
this.flowLayoutPanel.TabIndex = 0; this.flowLayoutPanel.TabIndex = 0;
// //
// ResultsTabPageCtrl // ResultsTabPageCtrl
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Silver; this.BackColor = System.Drawing.Color.Silver;
this.Controls.Add(this.splitContainer); this.Controls.Add(this.splitContainer);
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.Name = "ResultsTabPageCtrl"; this.Name = "ResultsTabPageCtrl";
this.Size = new System.Drawing.Size(1057, 706); this.Size = new System.Drawing.Size(1057, 706);
this.Load += new System.EventHandler(this.ResultsTabPageCtrl_Load); this.Load += new System.EventHandler(this.ResultsTabPageCtrl_Load);
this.splitContainer.Panel1.ResumeLayout(false); this.splitContainer.Panel1.ResumeLayout(false);
this.splitContainer.Panel2.ResumeLayout(false); this.splitContainer.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit();
this.splitContainer.ResumeLayout(false); this.splitContainer.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
} }
@@ -90,8 +90,6 @@ namespace TBF.Screens
RsltItems_Screen_CombinedWM = Results.ItemSpec.FromStrArray(Program.LocalSettings.RsltItems_Screen_CombinedWM); RsltItems_Screen_CombinedWM = Results.ItemSpec.FromStrArray(Program.LocalSettings.RsltItems_Screen_CombinedWM);
RsltItems_Printer_SingleWM = Results.ItemSpec.FromStrArray(Program.LocalSettings.RsltItems_Printer_SingleWM); RsltItems_Printer_SingleWM = Results.ItemSpec.FromStrArray(Program.LocalSettings.RsltItems_Printer_SingleWM);
RsltItems_Printer_CombinedWM = Results.ItemSpec.FromStrArray(Program.LocalSettings.RsltItems_Printer_CombinedWM); RsltItems_Printer_CombinedWM = Results.ItemSpec.FromStrArray(Program.LocalSettings.RsltItems_Printer_CombinedWM);
RsltItems_Disk_SingleWM = Results.ItemSpec.FromStrArray(Program.LocalSettings.RsltItems_Disk_SingleWM);
RsltItems_Disk_CombinedWM = Results.ItemSpec.FromStrArray(Program.LocalSettings.RsltItems_Disk_CombinedWM);
RedrawAll(TBF.BenchControl.Sequences.ProcessData.BatchRslts); RedrawAll(TBF.BenchControl.Sequences.ProcessData.BatchRslts);
} }
@@ -111,8 +109,6 @@ namespace TBF.Screens
dlg.RsltItems_Screen_CombinedWM = RsltItems_Screen_CombinedWM; dlg.RsltItems_Screen_CombinedWM = RsltItems_Screen_CombinedWM;
dlg.RsltItems_Printer_SingleWM = RsltItems_Printer_SingleWM; dlg.RsltItems_Printer_SingleWM = RsltItems_Printer_SingleWM;
dlg.RsltItems_Printer_CombinedWM = RsltItems_Printer_CombinedWM; dlg.RsltItems_Printer_CombinedWM = RsltItems_Printer_CombinedWM;
dlg.RsltItems_Disk_SingleWM = RsltItems_Disk_SingleWM;
dlg.RsltItems_Disk_CombinedWM = RsltItems_Disk_CombinedWM;
if (DialogResult.OK == dlg.ShowDialog()) if (DialogResult.OK == dlg.ShowDialog())
{ {
@@ -124,8 +120,6 @@ namespace TBF.Screens
RsltItems_Screen_CombinedWM = dlg.RsltItems_Screen_CombinedWM; RsltItems_Screen_CombinedWM = dlg.RsltItems_Screen_CombinedWM;
RsltItems_Printer_SingleWM = dlg.RsltItems_Printer_SingleWM; RsltItems_Printer_SingleWM = dlg.RsltItems_Printer_SingleWM;
RsltItems_Printer_CombinedWM = dlg.RsltItems_Printer_CombinedWM; RsltItems_Printer_CombinedWM = dlg.RsltItems_Printer_CombinedWM;
RsltItems_Disk_SingleWM = dlg.RsltItems_Disk_SingleWM;
RsltItems_Disk_CombinedWM = dlg.RsltItems_Disk_CombinedWM;
Program.LocalSettings.ResultsConfigMeters = MetersArrangement; Program.LocalSettings.ResultsConfigMeters = MetersArrangement;
Program.LocalSettings.ResultsConfigTests = TestsArrangement; Program.LocalSettings.ResultsConfigTests = TestsArrangement;
@@ -135,8 +129,6 @@ namespace TBF.Screens
Program.LocalSettings.RsltItems_Screen_CombinedWM = Results.ItemSpec.ToStrArray(RsltItems_Screen_CombinedWM); Program.LocalSettings.RsltItems_Screen_CombinedWM = Results.ItemSpec.ToStrArray(RsltItems_Screen_CombinedWM);
Program.LocalSettings.RsltItems_Printer_SingleWM = Results.ItemSpec.ToStrArray(RsltItems_Printer_SingleWM); Program.LocalSettings.RsltItems_Printer_SingleWM = Results.ItemSpec.ToStrArray(RsltItems_Printer_SingleWM);
Program.LocalSettings.RsltItems_Printer_CombinedWM = Results.ItemSpec.ToStrArray(RsltItems_Printer_CombinedWM); Program.LocalSettings.RsltItems_Printer_CombinedWM = Results.ItemSpec.ToStrArray(RsltItems_Printer_CombinedWM);
Program.LocalSettings.RsltItems_Disk_SingleWM = Results.ItemSpec.ToStrArray(RsltItems_Disk_SingleWM);
Program.LocalSettings.RsltItems_Disk_CombinedWM = Results.ItemSpec.ToStrArray(RsltItems_Disk_CombinedWM);
Program.LocalSettings.Save(); Program.LocalSettings.Save();
} }
RedrawAll(TBF.BenchControl.Sequences.ProcessData.BatchRslts); RedrawAll(TBF.BenchControl.Sequences.ProcessData.BatchRslts);
+6 -6
View File
@@ -1060,6 +1060,11 @@
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
<DependentUpon>Strings.cs.resx</DependentUpon> <DependentUpon>Strings.cs.resx</DependentUpon>
</Compile> </Compile>
<Compile Include="Resources\Strings.de.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.de.resx</DependentUpon>
</Compile>
<Compile Include="Resources\Strings.zh-CN.Designer.cs"> <Compile Include="Resources\Strings.zh-CN.Designer.cs">
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
@@ -1253,11 +1258,6 @@
<Compile Include="BenchControl\StateMachine.cs" /> <Compile Include="BenchControl\StateMachine.cs" />
<Compile Include="BenchControl\Operations\TimerOp.cs" /> <Compile Include="BenchControl\Operations\TimerOp.cs" />
<Compile Include="BenchControl\Operations\CheckUIOp.cs" /> <Compile Include="BenchControl\Operations\CheckUIOp.cs" />
<Compile Include="Resources\Strings.de.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Strings.de.resx</DependentUpon>
</Compile>
<Compile Include="Resources\Strings.Designer.cs"> <Compile Include="Resources\Strings.Designer.cs">
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
@@ -1756,8 +1756,8 @@
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Resources\Strings.cs.resx"> <EmbeddedResource Include="Resources\Strings.cs.resx">
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Strings.cs.Designer.cs</LastGenOutput>
<SubType>Designer</SubType> <SubType>Designer</SubType>
<LastGenOutput>Strings.cs.Designer.cs</LastGenOutput>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Resources\Strings.es.resx" /> <EmbeddedResource Include="Resources\Strings.es.resx" />
<EmbeddedResource Include="Resources\Strings.fr.resx" /> <EmbeddedResource Include="Resources\Strings.fr.resx" />
+5 -2
View File
@@ -203,7 +203,10 @@ namespace TBF
if (DialogResult.OK != dlg.ShowDialog()) return; if (DialogResult.OK != dlg.ShowDialog()) return;
foreach (var seq in TransitionSequences) if (seq.Name.Equals(dlg.TabName)) nameUsed = true; foreach (var seq in TransitionSequences) if (seq.Name.Equals(dlg.TabName)) nameUsed = true;
if (nameUsed) MessageBox.Show("Please choose another transition sequence name", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Information); if (nameUsed) MessageBox.Show(Strings.Please_choose_another_transition_sequence_name,
Strings.Warning,
MessageBoxButtons.OK,
MessageBoxIcon.Information);
} }
while (nameUsed); while (nameUsed);
@@ -249,7 +252,7 @@ namespace TBF
} }
catch (Exception e2) catch (Exception e2)
{ {
MessageBox.Show("Cannot save changes", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); MessageBox.Show(Strings.Cannot_save_changes, Strings.Error, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
log.ErrorFormat("Update of sequences in the database failed: {0}", e2.Message); log.ErrorFormat("Update of sequences in the database failed: {0}", e2.Message);
} }
} }
@@ -91,11 +91,11 @@ namespace TBF.UiControls
calibDateLabel.Text = Strings.Date; calibDateLabel.Text = Strings.Date;
calibValidDateLabel.Text = Strings.Valid_until; calibValidDateLabel.Text = Strings.Valid_until;
buoyancyTempLabel.Text = Strings.Ambient_temperature_; buoyancyTempLabel.Text = Strings.Ambient_temperature + " [°C]";
buoyancyPressLabel.Text = Strings.Ambient_pressure_; buoyancyPressLabel.Text = Strings.Ambient_pressure + " [mbar]";
buoyancyHumiLabel.Text = Strings.Ambient_humidity_; buoyancyHumiLabel.Text = Strings.Ambient_humidity + " [%]";
airDensityLabel.Text = Strings.Air_density_kg_m3_; airDensityLabel.Text = Strings.Air_density_kg_m3;
weightStandardDensityLabel.Text = Strings.Ref_mass_dens_kg_m3_; weightStandardDensityLabel.Text = Strings.Ref_mass_dens_kg_m3;
testGroupBox.Text = Strings.Test_measured_corrected; testGroupBox.Text = Strings.Test_measured_corrected;
measuredLabel.Text = Strings.Measured; measuredLabel.Text = Strings.Measured;
@@ -203,7 +203,10 @@ namespace TBF.UiControls
} }
catch catch
{ {
MessageBox.Show(Strings.Invalid_buoyancy_parameter_Correct_pls, Strings.Error, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); MessageBox.Show(Strings.Invalid_buoyancy_parameter_Correct_pls,
Strings.Error,
MessageBoxButtons.OK,
MessageBoxIcon.Exclamation);
} }
} }
} }
@@ -184,7 +184,10 @@ namespace TBF.UiControls
} }
catch catch
{ {
MessageBox.Show(Strings.Invalid_calib_info_Correct_pls, Strings.Error, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); MessageBox.Show(Strings.Invalid_calib_info_Correct_pls,
Strings.Error,
MessageBoxButtons.OK,
MessageBoxIcon.Exclamation);
} }
} }
} }
@@ -32,14 +32,14 @@ namespace TBF.UiControls
private void InitializeComponent() private void InitializeComponent()
{ {
this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.label1 = new System.Windows.Forms.Label();
this.cmpntNameLabel = new System.Windows.Forms.Label();
this.listViewEx = new TBF.UiControls.ListViewEx();
this.correctedTextBox = new System.Windows.Forms.TextBox();
this.testGroupBox = new System.Windows.Forms.GroupBox(); this.testGroupBox = new System.Windows.Forms.GroupBox();
this.correctedTextBox = new System.Windows.Forms.TextBox();
this.measuredTextBox = new System.Windows.Forms.TextBox(); this.measuredTextBox = new System.Windows.Forms.TextBox();
this.correctedLabel = new System.Windows.Forms.Label(); this.correctedLabel = new System.Windows.Forms.Label();
this.measuredLabel = new System.Windows.Forms.Label(); this.measuredLabel = new System.Windows.Forms.Label();
this.componentLabel = new System.Windows.Forms.Label();
this.cmpntNameLabel = new System.Windows.Forms.Label();
this.listViewEx = new TBF.UiControls.ListViewEx();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout();
@@ -58,7 +58,7 @@ namespace TBF.UiControls
// splitContainer1.Panel1 // splitContainer1.Panel1
// //
this.splitContainer1.Panel1.Controls.Add(this.testGroupBox); this.splitContainer1.Panel1.Controls.Add(this.testGroupBox);
this.splitContainer1.Panel1.Controls.Add(this.label1); this.splitContainer1.Panel1.Controls.Add(this.componentLabel);
this.splitContainer1.Panel1.Controls.Add(this.cmpntNameLabel); this.splitContainer1.Panel1.Controls.Add(this.cmpntNameLabel);
// //
// splitContainer1.Panel2 // splitContainer1.Panel2
@@ -68,47 +68,6 @@ namespace TBF.UiControls
this.splitContainer1.SplitterDistance = 80; this.splitContainer1.SplitterDistance = 80;
this.splitContainer1.TabIndex = 2; this.splitContainer1.TabIndex = 2;
// //
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(14, 12);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(64, 13);
this.label1.TabIndex = 1;
this.label1.Text = "Component:";
//
// cmpntNameLabel
//
this.cmpntNameLabel.AutoSize = true;
this.cmpntNameLabel.Location = new System.Drawing.Point(97, 12);
this.cmpntNameLabel.Name = "cmpntNameLabel";
this.cmpntNameLabel.Size = new System.Drawing.Size(88, 13);
this.cmpntNameLabel.TabIndex = 0;
this.cmpntNameLabel.Text = "componentName";
//
// listViewEx
//
this.listViewEx.AllowColumnReorder = true;
this.listViewEx.Dock = System.Windows.Forms.DockStyle.Fill;
this.listViewEx.DoubleClickActivation = false;
this.listViewEx.FullRowSelect = true;
this.listViewEx.GridLines = true;
this.listViewEx.Location = new System.Drawing.Point(0, 0);
this.listViewEx.Name = "listViewEx";
this.listViewEx.Size = new System.Drawing.Size(420, 216);
this.listViewEx.TabIndex = 0;
this.listViewEx.UseCompatibleStateImageBehavior = false;
this.listViewEx.View = System.Windows.Forms.View.Details;
this.listViewEx.SelectedIndexChanged += new System.EventHandler(this.listViewEx_SelectedIndexChanged);
//
// correctedTextBox
//
this.correctedTextBox.Location = new System.Drawing.Point(74, 38);
this.correctedTextBox.Name = "correctedTextBox";
this.correctedTextBox.ReadOnly = true;
this.correctedTextBox.Size = new System.Drawing.Size(73, 20);
this.correctedTextBox.TabIndex = 5;
//
// testGroupBox // testGroupBox
// //
this.testGroupBox.Controls.Add(this.correctedTextBox); this.testGroupBox.Controls.Add(this.correctedTextBox);
@@ -122,6 +81,14 @@ namespace TBF.UiControls
this.testGroupBox.TabStop = false; this.testGroupBox.TabStop = false;
this.testGroupBox.Text = "Test"; this.testGroupBox.Text = "Test";
// //
// correctedTextBox
//
this.correctedTextBox.Location = new System.Drawing.Point(74, 38);
this.correctedTextBox.Name = "correctedTextBox";
this.correctedTextBox.ReadOnly = true;
this.correctedTextBox.Size = new System.Drawing.Size(73, 20);
this.correctedTextBox.TabIndex = 5;
//
// measuredTextBox // measuredTextBox
// //
this.measuredTextBox.Location = new System.Drawing.Point(74, 13); this.measuredTextBox.Location = new System.Drawing.Point(74, 13);
@@ -148,6 +115,39 @@ namespace TBF.UiControls
this.measuredLabel.TabIndex = 2; this.measuredLabel.TabIndex = 2;
this.measuredLabel.Text = "Measured"; this.measuredLabel.Text = "Measured";
// //
// componentLabel
//
this.componentLabel.AutoSize = true;
this.componentLabel.Location = new System.Drawing.Point(14, 12);
this.componentLabel.Name = "componentLabel";
this.componentLabel.Size = new System.Drawing.Size(64, 13);
this.componentLabel.TabIndex = 1;
this.componentLabel.Text = "Component:";
//
// cmpntNameLabel
//
this.cmpntNameLabel.AutoSize = true;
this.cmpntNameLabel.Location = new System.Drawing.Point(97, 12);
this.cmpntNameLabel.Name = "cmpntNameLabel";
this.cmpntNameLabel.Size = new System.Drawing.Size(88, 13);
this.cmpntNameLabel.TabIndex = 0;
this.cmpntNameLabel.Text = "componentName";
//
// listViewEx
//
this.listViewEx.AllowColumnReorder = true;
this.listViewEx.Dock = System.Windows.Forms.DockStyle.Fill;
this.listViewEx.DoubleClickActivation = false;
this.listViewEx.FullRowSelect = true;
this.listViewEx.GridLines = true;
this.listViewEx.Location = new System.Drawing.Point(0, 0);
this.listViewEx.Name = "listViewEx";
this.listViewEx.Size = new System.Drawing.Size(420, 216);
this.listViewEx.TabIndex = 0;
this.listViewEx.UseCompatibleStateImageBehavior = false;
this.listViewEx.View = System.Windows.Forms.View.Details;
this.listViewEx.SelectedIndexChanged += new System.EventHandler(this.listViewEx_SelectedIndexChanged);
//
// MetrologyDlgPressMeterTab // MetrologyDlgPressMeterTab
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -170,7 +170,7 @@ namespace TBF.UiControls
#endregion #endregion
private System.Windows.Forms.SplitContainer splitContainer1; private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label componentLabel;
private System.Windows.Forms.Label cmpntNameLabel; private System.Windows.Forms.Label cmpntNameLabel;
private ListViewEx listViewEx; private ListViewEx listViewEx;
private System.Windows.Forms.GroupBox testGroupBox; private System.Windows.Forms.GroupBox testGroupBox;
@@ -56,6 +56,7 @@ namespace TBF.UiControls
/// Panel1 /// Panel1
cmpntNameLabel.Text = meterEntity.Name; cmpntNameLabel.Text = meterEntity.Name;
componentLabel.Text = Strings.Component;
testGroupBox.Text = Strings.Test_measured_corrected; testGroupBox.Text = Strings.Test_measured_corrected;
measuredLabel.Text = Strings.Measured; measuredLabel.Text = Strings.Measured;
correctedLabel.Text = Strings.Corrected; correctedLabel.Text = Strings.Corrected;