Back up Configuration/Results added to menu, Import DB added to DatabaseSettingsDlg, ver. 2.18.1275
This commit is contained in:
parent
59f1de4370
commit
0580e04be4
@ -82,5 +82,53 @@ namespace Config
|
||||
else return "F5";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Extract and return a database name from a MySQL connection string.
|
||||
/// </summary>
|
||||
public static string GetDBName(string connectionString)
|
||||
{
|
||||
return GetFromConnectionString(connectionString, new string[] { "DATABASE=" });
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Extract and return a username from a MySQL connection string
|
||||
/// </summary>
|
||||
public static string GetDBUser(string connectionString)
|
||||
{
|
||||
return GetFromConnectionString(connectionString, new string[] { "USER=", "UID=" });
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Extract and return a password from a MySQL connection string
|
||||
/// </summary>
|
||||
public static string GetDBPassword(string connectionString)
|
||||
{
|
||||
return GetFromConnectionString(connectionString, new string[] { "PASSWORD=" });
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Extract and return an element of a MySQL connection string
|
||||
/// (a host, a database, a user name or a password).
|
||||
/// Return an empty string on any error.
|
||||
/// </summary>
|
||||
public static string GetFromConnectionString(string connectionString, string[] patterns)
|
||||
{
|
||||
foreach (var pattern in patterns)
|
||||
{
|
||||
int startIx = connectionString.IndexOf(pattern);
|
||||
if (startIx >= 0)
|
||||
{
|
||||
/// pattern found, extract the subsequent element
|
||||
startIx += pattern.Length;
|
||||
int endIx = connectionString.IndexOf(';', startIx);
|
||||
return (endIx > 0) ? connectionString.Substring(startIx, endIx - startIx) : string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
/// pattern NOT found
|
||||
return string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
47
TBF/Forms/DatabaseSettingsDlg.Designer.cs
generated
47
TBF/Forms/DatabaseSettingsDlg.Designer.cs
generated
@ -49,25 +49,26 @@ namespace TBF.Forms
|
||||
this.testConnResultsDbBtn = new System.Windows.Forms.Button();
|
||||
this.createConfigDbBtn = new System.Windows.Forms.Button();
|
||||
this.createResultsDbBtn = new System.Windows.Forms.Button();
|
||||
this.createUsersDbBtn = new System.Windows.Forms.Button();
|
||||
this.testConnUsersDbBtn = new System.Windows.Forms.Button();
|
||||
this.usersDbTypeComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.usersLabel = new System.Windows.Forms.Label();
|
||||
this.usersDbConnectionStringTextBox = new System.Windows.Forms.TextBox();
|
||||
this.importResultsDbBtn = new System.Windows.Forms.Button();
|
||||
this.importConfigDbBtn = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// okButton
|
||||
//
|
||||
this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
resources.ApplyResources(this.okButton, "okButton");
|
||||
this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
this.okButton.Name = "okButton";
|
||||
this.okButton.UseVisualStyleBackColor = true;
|
||||
this.okButton.Click += new System.EventHandler(this.okButton_Click);
|
||||
//
|
||||
// cancelButton
|
||||
//
|
||||
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
resources.ApplyResources(this.cancelButton, "cancelButton");
|
||||
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.cancelButton.Name = "cancelButton";
|
||||
this.cancelButton.UseVisualStyleBackColor = true;
|
||||
this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
|
||||
@ -132,48 +133,40 @@ namespace TBF.Forms
|
||||
//
|
||||
// testConnConfigDbBtn
|
||||
//
|
||||
this.testConnConfigDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
resources.ApplyResources(this.testConnConfigDbBtn, "testConnConfigDbBtn");
|
||||
this.testConnConfigDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.testConnConfigDbBtn.Name = "testConnConfigDbBtn";
|
||||
this.testConnConfigDbBtn.UseVisualStyleBackColor = true;
|
||||
this.testConnConfigDbBtn.Click += new System.EventHandler(this.testConnConfigDbBtn_Click);
|
||||
//
|
||||
// testConnResultsDbBtn
|
||||
//
|
||||
this.testConnResultsDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
resources.ApplyResources(this.testConnResultsDbBtn, "testConnResultsDbBtn");
|
||||
this.testConnResultsDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.testConnResultsDbBtn.Name = "testConnResultsDbBtn";
|
||||
this.testConnResultsDbBtn.UseVisualStyleBackColor = true;
|
||||
this.testConnResultsDbBtn.Click += new System.EventHandler(this.testConnResultsDbBtn_Click);
|
||||
//
|
||||
// createConfigDbBtn
|
||||
//
|
||||
this.createConfigDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
resources.ApplyResources(this.createConfigDbBtn, "createConfigDbBtn");
|
||||
this.createConfigDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.createConfigDbBtn.Name = "createConfigDbBtn";
|
||||
this.createConfigDbBtn.UseVisualStyleBackColor = true;
|
||||
this.createConfigDbBtn.Click += new System.EventHandler(this.createConfigDbBtn_Click);
|
||||
//
|
||||
// createResultsDbBtn
|
||||
//
|
||||
this.createResultsDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
resources.ApplyResources(this.createResultsDbBtn, "createResultsDbBtn");
|
||||
this.createResultsDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.createResultsDbBtn.Name = "createResultsDbBtn";
|
||||
this.createResultsDbBtn.UseVisualStyleBackColor = true;
|
||||
this.createResultsDbBtn.Click += new System.EventHandler(this.createResultsDbBtn_Click);
|
||||
//
|
||||
// createUsersDbBtn
|
||||
//
|
||||
this.createUsersDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
resources.ApplyResources(this.createUsersDbBtn, "createUsersDbBtn");
|
||||
this.createUsersDbBtn.Name = "createUsersDbBtn";
|
||||
this.createUsersDbBtn.UseVisualStyleBackColor = true;
|
||||
this.createUsersDbBtn.Click += new System.EventHandler(this.createUsersDbBtn_Click);
|
||||
//
|
||||
// testConnUsersDbBtn
|
||||
//
|
||||
this.testConnUsersDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
resources.ApplyResources(this.testConnUsersDbBtn, "testConnUsersDbBtn");
|
||||
this.testConnUsersDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.testConnUsersDbBtn.Name = "testConnUsersDbBtn";
|
||||
this.testConnUsersDbBtn.UseVisualStyleBackColor = true;
|
||||
this.testConnUsersDbBtn.Click += new System.EventHandler(this.testConnUsersDbBtn_Click);
|
||||
@ -194,11 +187,28 @@ namespace TBF.Forms
|
||||
resources.ApplyResources(this.usersDbConnectionStringTextBox, "usersDbConnectionStringTextBox");
|
||||
this.usersDbConnectionStringTextBox.Name = "usersDbConnectionStringTextBox";
|
||||
//
|
||||
// importResultsDbBtn
|
||||
//
|
||||
resources.ApplyResources(this.importResultsDbBtn, "importResultsDbBtn");
|
||||
this.importResultsDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.importResultsDbBtn.Name = "importResultsDbBtn";
|
||||
this.importResultsDbBtn.UseVisualStyleBackColor = true;
|
||||
this.importResultsDbBtn.Click += new System.EventHandler(this.importResultsDbBtn_Click);
|
||||
//
|
||||
// importConfigDbBtn
|
||||
//
|
||||
resources.ApplyResources(this.importConfigDbBtn, "importConfigDbBtn");
|
||||
this.importConfigDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.importConfigDbBtn.Name = "importConfigDbBtn";
|
||||
this.importConfigDbBtn.UseVisualStyleBackColor = true;
|
||||
this.importConfigDbBtn.Click += new System.EventHandler(this.importConfigDbBtn_Click);
|
||||
//
|
||||
// DatabaseSettingsDlg
|
||||
//
|
||||
resources.ApplyResources(this, "$this");
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.createUsersDbBtn);
|
||||
this.Controls.Add(this.importResultsDbBtn);
|
||||
this.Controls.Add(this.importConfigDbBtn);
|
||||
this.Controls.Add(this.testConnUsersDbBtn);
|
||||
this.Controls.Add(this.usersDbTypeComboBox);
|
||||
this.Controls.Add(this.usersLabel);
|
||||
@ -249,10 +259,11 @@ namespace TBF.Forms
|
||||
private System.Windows.Forms.Button testConnResultsDbBtn;
|
||||
private System.Windows.Forms.Button createConfigDbBtn;
|
||||
private System.Windows.Forms.Button createResultsDbBtn;
|
||||
private System.Windows.Forms.Button createUsersDbBtn;
|
||||
private System.Windows.Forms.Button testConnUsersDbBtn;
|
||||
private System.Windows.Forms.ComboBox usersDbTypeComboBox;
|
||||
private System.Windows.Forms.Label usersLabel;
|
||||
private System.Windows.Forms.TextBox usersDbConnectionStringTextBox;
|
||||
private System.Windows.Forms.Button importResultsDbBtn;
|
||||
private System.Windows.Forms.Button importConfigDbBtn;
|
||||
}
|
||||
}
|
||||
@ -1,8 +1,12 @@
|
||||
///
|
||||
/// Copyright (c) 2013-2016 Sensus Metering Systems
|
||||
/// Copyright (c) 2013-2019 Sensus Metering Systems
|
||||
///
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Diagnostics;
|
||||
using log4net;
|
||||
using TBF.Resources;
|
||||
|
||||
namespace TBF.Forms
|
||||
@ -12,6 +16,8 @@ namespace TBF.Forms
|
||||
/// </summary>
|
||||
public partial class DatabaseSettingsDlg : Form
|
||||
{
|
||||
static readonly ILog log = LogManager.GetLogger(typeof(DatabaseSettingsDlg));
|
||||
|
||||
// Reference to bench DB settins (not a local copy)
|
||||
Config.DatabaseSettings bench;
|
||||
|
||||
@ -44,7 +50,6 @@ namespace TBF.Forms
|
||||
|
||||
createConfigDbBtn.Text = Strings.Create_DB;
|
||||
createResultsDbBtn.Text = Strings.Create_DB;
|
||||
createUsersDbBtn.Text = Strings.Create_DB;
|
||||
|
||||
okButton.Text = Strings.OkBtnText;
|
||||
cancelButton.Text = Strings.CancelBtnText;
|
||||
@ -130,70 +135,61 @@ namespace TBF.Forms
|
||||
Close();
|
||||
}
|
||||
|
||||
|
||||
private void testConnConfigDbBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void testConnResultsDbBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
private void testConnUsersDbBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void createConfigDbBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
/// Update database connection strings
|
||||
if (!UpdateBenchFromUIControls()) return;
|
||||
|
||||
if (DialogResult.OK == MessageBox.Show(Strings.DB_will_be_overwritten + Environment.NewLine +
|
||||
Strings.Do_you_want_to_proceed, Strings.Warning,
|
||||
MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation))
|
||||
try
|
||||
{
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
Config.FluentCommon.CreateEmptyConfigDB(bench.ProceduresDBSettings.DbType, bench.ProceduresDBSettings.ConnectionString);
|
||||
MessageBox.Show(Strings.DB_was_successfully_created, Strings.Notification);
|
||||
Cursor.Current = Cursors.Default;
|
||||
DialogResult = DialogResult.None;
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
Cursor.Current = Cursors.Default;
|
||||
MessageBox.Show(Strings.Error_while_creating_DB_Reason + exception.Message, Strings.Error);
|
||||
try
|
||||
{
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
Config.FluentCommon.CreateEmptyConfigDB(bench.ProceduresDBSettings.DbType, bench.ProceduresDBSettings.ConnectionString);
|
||||
MessageBox.Show(Strings.DB_was_successfully_created, Strings.Notification);
|
||||
Cursor.Current = Cursors.Default;
|
||||
DialogResult = DialogResult.None;
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
Cursor.Current = Cursors.Default;
|
||||
MessageBox.Show(Strings.Error_while_creating_DB_Reason + exception.Message, Strings.Error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void createResultsDbBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
/// Update database connection strings
|
||||
if (!UpdateBenchFromUIControls()) return;
|
||||
|
||||
if (DialogResult.OK == MessageBox.Show(Strings.DB_will_be_overwritten + Environment.NewLine +
|
||||
Strings.Do_you_want_to_proceed, Strings.Warning,
|
||||
MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation))
|
||||
try
|
||||
{
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
Results.DB.DbType = bench.WaterMetersDBSettings.DbType;
|
||||
Results.DB.ConnectionString = bench.WaterMetersDBSettings.ConnectionString;
|
||||
Results.DB.CreateEmptyDB();
|
||||
MessageBox.Show(Strings.DB_was_successfully_created, Strings.Notification);
|
||||
Cursor.Current = Cursors.Default;
|
||||
DialogResult = DialogResult.None;
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
Cursor.Current = Cursors.Default;
|
||||
string msg = Strings.Error_while_creating_DB_Reason + Environment.NewLine + exception.Message;
|
||||
if (exception.InnerException != null)
|
||||
{
|
||||
msg += Environment.NewLine + exception.InnerException.Message;
|
||||
}
|
||||
MessageBox.Show(msg, Strings.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
|
||||
private void createUsersDbBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!UpdateBenchFromUIControls()) return;
|
||||
|
||||
if (DialogResult.OK == MessageBox.Show(Strings.DB_will_be_overwritten + Environment.NewLine +
|
||||
Strings.Do_you_want_to_proceed, Strings.Warning,
|
||||
MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation))
|
||||
try
|
||||
{
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
Users.DB.DbType = bench.UsersDBSettings.DbType;
|
||||
Users.DB.ConnectionString = bench.UsersDBSettings.ConnectionString;
|
||||
Users.DB.CreateEmptyDB();
|
||||
Results.DB.DbType = bench.WaterMetersDBSettings.DbType;
|
||||
Results.DB.ConnectionString = bench.WaterMetersDBSettings.ConnectionString;
|
||||
Results.DB.CreateEmptyDB();
|
||||
MessageBox.Show(Strings.DB_was_successfully_created, Strings.Notification);
|
||||
Cursor.Current = Cursors.Default;
|
||||
DialogResult = DialogResult.None;
|
||||
@ -208,19 +204,159 @@ namespace TBF.Forms
|
||||
}
|
||||
MessageBox.Show(msg, Strings.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void testConnConfigDbBtn_Click(object sender, EventArgs e)
|
||||
//private void createUsersDbBtn_Click(object sender, EventArgs e)
|
||||
//{
|
||||
// /// Update database connection strings
|
||||
// if (!UpdateBenchFromUIControls()) return;
|
||||
|
||||
// if (DialogResult.OK == MessageBox.Show(Strings.DB_will_be_overwritten + Environment.NewLine +
|
||||
// Strings.Do_you_want_to_proceed, Strings.Warning,
|
||||
// MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation))
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// Cursor.Current = Cursors.WaitCursor;
|
||||
// Users.DB.DbType = bench.UsersDBSettings.DbType;
|
||||
// Users.DB.ConnectionString = bench.UsersDBSettings.ConnectionString;
|
||||
// Users.DB.CreateEmptyDB();
|
||||
// MessageBox.Show(Strings.DB_was_successfully_created, Strings.Notification);
|
||||
// Cursor.Current = Cursors.Default;
|
||||
// DialogResult = DialogResult.None;
|
||||
// }
|
||||
// catch (Exception exception)
|
||||
// {
|
||||
// Cursor.Current = Cursors.Default;
|
||||
// string msg = Strings.Error_while_creating_DB_Reason + Environment.NewLine + exception.Message;
|
||||
// if (exception.InnerException != null)
|
||||
// {
|
||||
// msg += Environment.NewLine + exception.InnerException.Message;
|
||||
// }
|
||||
// MessageBox.Show(msg, Strings.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Configuration database import (UI)
|
||||
/// </summary>
|
||||
private void importConfigDbBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
/// Update database connection strings
|
||||
if (!UpdateBenchFromUIControls()) return;
|
||||
|
||||
if (MessageBox.Show(Strings.Do_you_want_to_restore_configuration_qm,
|
||||
string.Empty,
|
||||
MessageBoxButtons.YesNo,
|
||||
MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
OpenFileDialog dlg = new OpenFileDialog();
|
||||
dlg.InitialDirectory = string.Format(@"C:\TBF\DbBackups\");
|
||||
if (dlg.ShowDialog() != DialogResult.OK) return;
|
||||
|
||||
DBImportMessageStart("Importing database with configuration");
|
||||
ImportDatabase(Config.Data.CurrentBench.ProceduresDBSettings.ConnectionString, dlg.FileName);
|
||||
DBImportMessageEnd();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void testConnResultsDbBtn_Click(object sender, EventArgs e)
|
||||
/// <summary>
|
||||
/// Results database import (UI)
|
||||
/// </summary>
|
||||
private void importResultsDbBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
/// Update database connection strings
|
||||
if (!UpdateBenchFromUIControls()) return;
|
||||
|
||||
if (MessageBox.Show(Strings.Do_you_want_to_restore_results_qm,
|
||||
string.Empty,
|
||||
MessageBoxButtons.YesNo,
|
||||
MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
OpenFileDialog dlg = new OpenFileDialog();
|
||||
dlg.InitialDirectory = string.Format(@"C:\TBF\DbBackups\");
|
||||
if (dlg.ShowDialog() != DialogResult.OK) return;
|
||||
|
||||
DBImportMessageStart("Importing database with results");
|
||||
ImportDatabase(Config.Data.CurrentBench.WaterMetersDBSettings.ConnectionString, dlg.FileName);
|
||||
DBImportMessageEnd();
|
||||
}
|
||||
}
|
||||
|
||||
private void testConnUsersDbBtn_Click(object sender, EventArgs e)
|
||||
TBF.Forms.ModelessActivityForm form;
|
||||
System.Threading.Thread formThread;
|
||||
///
|
||||
void DBImportMessageStart(string message)
|
||||
{
|
||||
form = new TBF.Forms.ModelessActivityForm()
|
||||
{
|
||||
Message = message,
|
||||
FontFamily = "Arial",
|
||||
FontSize = 24,
|
||||
FontStyle = FontStyle.Regular,
|
||||
BackgroundColor = Color.RoyalBlue,
|
||||
};
|
||||
formThread = new System.Threading.Thread(() => form.ShowDialog());
|
||||
formThread.Start();
|
||||
}
|
||||
///
|
||||
void DBImportMessageEnd()
|
||||
{
|
||||
if (form != null && formThread != null)
|
||||
{
|
||||
form.CloseForm(null, new EventArgs());
|
||||
formThread.Join();
|
||||
}
|
||||
form = null;
|
||||
formThread = null;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Database import (functionality)
|
||||
/// Invokes:
|
||||
/// mysql -u[userName] --default-character-set=utf8 --database [databaseName]
|
||||
/// SOURCE {SQL file name]
|
||||
/// </summary>
|
||||
/// <param name="connectionString">DB connection string</param>
|
||||
/// <param name="outputFileName">Output file name</param>
|
||||
void ImportDatabase(string connectionString, string inputFileName)
|
||||
{
|
||||
string databaseName = Config.Utils.GetDBName(connectionString);
|
||||
string userName = Config.Utils.GetDBUser(connectionString);
|
||||
string password = Config.Utils.GetDBPassword(connectionString); /// TODO: Use password
|
||||
|
||||
try
|
||||
{
|
||||
Process proc = new Process();
|
||||
proc.StartInfo.FileName = @"C:\xampp\mysql\bin\mysql.exe";
|
||||
proc.StartInfo.Arguments = string.Format("--user={0} --default-character-set=utf8 --database={2}", userName, password, databaseName);
|
||||
proc.StartInfo.UseShellExecute = false; /// Must be false to redirect standard input or standard output
|
||||
proc.StartInfo.RedirectStandardOutput = false;
|
||||
proc.StartInfo.RedirectStandardInput = true;
|
||||
proc.StartInfo.CreateNoWindow = false;
|
||||
//proc.StartInfo.Verb = "runas"; /// To run mysql.exe as administrator
|
||||
Debug.WriteLine("Ideme na to.");
|
||||
proc.Start();
|
||||
|
||||
string command = string.Format("SOURCE {0}{1}", inputFileName, Environment.NewLine);
|
||||
proc.StandardInput.Write(command);
|
||||
Debug.Write(command);
|
||||
|
||||
proc.StandardInput.Write(string.Format("exit{0}", Environment.NewLine));
|
||||
Debug.WriteLine("exit");
|
||||
|
||||
proc.WaitForExit();
|
||||
log.ErrorFormat("Database {0} imported from file {1}", databaseName, inputFileName);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
log.FatalFormat("Failed to import database {0} from file {1}: {2}", databaseName, inputFileName, exc.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -117,12 +117,16 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="okButton.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Right</value>
|
||||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="okButton.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>614, 15</value>
|
||||
<value>801, 15</value>
|
||||
</data>
|
||||
<data name="okButton.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>225, 28</value>
|
||||
<value>312, 28</value>
|
||||
</data>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="okButton.TabIndex" type="System.Int32, mscorlib">
|
||||
@ -141,13 +145,16 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>okButton.ZOrder" xml:space="preserve">
|
||||
<value>20</value>
|
||||
<value>21</value>
|
||||
</data>
|
||||
<data name="cancelButton.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Right</value>
|
||||
</data>
|
||||
<data name="cancelButton.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>614, 49</value>
|
||||
<value>801, 49</value>
|
||||
</data>
|
||||
<data name="cancelButton.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>225, 28</value>
|
||||
<value>312, 28</value>
|
||||
</data>
|
||||
<data name="cancelButton.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>13</value>
|
||||
@ -165,7 +172,7 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>cancelButton.ZOrder" xml:space="preserve">
|
||||
<value>21</value>
|
||||
<value>22</value>
|
||||
</data>
|
||||
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
@ -192,7 +199,7 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>label1.ZOrder" xml:space="preserve">
|
||||
<value>19</value>
|
||||
<value>20</value>
|
||||
</data>
|
||||
<data name="benchNameTextBox.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>116, 15</value>
|
||||
@ -213,7 +220,7 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>benchNameTextBox.ZOrder" xml:space="preserve">
|
||||
<value>18</value>
|
||||
<value>19</value>
|
||||
</data>
|
||||
<data name="connectionStringLabel.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
@ -240,13 +247,13 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>connectionStringLabel.ZOrder" xml:space="preserve">
|
||||
<value>17</value>
|
||||
<value>18</value>
|
||||
</data>
|
||||
<data name="configDbConnectionStringTextBox.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>202, 107</value>
|
||||
</data>
|
||||
<data name="configDbConnectionStringTextBox.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>406, 20</value>
|
||||
<value>589, 20</value>
|
||||
</data>
|
||||
<data name="configDbConnectionStringTextBox.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>20</value>
|
||||
@ -261,13 +268,13 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>configDbConnectionStringTextBox.ZOrder" xml:space="preserve">
|
||||
<value>16</value>
|
||||
<value>17</value>
|
||||
</data>
|
||||
<data name="resultsDbConnectionStringTextBox.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>202, 137</value>
|
||||
</data>
|
||||
<data name="resultsDbConnectionStringTextBox.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>406, 20</value>
|
||||
<value>589, 20</value>
|
||||
</data>
|
||||
<data name="resultsDbConnectionStringTextBox.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>22</value>
|
||||
@ -282,7 +289,7 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>resultsDbConnectionStringTextBox.ZOrder" xml:space="preserve">
|
||||
<value>15</value>
|
||||
<value>16</value>
|
||||
</data>
|
||||
<data name="configLabel.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
@ -309,7 +316,7 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>configLabel.ZOrder" xml:space="preserve">
|
||||
<value>14</value>
|
||||
<value>15</value>
|
||||
</data>
|
||||
<data name="resultsLabel.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
@ -336,7 +343,7 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>resultsLabel.ZOrder" xml:space="preserve">
|
||||
<value>13</value>
|
||||
<value>14</value>
|
||||
</data>
|
||||
<data name="realBenchCheckBox.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
@ -363,7 +370,7 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>realBenchCheckBox.ZOrder" xml:space="preserve">
|
||||
<value>12</value>
|
||||
<value>13</value>
|
||||
</data>
|
||||
<data name="dbTypeLabel.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
@ -390,7 +397,7 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>dbTypeLabel.ZOrder" xml:space="preserve">
|
||||
<value>11</value>
|
||||
<value>12</value>
|
||||
</data>
|
||||
<data name="configDbTypeComboBox.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>116, 107</value>
|
||||
@ -411,7 +418,7 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>configDbTypeComboBox.ZOrder" xml:space="preserve">
|
||||
<value>10</value>
|
||||
<value>11</value>
|
||||
</data>
|
||||
<data name="resultsDbTypeComboBox.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>116, 137</value>
|
||||
@ -432,17 +439,19 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>resultsDbTypeComboBox.ZOrder" xml:space="preserve">
|
||||
<value>9</value>
|
||||
<value>10</value>
|
||||
</data>
|
||||
<data name="testConnConfigDbBtn.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Right</value>
|
||||
</data>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="testConnConfigDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="testConnConfigDbBtn.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>614, 105</value>
|
||||
<value>801, 105</value>
|
||||
</data>
|
||||
<data name="testConnConfigDbBtn.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>95, 23</value>
|
||||
<value>100, 23</value>
|
||||
</data>
|
||||
<data name="testConnConfigDbBtn.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>62</value>
|
||||
@ -460,16 +469,19 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>testConnConfigDbBtn.ZOrder" xml:space="preserve">
|
||||
<value>8</value>
|
||||
<value>9</value>
|
||||
</data>
|
||||
<data name="testConnResultsDbBtn.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Right</value>
|
||||
</data>
|
||||
<data name="testConnResultsDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="testConnResultsDbBtn.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>614, 135</value>
|
||||
<value>801, 135</value>
|
||||
</data>
|
||||
<data name="testConnResultsDbBtn.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>95, 23</value>
|
||||
<value>100, 23</value>
|
||||
</data>
|
||||
<data name="testConnResultsDbBtn.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>64</value>
|
||||
@ -487,22 +499,25 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>testConnResultsDbBtn.ZOrder" xml:space="preserve">
|
||||
<value>7</value>
|
||||
<value>8</value>
|
||||
</data>
|
||||
<data name="createConfigDbBtn.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Right</value>
|
||||
</data>
|
||||
<data name="createConfigDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="createConfigDbBtn.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>715, 104</value>
|
||||
<value>907, 104</value>
|
||||
</data>
|
||||
<data name="createConfigDbBtn.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>124, 23</value>
|
||||
<value>100, 23</value>
|
||||
</data>
|
||||
<data name="createConfigDbBtn.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>66</value>
|
||||
</data>
|
||||
<data name="createConfigDbBtn.Text" xml:space="preserve">
|
||||
<value>Create DB</value>
|
||||
<value>Create new DB</value>
|
||||
</data>
|
||||
<data name=">>createConfigDbBtn.Name" xml:space="preserve">
|
||||
<value>createConfigDbBtn</value>
|
||||
@ -514,22 +529,25 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>createConfigDbBtn.ZOrder" xml:space="preserve">
|
||||
<value>6</value>
|
||||
<value>7</value>
|
||||
</data>
|
||||
<data name="createResultsDbBtn.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Right</value>
|
||||
</data>
|
||||
<data name="createResultsDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="createResultsDbBtn.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>715, 134</value>
|
||||
<value>907, 134</value>
|
||||
</data>
|
||||
<data name="createResultsDbBtn.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>124, 23</value>
|
||||
<value>100, 23</value>
|
||||
</data>
|
||||
<data name="createResultsDbBtn.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>68</value>
|
||||
</data>
|
||||
<data name="createResultsDbBtn.Text" xml:space="preserve">
|
||||
<value>Create DB</value>
|
||||
<value>Create new DB</value>
|
||||
</data>
|
||||
<data name=">>createResultsDbBtn.Name" xml:space="preserve">
|
||||
<value>createResultsDbBtn</value>
|
||||
@ -541,43 +559,19 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>createResultsDbBtn.ZOrder" xml:space="preserve">
|
||||
<value>5</value>
|
||||
<value>6</value>
|
||||
</data>
|
||||
<data name="createUsersDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="createUsersDbBtn.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>715, 164</value>
|
||||
</data>
|
||||
<data name="createUsersDbBtn.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>124, 23</value>
|
||||
</data>
|
||||
<data name="createUsersDbBtn.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>73</value>
|
||||
</data>
|
||||
<data name="createUsersDbBtn.Text" xml:space="preserve">
|
||||
<value>Create DB</value>
|
||||
</data>
|
||||
<data name=">>createUsersDbBtn.Name" xml:space="preserve">
|
||||
<value>createUsersDbBtn</value>
|
||||
</data>
|
||||
<data name=">>createUsersDbBtn.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>createUsersDbBtn.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>createUsersDbBtn.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
<data name="testConnUsersDbBtn.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Right</value>
|
||||
</data>
|
||||
<data name="testConnUsersDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="testConnUsersDbBtn.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>614, 165</value>
|
||||
<value>801, 165</value>
|
||||
</data>
|
||||
<data name="testConnUsersDbBtn.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>95, 23</value>
|
||||
<value>100, 23</value>
|
||||
</data>
|
||||
<data name="testConnUsersDbBtn.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>72</value>
|
||||
@ -595,7 +589,7 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>testConnUsersDbBtn.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
<value>2</value>
|
||||
</data>
|
||||
<data name="usersDbTypeComboBox.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>116, 167</value>
|
||||
@ -616,7 +610,7 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>usersDbTypeComboBox.ZOrder" xml:space="preserve">
|
||||
<value>2</value>
|
||||
<value>3</value>
|
||||
</data>
|
||||
<data name="usersLabel.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
@ -646,13 +640,13 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>usersLabel.ZOrder" xml:space="preserve">
|
||||
<value>3</value>
|
||||
<value>4</value>
|
||||
</data>
|
||||
<data name="usersDbConnectionStringTextBox.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>202, 167</value>
|
||||
</data>
|
||||
<data name="usersDbConnectionStringTextBox.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>406, 20</value>
|
||||
<value>589, 20</value>
|
||||
</data>
|
||||
<data name="usersDbConnectionStringTextBox.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>69</value>
|
||||
@ -667,7 +661,67 @@
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>usersDbConnectionStringTextBox.ZOrder" xml:space="preserve">
|
||||
<value>4</value>
|
||||
<value>5</value>
|
||||
</data>
|
||||
<data name="importResultsDbBtn.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Right</value>
|
||||
</data>
|
||||
<data name="importResultsDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="importResultsDbBtn.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>1013, 134</value>
|
||||
</data>
|
||||
<data name="importResultsDbBtn.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>100, 23</value>
|
||||
</data>
|
||||
<data name="importResultsDbBtn.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>75</value>
|
||||
</data>
|
||||
<data name="importResultsDbBtn.Text" xml:space="preserve">
|
||||
<value>Import DB</value>
|
||||
</data>
|
||||
<data name=">>importResultsDbBtn.Name" xml:space="preserve">
|
||||
<value>importResultsDbBtn</value>
|
||||
</data>
|
||||
<data name=">>importResultsDbBtn.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>importResultsDbBtn.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>importResultsDbBtn.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name="importConfigDbBtn.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>Top, Right</value>
|
||||
</data>
|
||||
<data name="importConfigDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
|
||||
<value>NoControl</value>
|
||||
</data>
|
||||
<data name="importConfigDbBtn.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>1013, 104</value>
|
||||
</data>
|
||||
<data name="importConfigDbBtn.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>100, 23</value>
|
||||
</data>
|
||||
<data name="importConfigDbBtn.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>74</value>
|
||||
</data>
|
||||
<data name="importConfigDbBtn.Text" xml:space="preserve">
|
||||
<value>Import DB</value>
|
||||
</data>
|
||||
<data name=">>importConfigDbBtn.Name" xml:space="preserve">
|
||||
<value>importConfigDbBtn</value>
|
||||
</data>
|
||||
<data name=">>importConfigDbBtn.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>importConfigDbBtn.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>importConfigDbBtn.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
@ -676,7 +730,7 @@
|
||||
<value>6, 13</value>
|
||||
</data>
|
||||
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
||||
<value>853, 202</value>
|
||||
<value>1125, 202</value>
|
||||
</data>
|
||||
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
|
||||
<value>CenterParent</value>
|
||||
|
||||
177
TBF/MainWnd.Designer.cs
generated
177
TBF/MainWnd.Designer.cs
generated
@ -89,9 +89,13 @@ namespace TBF
|
||||
this.usersTSMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.localSettingsTSMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.databaseSettingsTSMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.backUpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.backUpConfigurationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.backUpResultsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.passwortToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.upgradeTSMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.iPerlHeadsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.clearCountersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.helpTSMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.aboutTSMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.mainMenuStrip = new System.Windows.Forms.MenuStrip();
|
||||
@ -99,7 +103,6 @@ namespace TBF
|
||||
this.processToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.resultsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.graphsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.clearCountersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
((System.ComponentModel.ISupportInitialize)(this.topVerticalSplitContainer)).BeginInit();
|
||||
this.topVerticalSplitContainer.Panel1.SuspendLayout();
|
||||
this.topVerticalSplitContainer.Panel2.SuspendLayout();
|
||||
@ -146,30 +149,32 @@ namespace TBF
|
||||
//
|
||||
// topVerticalSplitContainer.Panel1
|
||||
//
|
||||
this.topVerticalSplitContainer.Panel1.Controls.Add(this.activityGroupBox);
|
||||
resources.ApplyResources(this.topVerticalSplitContainer.Panel1, "topVerticalSplitContainer.Panel1");
|
||||
this.topVerticalSplitContainer.Panel1.Controls.Add(this.activityGroupBox);
|
||||
//
|
||||
// topVerticalSplitContainer.Panel2
|
||||
//
|
||||
this.topVerticalSplitContainer.Panel2.Controls.Add(this.topHorizontalSplitContainer);
|
||||
resources.ApplyResources(this.topVerticalSplitContainer.Panel2, "topVerticalSplitContainer.Panel2");
|
||||
this.topVerticalSplitContainer.Panel2.Controls.Add(this.topHorizontalSplitContainer);
|
||||
//
|
||||
// activityGroupBox
|
||||
//
|
||||
resources.ApplyResources(this.activityGroupBox, "activityGroupBox");
|
||||
this.activityGroupBox.Controls.Add(this.messageLabel);
|
||||
this.activityGroupBox.Controls.Add(this.activityLabel);
|
||||
resources.ApplyResources(this.activityGroupBox, "activityGroupBox");
|
||||
this.activityGroupBox.Name = "activityGroupBox";
|
||||
this.activityGroupBox.TabStop = false;
|
||||
//
|
||||
// messageLabel
|
||||
//
|
||||
resources.ApplyResources(this.messageLabel, "messageLabel");
|
||||
this.messageLabel.ImageKey = global::TBF.Resources.Strings.String1;
|
||||
this.messageLabel.Name = "messageLabel";
|
||||
//
|
||||
// activityLabel
|
||||
//
|
||||
resources.ApplyResources(this.activityLabel, "activityLabel");
|
||||
this.activityLabel.ImageKey = global::TBF.Resources.Strings.String1;
|
||||
this.activityLabel.Name = "activityLabel";
|
||||
//
|
||||
// topHorizontalSplitContainer
|
||||
@ -180,10 +185,12 @@ namespace TBF
|
||||
//
|
||||
// topHorizontalSplitContainer.Panel1
|
||||
//
|
||||
resources.ApplyResources(this.topHorizontalSplitContainer.Panel1, "topHorizontalSplitContainer.Panel1");
|
||||
this.topHorizontalSplitContainer.Panel1.Controls.Add(this.splitContainer1);
|
||||
//
|
||||
// topHorizontalSplitContainer.Panel2
|
||||
//
|
||||
resources.ApplyResources(this.topHorizontalSplitContainer.Panel2, "topHorizontalSplitContainer.Panel2");
|
||||
this.topHorizontalSplitContainer.Panel2.Controls.Add(this.descriptionGroupBox);
|
||||
//
|
||||
// splitContainer1
|
||||
@ -194,16 +201,18 @@ namespace TBF
|
||||
//
|
||||
// splitContainer1.Panel1
|
||||
//
|
||||
resources.ApplyResources(this.splitContainer1.Panel1, "splitContainer1.Panel1");
|
||||
this.splitContainer1.Panel1.Controls.Add(this.procedureGroupBox);
|
||||
//
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
resources.ApplyResources(this.splitContainer1.Panel2, "splitContainer1.Panel2");
|
||||
this.splitContainer1.Panel2.Controls.Add(this.progressGroupBox);
|
||||
//
|
||||
// procedureGroupBox
|
||||
//
|
||||
this.procedureGroupBox.Controls.Add(this.procedureComboBox);
|
||||
resources.ApplyResources(this.procedureGroupBox, "procedureGroupBox");
|
||||
this.procedureGroupBox.Controls.Add(this.procedureComboBox);
|
||||
this.procedureGroupBox.Name = "procedureGroupBox";
|
||||
this.procedureGroupBox.TabStop = false;
|
||||
//
|
||||
@ -216,8 +225,8 @@ namespace TBF
|
||||
//
|
||||
// progressGroupBox
|
||||
//
|
||||
this.progressGroupBox.Controls.Add(this.mainProgressBar);
|
||||
resources.ApplyResources(this.progressGroupBox, "progressGroupBox");
|
||||
this.progressGroupBox.Controls.Add(this.mainProgressBar);
|
||||
this.progressGroupBox.Name = "progressGroupBox";
|
||||
this.progressGroupBox.TabStop = false;
|
||||
//
|
||||
@ -228,14 +237,15 @@ namespace TBF
|
||||
//
|
||||
// descriptionGroupBox
|
||||
//
|
||||
this.descriptionGroupBox.Controls.Add(this.descriptionLabel);
|
||||
resources.ApplyResources(this.descriptionGroupBox, "descriptionGroupBox");
|
||||
this.descriptionGroupBox.Controls.Add(this.descriptionLabel);
|
||||
this.descriptionGroupBox.Name = "descriptionGroupBox";
|
||||
this.descriptionGroupBox.TabStop = false;
|
||||
//
|
||||
// descriptionLabel
|
||||
//
|
||||
resources.ApplyResources(this.descriptionLabel, "descriptionLabel");
|
||||
this.descriptionLabel.ImageKey = global::TBF.Resources.Strings.String1;
|
||||
this.descriptionLabel.Name = "descriptionLabel";
|
||||
//
|
||||
// verticalSplitContainer
|
||||
@ -246,10 +256,12 @@ namespace TBF
|
||||
//
|
||||
// verticalSplitContainer.Panel1
|
||||
//
|
||||
resources.ApplyResources(this.verticalSplitContainer.Panel1, "verticalSplitContainer.Panel1");
|
||||
this.verticalSplitContainer.Panel1.Controls.Add(this.horizontalSplitContainer);
|
||||
//
|
||||
// verticalSplitContainer.Panel2
|
||||
//
|
||||
resources.ApplyResources(this.verticalSplitContainer.Panel2, "verticalSplitContainer.Panel2");
|
||||
this.verticalSplitContainer.Panel2.Controls.Add(this.rightHorizSplitContainer);
|
||||
//
|
||||
// horizontalSplitContainer
|
||||
@ -260,15 +272,18 @@ namespace TBF
|
||||
//
|
||||
// horizontalSplitContainer.Panel1
|
||||
//
|
||||
resources.ApplyResources(this.horizontalSplitContainer.Panel1, "horizontalSplitContainer.Panel1");
|
||||
this.horizontalSplitContainer.Panel1.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.horizontalSplitContainer.Panel1.Controls.Add(this.topVerticalSplitContainer);
|
||||
//
|
||||
// horizontalSplitContainer.Panel2
|
||||
//
|
||||
resources.ApplyResources(this.horizontalSplitContainer.Panel2, "horizontalSplitContainer.Panel2");
|
||||
this.horizontalSplitContainer.Panel2.Controls.Add(this.mainTabControl);
|
||||
//
|
||||
// mainTabControl
|
||||
//
|
||||
resources.ApplyResources(this.mainTabControl, "mainTabControl");
|
||||
this.mainTabControl.Controls.Add(this.homeTabPage);
|
||||
this.mainTabControl.Controls.Add(this.processTabPage);
|
||||
this.mainTabControl.Controls.Add(this.insertTabPage);
|
||||
@ -276,93 +291,106 @@ namespace TBF
|
||||
this.mainTabControl.Controls.Add(this.graphsTabPage);
|
||||
this.mainTabControl.Controls.Add(this.logsTabPage);
|
||||
this.mainTabControl.Controls.Add(this.picturesTabPage);
|
||||
resources.ApplyResources(this.mainTabControl, "mainTabControl");
|
||||
this.mainTabControl.Name = "mainTabControl";
|
||||
this.mainTabControl.SelectedIndex = 0;
|
||||
this.mainTabControl.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
|
||||
//
|
||||
// homeTabPage
|
||||
//
|
||||
resources.ApplyResources(this.homeTabPage, "homeTabPage");
|
||||
this.homeTabPage.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.homeTabPage.Controls.Add(this.ctrlBrdComponent);
|
||||
resources.ApplyResources(this.homeTabPage, "homeTabPage");
|
||||
this.homeTabPage.ImageKey = global::TBF.Resources.Strings.String1;
|
||||
this.homeTabPage.Name = "homeTabPage";
|
||||
this.homeTabPage.ToolTipText = global::TBF.Resources.Strings.String1;
|
||||
//
|
||||
// ctrlBrdComponent
|
||||
//
|
||||
this.ctrlBrdComponent.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
resources.ApplyResources(this.ctrlBrdComponent, "ctrlBrdComponent");
|
||||
this.ctrlBrdComponent.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
|
||||
this.ctrlBrdComponent.Name = "ctrlBrdComponent";
|
||||
//
|
||||
// processTabPage
|
||||
//
|
||||
this.processTabPage.Controls.Add(this.processTabPageCtrl);
|
||||
resources.ApplyResources(this.processTabPage, "processTabPage");
|
||||
this.processTabPage.Controls.Add(this.processTabPageCtrl);
|
||||
this.processTabPage.ImageKey = global::TBF.Resources.Strings.String1;
|
||||
this.processTabPage.Name = "processTabPage";
|
||||
this.processTabPage.ToolTipText = global::TBF.Resources.Strings.String1;
|
||||
this.processTabPage.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// processTabPageCtrl
|
||||
//
|
||||
this.processTabPageCtrl.BackColor = System.Drawing.SystemColors.Control;
|
||||
resources.ApplyResources(this.processTabPageCtrl, "processTabPageCtrl");
|
||||
this.processTabPageCtrl.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.processTabPageCtrl.Name = "processTabPageCtrl";
|
||||
//
|
||||
// insertTabPage
|
||||
//
|
||||
this.insertTabPage.BackColor = System.Drawing.Color.Silver;
|
||||
resources.ApplyResources(this.insertTabPage, "insertTabPage");
|
||||
this.insertTabPage.BackColor = System.Drawing.Color.Silver;
|
||||
this.insertTabPage.ImageKey = global::TBF.Resources.Strings.String1;
|
||||
this.insertTabPage.Name = "insertTabPage";
|
||||
this.insertTabPage.ToolTipText = global::TBF.Resources.Strings.String1;
|
||||
//
|
||||
// resultsTabPage
|
||||
//
|
||||
this.resultsTabPage.Controls.Add(this.resultsTabPageCtrl);
|
||||
resources.ApplyResources(this.resultsTabPage, "resultsTabPage");
|
||||
this.resultsTabPage.Controls.Add(this.resultsTabPageCtrl);
|
||||
this.resultsTabPage.ImageKey = global::TBF.Resources.Strings.String1;
|
||||
this.resultsTabPage.Name = "resultsTabPage";
|
||||
this.resultsTabPage.ToolTipText = global::TBF.Resources.Strings.String1;
|
||||
this.resultsTabPage.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// resultsTabPageCtrl
|
||||
//
|
||||
this.resultsTabPageCtrl.BackColor = System.Drawing.SystemColors.Control;
|
||||
resources.ApplyResources(this.resultsTabPageCtrl, "resultsTabPageCtrl");
|
||||
this.resultsTabPageCtrl.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.resultsTabPageCtrl.Name = "resultsTabPageCtrl";
|
||||
//
|
||||
// graphsTabPage
|
||||
//
|
||||
this.graphsTabPage.Controls.Add(this.graphsTabPageCtrl);
|
||||
resources.ApplyResources(this.graphsTabPage, "graphsTabPage");
|
||||
this.graphsTabPage.Controls.Add(this.graphsTabPageCtrl);
|
||||
this.graphsTabPage.ImageKey = global::TBF.Resources.Strings.String1;
|
||||
this.graphsTabPage.Name = "graphsTabPage";
|
||||
this.graphsTabPage.ToolTipText = global::TBF.Resources.Strings.String1;
|
||||
this.graphsTabPage.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// graphsTabPageCtrl
|
||||
//
|
||||
this.graphsTabPageCtrl.BackColor = System.Drawing.Color.Silver;
|
||||
resources.ApplyResources(this.graphsTabPageCtrl, "graphsTabPageCtrl");
|
||||
this.graphsTabPageCtrl.BackColor = System.Drawing.Color.Silver;
|
||||
this.graphsTabPageCtrl.Name = "graphsTabPageCtrl";
|
||||
//
|
||||
// logsTabPage
|
||||
//
|
||||
this.logsTabPage.Controls.Add(this.logsTabPageCtrl);
|
||||
resources.ApplyResources(this.logsTabPage, "logsTabPage");
|
||||
this.logsTabPage.Controls.Add(this.logsTabPageCtrl);
|
||||
this.logsTabPage.ImageKey = global::TBF.Resources.Strings.String1;
|
||||
this.logsTabPage.Name = "logsTabPage";
|
||||
this.logsTabPage.ToolTipText = global::TBF.Resources.Strings.String1;
|
||||
this.logsTabPage.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// logsTabPageCtrl
|
||||
//
|
||||
this.logsTabPageCtrl.BackColor = System.Drawing.SystemColors.Control;
|
||||
resources.ApplyResources(this.logsTabPageCtrl, "logsTabPageCtrl");
|
||||
this.logsTabPageCtrl.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.logsTabPageCtrl.Name = "logsTabPageCtrl";
|
||||
//
|
||||
// picturesTabPage
|
||||
//
|
||||
this.picturesTabPage.Controls.Add(this.picturesTabPageCtrl);
|
||||
resources.ApplyResources(this.picturesTabPage, "picturesTabPage");
|
||||
this.picturesTabPage.Controls.Add(this.picturesTabPageCtrl);
|
||||
this.picturesTabPage.ImageKey = global::TBF.Resources.Strings.String1;
|
||||
this.picturesTabPage.Name = "picturesTabPage";
|
||||
this.picturesTabPage.ToolTipText = global::TBF.Resources.Strings.String1;
|
||||
this.picturesTabPage.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// picturesTabPageCtrl
|
||||
//
|
||||
this.picturesTabPageCtrl.BackColor = System.Drawing.Color.Silver;
|
||||
resources.ApplyResources(this.picturesTabPageCtrl, "picturesTabPageCtrl");
|
||||
this.picturesTabPageCtrl.BackColor = System.Drawing.Color.Silver;
|
||||
this.picturesTabPageCtrl.Name = "picturesTabPageCtrl";
|
||||
//
|
||||
// rightHorizSplitContainer
|
||||
@ -373,8 +401,13 @@ namespace TBF
|
||||
//
|
||||
// rightHorizSplitContainer.Panel1
|
||||
//
|
||||
resources.ApplyResources(this.rightHorizSplitContainer.Panel1, "rightHorizSplitContainer.Panel1");
|
||||
this.rightHorizSplitContainer.Panel1.Controls.Add(this.progressFlowLayoutPanel);
|
||||
//
|
||||
// rightHorizSplitContainer.Panel2
|
||||
//
|
||||
resources.ApplyResources(this.rightHorizSplitContainer.Panel2, "rightHorizSplitContainer.Panel2");
|
||||
//
|
||||
// progressFlowLayoutPanel
|
||||
//
|
||||
resources.ApplyResources(this.progressFlowLayoutPanel, "progressFlowLayoutPanel");
|
||||
@ -383,50 +416,55 @@ namespace TBF
|
||||
//
|
||||
// measurementTabPage
|
||||
//
|
||||
this.measurementTabPage.Controls.Add(this.MeasurementTabPageCtrl);
|
||||
resources.ApplyResources(this.measurementTabPage, "measurementTabPage");
|
||||
this.measurementTabPage.Controls.Add(this.MeasurementTabPageCtrl);
|
||||
this.measurementTabPage.ImageKey = global::TBF.Resources.Strings.String1;
|
||||
this.measurementTabPage.Name = "measurementTabPage";
|
||||
this.measurementTabPage.ToolTipText = global::TBF.Resources.Strings.String1;
|
||||
this.measurementTabPage.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// MeasurementTabPageCtrl
|
||||
//
|
||||
this.MeasurementTabPageCtrl.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(180)))), ((int)(((byte)(200)))));
|
||||
resources.ApplyResources(this.MeasurementTabPageCtrl, "MeasurementTabPageCtrl");
|
||||
this.MeasurementTabPageCtrl.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(180)))), ((int)(((byte)(200)))));
|
||||
this.MeasurementTabPageCtrl.Name = "MeasurementTabPageCtrl";
|
||||
//
|
||||
// statusStrip1
|
||||
//
|
||||
resources.ApplyResources(this.statusStrip1, "statusStrip1");
|
||||
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.userInfoStatusLabel,
|
||||
this.statusPStatusLabel,
|
||||
this.routeStatusLabel,
|
||||
this.activityStatusLabel});
|
||||
resources.ApplyResources(this.statusStrip1, "statusStrip1");
|
||||
this.statusStrip1.Name = "statusStrip1";
|
||||
this.statusStrip1.DoubleClick += new System.EventHandler(this.statusStrip1_DoubleClick);
|
||||
//
|
||||
// userInfoStatusLabel
|
||||
//
|
||||
this.userInfoStatusLabel.Name = "userInfoStatusLabel";
|
||||
resources.ApplyResources(this.userInfoStatusLabel, "userInfoStatusLabel");
|
||||
this.userInfoStatusLabel.Name = "userInfoStatusLabel";
|
||||
//
|
||||
// statusPStatusLabel
|
||||
//
|
||||
this.statusPStatusLabel.Name = "statusPStatusLabel";
|
||||
resources.ApplyResources(this.statusPStatusLabel, "statusPStatusLabel");
|
||||
this.statusPStatusLabel.Name = "statusPStatusLabel";
|
||||
this.statusPStatusLabel.Text = global::TBF.Resources.Strings.String1;
|
||||
//
|
||||
// routeStatusLabel
|
||||
//
|
||||
this.routeStatusLabel.Name = "routeStatusLabel";
|
||||
resources.ApplyResources(this.routeStatusLabel, "routeStatusLabel");
|
||||
this.routeStatusLabel.Name = "routeStatusLabel";
|
||||
this.routeStatusLabel.Text = global::TBF.Resources.Strings.String1;
|
||||
//
|
||||
// activityStatusLabel
|
||||
//
|
||||
this.activityStatusLabel.Name = "activityStatusLabel";
|
||||
resources.ApplyResources(this.activityStatusLabel, "activityStatusLabel");
|
||||
this.activityStatusLabel.Name = "activityStatusLabel";
|
||||
//
|
||||
// benchTSMenuItem
|
||||
//
|
||||
resources.ApplyResources(this.benchTSMenuItem, "benchTSMenuItem");
|
||||
this.benchTSMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.benchComponentsTSMenuItem,
|
||||
this.benchPathsTSMenuItem,
|
||||
@ -435,123 +473,150 @@ namespace TBF
|
||||
this.toolStripSeparator1,
|
||||
this.exitToolStripMenuItem});
|
||||
this.benchTSMenuItem.Name = "benchTSMenuItem";
|
||||
resources.ApplyResources(this.benchTSMenuItem, "benchTSMenuItem");
|
||||
//
|
||||
// benchComponentsTSMenuItem
|
||||
//
|
||||
this.benchComponentsTSMenuItem.Name = "benchComponentsTSMenuItem";
|
||||
resources.ApplyResources(this.benchComponentsTSMenuItem, "benchComponentsTSMenuItem");
|
||||
this.benchComponentsTSMenuItem.Name = "benchComponentsTSMenuItem";
|
||||
this.benchComponentsTSMenuItem.Click += new System.EventHandler(this.benchComponentsTSMItem_Click);
|
||||
//
|
||||
// benchPathsTSMenuItem
|
||||
//
|
||||
this.benchPathsTSMenuItem.Name = "benchPathsTSMenuItem";
|
||||
resources.ApplyResources(this.benchPathsTSMenuItem, "benchPathsTSMenuItem");
|
||||
this.benchPathsTSMenuItem.Name = "benchPathsTSMenuItem";
|
||||
this.benchPathsTSMenuItem.Click += new System.EventHandler(this.benchPathsTSMItem_Click);
|
||||
//
|
||||
// benchTransitionsToolStripMenuItem
|
||||
//
|
||||
this.benchTransitionsToolStripMenuItem.Name = "benchTransitionsToolStripMenuItem";
|
||||
resources.ApplyResources(this.benchTransitionsToolStripMenuItem, "benchTransitionsToolStripMenuItem");
|
||||
this.benchTransitionsToolStripMenuItem.Name = "benchTransitionsToolStripMenuItem";
|
||||
this.benchTransitionsToolStripMenuItem.Click += new System.EventHandler(this.benchTransitionsTSMItem_Click);
|
||||
//
|
||||
// benchMetrologyTSMenuItem
|
||||
//
|
||||
this.benchMetrologyTSMenuItem.Name = "benchMetrologyTSMenuItem";
|
||||
resources.ApplyResources(this.benchMetrologyTSMenuItem, "benchMetrologyTSMenuItem");
|
||||
this.benchMetrologyTSMenuItem.Name = "benchMetrologyTSMenuItem";
|
||||
this.benchMetrologyTSMenuItem.Click += new System.EventHandler(this.benchMetrologyTSMItem_Click);
|
||||
//
|
||||
// toolStripSeparator1
|
||||
//
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
resources.ApplyResources(this.toolStripSeparator1, "toolStripSeparator1");
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
//
|
||||
// exitToolStripMenuItem
|
||||
//
|
||||
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
|
||||
resources.ApplyResources(this.exitToolStripMenuItem, "exitToolStripMenuItem");
|
||||
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
|
||||
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
|
||||
//
|
||||
// homeTSMenuItem
|
||||
//
|
||||
this.homeTSMenuItem.Name = "homeTSMenuItem";
|
||||
resources.ApplyResources(this.homeTSMenuItem, "homeTSMenuItem");
|
||||
this.homeTSMenuItem.Name = "homeTSMenuItem";
|
||||
this.homeTSMenuItem.Click += new System.EventHandler(this.homeTSMenuItem_Click);
|
||||
//
|
||||
// resultsTSMenuItem
|
||||
//
|
||||
this.resultsTSMenuItem.Name = "resultsTSMenuItem";
|
||||
resources.ApplyResources(this.resultsTSMenuItem, "resultsTSMenuItem");
|
||||
this.resultsTSMenuItem.Name = "resultsTSMenuItem";
|
||||
//
|
||||
// logsTSMenuItem
|
||||
//
|
||||
this.logsTSMenuItem.Name = "logsTSMenuItem";
|
||||
resources.ApplyResources(this.logsTSMenuItem, "logsTSMenuItem");
|
||||
this.logsTSMenuItem.Name = "logsTSMenuItem";
|
||||
this.logsTSMenuItem.Click += new System.EventHandler(this.logsTSMenuItem_Click);
|
||||
//
|
||||
// editTSMenuItem
|
||||
//
|
||||
resources.ApplyResources(this.editTSMenuItem, "editTSMenuItem");
|
||||
this.editTSMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.usersTSMenuItem,
|
||||
this.localSettingsTSMenuItem,
|
||||
this.databaseSettingsTSMenuItem,
|
||||
this.backUpToolStripMenuItem,
|
||||
this.passwortToolStripMenuItem,
|
||||
this.upgradeTSMenuItem,
|
||||
this.iPerlHeadsToolStripMenuItem,
|
||||
this.clearCountersToolStripMenuItem});
|
||||
this.editTSMenuItem.Name = "editTSMenuItem";
|
||||
resources.ApplyResources(this.editTSMenuItem, "editTSMenuItem");
|
||||
//
|
||||
// usersTSMenuItem
|
||||
//
|
||||
this.usersTSMenuItem.Name = "usersTSMenuItem";
|
||||
resources.ApplyResources(this.usersTSMenuItem, "usersTSMenuItem");
|
||||
this.usersTSMenuItem.Name = "usersTSMenuItem";
|
||||
this.usersTSMenuItem.Click += new System.EventHandler(this.usersTSMItem_Click);
|
||||
//
|
||||
// localSettingsTSMenuItem
|
||||
//
|
||||
this.localSettingsTSMenuItem.Name = "localSettingsTSMenuItem";
|
||||
resources.ApplyResources(this.localSettingsTSMenuItem, "localSettingsTSMenuItem");
|
||||
this.localSettingsTSMenuItem.Name = "localSettingsTSMenuItem";
|
||||
this.localSettingsTSMenuItem.Click += new System.EventHandler(this.localSettingsTSMItem_Click);
|
||||
//
|
||||
// databaseSettingsTSMenuItem
|
||||
//
|
||||
this.databaseSettingsTSMenuItem.Name = "databaseSettingsTSMenuItem";
|
||||
resources.ApplyResources(this.databaseSettingsTSMenuItem, "databaseSettingsTSMenuItem");
|
||||
this.databaseSettingsTSMenuItem.Name = "databaseSettingsTSMenuItem";
|
||||
this.databaseSettingsTSMenuItem.Click += new System.EventHandler(this.databaseSettingsTSMItem_Click);
|
||||
//
|
||||
// backUpToolStripMenuItem
|
||||
//
|
||||
resources.ApplyResources(this.backUpToolStripMenuItem, "backUpToolStripMenuItem");
|
||||
this.backUpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.backUpConfigurationToolStripMenuItem,
|
||||
this.backUpResultsToolStripMenuItem});
|
||||
this.backUpToolStripMenuItem.Name = "backUpToolStripMenuItem";
|
||||
//
|
||||
// backUpConfigurationToolStripMenuItem
|
||||
//
|
||||
resources.ApplyResources(this.backUpConfigurationToolStripMenuItem, "backUpConfigurationToolStripMenuItem");
|
||||
this.backUpConfigurationToolStripMenuItem.Name = "backUpConfigurationToolStripMenuItem";
|
||||
this.backUpConfigurationToolStripMenuItem.Click += new System.EventHandler(this.backUpConfigurationToolStripMenuItem_Click);
|
||||
//
|
||||
// backUpResultsToolStripMenuItem
|
||||
//
|
||||
resources.ApplyResources(this.backUpResultsToolStripMenuItem, "backUpResultsToolStripMenuItem");
|
||||
this.backUpResultsToolStripMenuItem.Name = "backUpResultsToolStripMenuItem";
|
||||
this.backUpResultsToolStripMenuItem.Click += new System.EventHandler(this.backUpResultsToolStripMenuItem_Click);
|
||||
//
|
||||
// passwortToolStripMenuItem
|
||||
//
|
||||
this.passwortToolStripMenuItem.Name = "passwortToolStripMenuItem";
|
||||
resources.ApplyResources(this.passwortToolStripMenuItem, "passwortToolStripMenuItem");
|
||||
this.passwortToolStripMenuItem.Name = "passwortToolStripMenuItem";
|
||||
//
|
||||
// upgradeTSMenuItem
|
||||
//
|
||||
this.upgradeTSMenuItem.Name = "upgradeTSMenuItem";
|
||||
resources.ApplyResources(this.upgradeTSMenuItem, "upgradeTSMenuItem");
|
||||
this.upgradeTSMenuItem.Name = "upgradeTSMenuItem";
|
||||
this.upgradeTSMenuItem.Click += new System.EventHandler(this.upgradeTSMenuItem_Click);
|
||||
//
|
||||
// iPerlHeadsToolStripMenuItem
|
||||
//
|
||||
this.iPerlHeadsToolStripMenuItem.Name = "iPerlHeadsToolStripMenuItem";
|
||||
resources.ApplyResources(this.iPerlHeadsToolStripMenuItem, "iPerlHeadsToolStripMenuItem");
|
||||
this.iPerlHeadsToolStripMenuItem.Name = "iPerlHeadsToolStripMenuItem";
|
||||
this.iPerlHeadsToolStripMenuItem.Click += new System.EventHandler(this.iPerlHeadsToolStripMenuItem_Click);
|
||||
//
|
||||
// clearCountersToolStripMenuItem
|
||||
//
|
||||
resources.ApplyResources(this.clearCountersToolStripMenuItem, "clearCountersToolStripMenuItem");
|
||||
this.clearCountersToolStripMenuItem.Name = "clearCountersToolStripMenuItem";
|
||||
this.clearCountersToolStripMenuItem.Click += new System.EventHandler(this.clearCountersToolStripMenuItem_Click);
|
||||
//
|
||||
// helpTSMenuItem
|
||||
//
|
||||
resources.ApplyResources(this.helpTSMenuItem, "helpTSMenuItem");
|
||||
this.helpTSMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.aboutTSMenuItem});
|
||||
this.helpTSMenuItem.Name = "helpTSMenuItem";
|
||||
resources.ApplyResources(this.helpTSMenuItem, "helpTSMenuItem");
|
||||
//
|
||||
// aboutTSMenuItem
|
||||
//
|
||||
this.aboutTSMenuItem.Name = "aboutTSMenuItem";
|
||||
resources.ApplyResources(this.aboutTSMenuItem, "aboutTSMenuItem");
|
||||
this.aboutTSMenuItem.Name = "aboutTSMenuItem";
|
||||
this.aboutTSMenuItem.Click += new System.EventHandler(this.aboutTSMItem_Click);
|
||||
//
|
||||
// mainMenuStrip
|
||||
//
|
||||
resources.ApplyResources(this.mainMenuStrip, "mainMenuStrip");
|
||||
this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.benchTSMenuItem,
|
||||
this.proceduresToolStripMenuItem,
|
||||
@ -562,39 +627,32 @@ namespace TBF
|
||||
this.logsTSMenuItem,
|
||||
this.editTSMenuItem,
|
||||
this.helpTSMenuItem});
|
||||
resources.ApplyResources(this.mainMenuStrip, "mainMenuStrip");
|
||||
this.mainMenuStrip.Name = "mainMenuStrip";
|
||||
//
|
||||
// proceduresToolStripMenuItem
|
||||
//
|
||||
this.proceduresToolStripMenuItem.Name = "proceduresToolStripMenuItem";
|
||||
resources.ApplyResources(this.proceduresToolStripMenuItem, "proceduresToolStripMenuItem");
|
||||
this.proceduresToolStripMenuItem.Name = "proceduresToolStripMenuItem";
|
||||
this.proceduresToolStripMenuItem.Click += new System.EventHandler(this.proceduresTSMItem_Click);
|
||||
//
|
||||
// processToolStripMenuItem
|
||||
//
|
||||
this.processToolStripMenuItem.Name = "processToolStripMenuItem";
|
||||
resources.ApplyResources(this.processToolStripMenuItem, "processToolStripMenuItem");
|
||||
this.processToolStripMenuItem.Name = "processToolStripMenuItem";
|
||||
this.processToolStripMenuItem.Click += new System.EventHandler(this.processTSMenuItem_Click);
|
||||
//
|
||||
// resultsToolStripMenuItem
|
||||
//
|
||||
this.resultsToolStripMenuItem.Name = "resultsToolStripMenuItem";
|
||||
resources.ApplyResources(this.resultsToolStripMenuItem, "resultsToolStripMenuItem");
|
||||
this.resultsToolStripMenuItem.Name = "resultsToolStripMenuItem";
|
||||
this.resultsToolStripMenuItem.Click += new System.EventHandler(this.resultsTSMenuItem_Click);
|
||||
//
|
||||
// graphsToolStripMenuItem
|
||||
//
|
||||
this.graphsToolStripMenuItem.Name = "graphsToolStripMenuItem";
|
||||
resources.ApplyResources(this.graphsToolStripMenuItem, "graphsToolStripMenuItem");
|
||||
this.graphsToolStripMenuItem.Name = "graphsToolStripMenuItem";
|
||||
this.graphsToolStripMenuItem.Click += new System.EventHandler(this.graphsToolStripMenuItem_Click);
|
||||
//
|
||||
// clearCountersToolStripMenuItem
|
||||
//
|
||||
this.clearCountersToolStripMenuItem.Name = "clearCountersToolStripMenuItem";
|
||||
resources.ApplyResources(this.clearCountersToolStripMenuItem, "clearCountersToolStripMenuItem");
|
||||
this.clearCountersToolStripMenuItem.Click += new System.EventHandler(this.clearCountersToolStripMenuItem_Click);
|
||||
//
|
||||
// MainWnd
|
||||
//
|
||||
resources.ApplyResources(this, "$this");
|
||||
@ -744,6 +802,9 @@ namespace TBF
|
||||
private Screens.GraphsTabPageCtrl graphsTabPageCtrl;
|
||||
private System.Windows.Forms.ToolStripMenuItem iPerlHeadsToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem clearCountersToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem backUpToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem backUpConfigurationToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem backUpResultsToolStripMenuItem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
116
TBF/MainWnd.cs
116
TBF/MainWnd.cs
@ -10,6 +10,8 @@ using Config.Entities;
|
||||
using TBF.UiBridge;
|
||||
using TBF.Resources;
|
||||
using System.Threading;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
|
||||
namespace TBF
|
||||
{
|
||||
@ -828,5 +830,119 @@ namespace TBF
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Configuration database export (UI)
|
||||
/// </summary>
|
||||
private void backUpConfigurationToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
string connectionString = Config.Data.CurrentBench.ProceduresDBSettings.ConnectionString;
|
||||
|
||||
if (MessageBox.Show(Strings.Do_you_want_to_back_up_configuration_qm,
|
||||
string.Empty,
|
||||
MessageBoxButtons.YesNo,
|
||||
MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
SaveFileDialog dlg = new SaveFileDialog();
|
||||
dlg.InitialDirectory = string.Format(@"C:\TBF\DbBackups\");
|
||||
dlg.FileName = string.Format(@"C:\TBF\DbBackups\{0}-{1:yyMMdd-HHmm}.sql",Config.Utils.GetDBName(connectionString), DateTime.Now);
|
||||
if (dlg.ShowDialog() != DialogResult.OK) return;
|
||||
|
||||
DBExportMessageStart(Strings.Saving_configuration);
|
||||
bool successful = ExportDatabase(connectionString, dlg.FileName);
|
||||
DBExportMessageEnd();
|
||||
|
||||
if (!successful) MessageBox.Show(Strings.Saving_configuration_failed);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Results database export (UI)
|
||||
/// </summary>
|
||||
private void backUpResultsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
string connectionString = Config.Data.CurrentBench.WaterMetersDBSettings.ConnectionString;
|
||||
|
||||
if (MessageBox.Show(Strings.Do_you_want_to_back_up_results_qm,
|
||||
string.Empty,
|
||||
MessageBoxButtons.YesNo,
|
||||
MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
SaveFileDialog dlg = new SaveFileDialog();
|
||||
dlg.InitialDirectory = string.Format(@"C:\TBF\DbBackups\");
|
||||
dlg.FileName = string.Format(@"C:\TBF\DbBackups\{0}-{1:yyMMdd-HHmm}.sql", Config.Utils.GetDBName(connectionString), DateTime.Now);
|
||||
if (dlg.ShowDialog() != DialogResult.OK) return;
|
||||
|
||||
DBExportMessageStart(Strings.Saving_all_results);
|
||||
bool successful = ExportDatabase(connectionString, dlg.FileName);
|
||||
DBExportMessageEnd();
|
||||
|
||||
if (!successful) MessageBox.Show(Strings.Saving_results_failed);
|
||||
}
|
||||
}
|
||||
|
||||
TBF.Forms.ModelessActivityForm form;
|
||||
System.Threading.Thread formThread;
|
||||
///
|
||||
void DBExportMessageStart(string message)
|
||||
{
|
||||
form = new TBF.Forms.ModelessActivityForm()
|
||||
{
|
||||
Message = message,
|
||||
FontFamily = "Arial",
|
||||
FontSize = 24,
|
||||
FontStyle = FontStyle.Regular,
|
||||
BackgroundColor = Color.RoyalBlue,
|
||||
};
|
||||
formThread = new System.Threading.Thread(() => form.ShowDialog());
|
||||
formThread.Start();
|
||||
}
|
||||
///
|
||||
void DBExportMessageEnd()
|
||||
{
|
||||
if (form != null && formThread != null)
|
||||
{
|
||||
form.CloseForm(null, new EventArgs());
|
||||
formThread.Join();
|
||||
}
|
||||
form = null;
|
||||
formThread = null;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Database export (functionality)
|
||||
/// Invokes: mysqldump --user [userName] --default-character-set=utf8 [databaseName] -r [outputFileName]
|
||||
/// </summary>
|
||||
/// <param name="connectionString">DB connection string</param>
|
||||
/// <param name="outputFileName">Output file name</param>
|
||||
bool ExportDatabase(string connectionString, string outputFileName)
|
||||
{
|
||||
string databaseName = Config.Utils.GetDBName(connectionString);
|
||||
string userName = Config.Utils.GetDBUser(connectionString);
|
||||
string password = Config.Utils.GetDBPassword(connectionString); /// TODO: Use password
|
||||
|
||||
try
|
||||
{
|
||||
Process proc = new Process();
|
||||
proc.StartInfo.FileName = @"C:\xampp\mysql\bin\mysqldump";
|
||||
proc.StartInfo.Arguments = string.Format("--user {0} --quick --default-character-set=utf8 {2} -r {3}", userName, password, databaseName, outputFileName);
|
||||
proc.StartInfo.RedirectStandardOutput = true;
|
||||
proc.StartInfo.UseShellExecute = false;
|
||||
proc.StartInfo.CreateNoWindow = true;
|
||||
//proc.StartInfo.Verb = "runas"; /// To run mysqldump.exe as administrator
|
||||
proc.Start();
|
||||
proc.WaitForExit();
|
||||
|
||||
log.ErrorFormat("Database {0} exported into file {1}", databaseName, outputFileName);
|
||||
return true;
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
log.FatalFormat("Failed to export database {0} to file {1}: {2}", databaseName, outputFileName, exc.Message);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -117,119 +117,182 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="benchTSMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>57, 20</value>
|
||||
</data>
|
||||
<data name="$this.Text" xml:space="preserve">
|
||||
<value>Testovací stolice Framework</value>
|
||||
</data>
|
||||
<data name="aboutTSMenuItem.Text" xml:space="preserve">
|
||||
<value>O</value>
|
||||
</data>
|
||||
<data name="activityGroupBox.Text" xml:space="preserve">
|
||||
<value>Proces</value>
|
||||
</data>
|
||||
<data name="procedureGroupBox.Text" xml:space="preserve">
|
||||
<value>Postup</value>
|
||||
</data>
|
||||
<data name="progressGroupBox.Text" xml:space="preserve">
|
||||
<value>Probíhá</value>
|
||||
</data>
|
||||
<data name="homeTabPage.Text" xml:space="preserve">
|
||||
<value>Hydraulika</value>
|
||||
</data>
|
||||
<data name="processTabPage.Text" xml:space="preserve">
|
||||
<value>Proces</value>
|
||||
</data>
|
||||
<data name="insertTabPage.Text" xml:space="preserve">
|
||||
<value>Vložit</value>
|
||||
</data>
|
||||
<data name="resultsTabPage.Text" xml:space="preserve">
|
||||
<value>Výsledky</value>
|
||||
</data>
|
||||
<data name="logsTabPage.Text" xml:space="preserve">
|
||||
<value>Záznamy</value>
|
||||
</data>
|
||||
<data name="picturesTabPage.Text" xml:space="preserve">
|
||||
<value>Obrázky</value>
|
||||
</data>
|
||||
<data name="measurementTabPage.Text" xml:space="preserve">
|
||||
<value>Měření</value>
|
||||
</data>
|
||||
<data name="statusStrip1.Text" xml:space="preserve">
|
||||
<value>Stavový pruh 1</value>
|
||||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="userInfoStatusLabel.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>91, 17</value>
|
||||
</data>
|
||||
<data name="userInfoStatusLabel.Text" xml:space="preserve">
|
||||
<value>Uživatel : admin</value>
|
||||
</data>
|
||||
<data name="activityStatusLabel.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>147, 17</value>
|
||||
</data>
|
||||
<data name="activityStatusLabel.Text" xml:space="preserve">
|
||||
<value>Prosím, spusťte proceduru</value>
|
||||
</data>
|
||||
<data name="benchTSMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>54, 20</value>
|
||||
</data>
|
||||
<data name="benchTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Stolice</value>
|
||||
</data>
|
||||
<data name="benchComponentsTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Komponenty</value>
|
||||
</data>
|
||||
<data name="benchMetrologyTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Metrologie</value>
|
||||
</data>
|
||||
<data name="benchPathsTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Cesty</value>
|
||||
</data>
|
||||
<data name="benchTransitionsToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Přechody</value>
|
||||
</data>
|
||||
<data name="benchTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Stolice</value>
|
||||
</data>
|
||||
<data name="databaseSettingsTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Databáze</value>
|
||||
</data>
|
||||
<data name="editTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Nastavení</value>
|
||||
<data name="benchMetrologyTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Metrologie</value>
|
||||
</data>
|
||||
<data name="exitToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Ukončit</value>
|
||||
</data>
|
||||
<data name="helpTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Pomoc</value>
|
||||
</data>
|
||||
<data name="homeTabPage.Text" xml:space="preserve">
|
||||
<value>Hydraulika</value>
|
||||
</data>
|
||||
<data name="homeTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Domů</value>
|
||||
</data>
|
||||
<data name="insertTabPage.Text" xml:space="preserve">
|
||||
<value>Vložit</value>
|
||||
</data>
|
||||
<data name="localSettingsTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Jazyk</value>
|
||||
</data>
|
||||
<data name="logsTabPage.Text" xml:space="preserve">
|
||||
<value>Záznamy</value>
|
||||
</data>
|
||||
<data name="logsTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Záznamy</value>
|
||||
</data>
|
||||
<data name="mainMenuStrip.Text" xml:space="preserve">
|
||||
<value>Záhlaví hlavního menu</value>
|
||||
</data>
|
||||
<data name="measurementTabPage.Text" xml:space="preserve">
|
||||
<value>Měření</value>
|
||||
</data>
|
||||
<data name="measurementTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Měření</value>
|
||||
</data>
|
||||
<data name="passwortToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Heslo</value>
|
||||
</data>
|
||||
<data name="picturesTabPage.Text" xml:space="preserve">
|
||||
<value>Obrázky</value>
|
||||
</data>
|
||||
<data name="picturesTSMItem.Text" xml:space="preserve">
|
||||
<value>Obrázky</value>
|
||||
</data>
|
||||
<data name="printToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Vytisknout</value>
|
||||
</data>
|
||||
<data name="procedureGroupBox.Text" xml:space="preserve">
|
||||
<value>Postup</value>
|
||||
</data>
|
||||
<data name="proceduresToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Postupy</value>
|
||||
</data>
|
||||
<data name="processTabPage.Text" xml:space="preserve">
|
||||
<value>Proces</value>
|
||||
</data>
|
||||
<data name="processToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Proces</value>
|
||||
</data>
|
||||
<data name="progressGroupBox.Text" xml:space="preserve">
|
||||
<value>Probíhá</value>
|
||||
</data>
|
||||
<data name="resultsTabPage.Text" xml:space="preserve">
|
||||
<value>Výsledky</value>
|
||||
</data>
|
||||
<data name="resultsToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Výsledky</value>
|
||||
</data>
|
||||
<data name="resultsTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Výsledky</value>
|
||||
</data>
|
||||
<data name="statusStrip1.Text" xml:space="preserve">
|
||||
<value>Stavový pruh 1</value>
|
||||
<data name="logsTSMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>67, 20</value>
|
||||
</data>
|
||||
<data name="userInfoStatusLabel.Text" xml:space="preserve">
|
||||
<value>Uživatel : admin</value>
|
||||
<data name="logsTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Záznamy</value>
|
||||
</data>
|
||||
<data name="editTSMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>71, 20</value>
|
||||
</data>
|
||||
<data name="editTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Nastavení</value>
|
||||
</data>
|
||||
<data name="usersTSMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>179, 22</value>
|
||||
</data>
|
||||
<data name="usersTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Uživatelé</value>
|
||||
</data>
|
||||
<data name="localSettingsTSMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>179, 22</value>
|
||||
</data>
|
||||
<data name="localSettingsTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Jazyk</value>
|
||||
</data>
|
||||
<data name="databaseSettingsTSMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>179, 22</value>
|
||||
</data>
|
||||
<data name="databaseSettingsTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Profily</value>
|
||||
</data>
|
||||
<data name="backUpToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>179, 22</value>
|
||||
</data>
|
||||
<data name="backUpToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Zálohovat</value>
|
||||
</data>
|
||||
<data name="backUpConfigurationToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>152, 22</value>
|
||||
</data>
|
||||
<data name="backUpConfigurationToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Konfiguraci</value>
|
||||
</data>
|
||||
<data name="backUpResultsToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>152, 22</value>
|
||||
</data>
|
||||
<data name="backUpResultsToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Výsledky testů</value>
|
||||
</data>
|
||||
<data name="passwortToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>179, 22</value>
|
||||
</data>
|
||||
<data name="passwortToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Heslo</value>
|
||||
</data>
|
||||
<data name="upgradeTSMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>179, 22</value>
|
||||
</data>
|
||||
<data name="iPerlHeadsToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>179, 22</value>
|
||||
</data>
|
||||
<data name="iPerlHeadsToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Hlavice iPerl</value>
|
||||
</data>
|
||||
<data name="clearCountersToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>179, 22</value>
|
||||
</data>
|
||||
<data name="clearCountersToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Vynulovat počítadla</value>
|
||||
</data>
|
||||
<data name="helpTSMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>57, 20</value>
|
||||
</data>
|
||||
<data name="helpTSMenuItem.Text" xml:space="preserve">
|
||||
<value>Pomoc</value>
|
||||
</data>
|
||||
<data name="aboutTSMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>83, 22</value>
|
||||
</data>
|
||||
<data name="aboutTSMenuItem.Text" xml:space="preserve">
|
||||
<value>O</value>
|
||||
</data>
|
||||
<data name="mainMenuStrip.Text" xml:space="preserve">
|
||||
<value>Záhlaví hlavního menu</value>
|
||||
</data>
|
||||
<data name="proceduresToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>62, 20</value>
|
||||
</data>
|
||||
<data name="proceduresToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Postupy</value>
|
||||
</data>
|
||||
<data name="processToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>54, 20</value>
|
||||
</data>
|
||||
<data name="processToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Proces</value>
|
||||
</data>
|
||||
<data name="resultsToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>65, 20</value>
|
||||
</data>
|
||||
<data name="resultsToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Výsledky</value>
|
||||
</data>
|
||||
<data name="$this.Text" xml:space="preserve">
|
||||
<value>Testovací stolice Framework</value>
|
||||
</data>
|
||||
</root>
|
||||
2678
TBF/MainWnd.resx
2678
TBF/MainWnd.resx
File diff suppressed because it is too large
Load Diff
@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("2.18.1274.0")]
|
||||
[assembly: AssemblyFileVersion("2.18.1274.0")]
|
||||
[assembly: AssemblyVersion("2.18.1275.0")]
|
||||
[assembly: AssemblyFileVersion("2.18.1275.0")]
|
||||
|
||||
72
TBF/Resources/Strings.Designer.cs
generated
72
TBF/Resources/Strings.Designer.cs
generated
@ -1212,6 +1212,24 @@ namespace TBF.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Do you want to back up configuration?.
|
||||
/// </summary>
|
||||
internal static string Do_you_want_to_back_up_configuration_qm {
|
||||
get {
|
||||
return ResourceManager.GetString("Do_you_want_to_back_up_configuration_qm", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Do you want to back up results?.
|
||||
/// </summary>
|
||||
internal static string Do_you_want_to_back_up_results_qm {
|
||||
get {
|
||||
return ResourceManager.GetString("Do_you_want_to_back_up_results_qm", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Do you want to copy this value to all cells below this cell?.
|
||||
/// </summary>
|
||||
@ -1248,6 +1266,24 @@ namespace TBF.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Do you want to restore configuration?.
|
||||
/// </summary>
|
||||
internal static string Do_you_want_to_restore_configuration_qm {
|
||||
get {
|
||||
return ResourceManager.GetString("Do_you_want_to_restore_configuration_qm", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Do you want to restore results?.
|
||||
/// </summary>
|
||||
internal static string Do_you_want_to_restore_results_qm {
|
||||
get {
|
||||
return ResourceManager.GetString("Do_you_want_to_restore_results_qm", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Do you want to save changes?.
|
||||
/// </summary>
|
||||
@ -4128,6 +4164,15 @@ namespace TBF.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Saving all results.
|
||||
/// </summary>
|
||||
internal static string Saving_all_results {
|
||||
get {
|
||||
return ResourceManager.GetString("Saving_all_results", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Saving and printing results.
|
||||
/// </summary>
|
||||
@ -4137,6 +4182,24 @@ namespace TBF.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Saving configuration.
|
||||
/// </summary>
|
||||
internal static string Saving_configuration {
|
||||
get {
|
||||
return ResourceManager.GetString("Saving_configuration", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Saving configuration failed.
|
||||
/// </summary>
|
||||
internal static string Saving_configuration_failed {
|
||||
get {
|
||||
return ResourceManager.GetString("Saving_configuration_failed", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Saving results.
|
||||
/// </summary>
|
||||
@ -4146,6 +4209,15 @@ namespace TBF.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Saving results failed.
|
||||
/// </summary>
|
||||
internal static string Saving_results_failed {
|
||||
get {
|
||||
return ResourceManager.GetString("Saving_results_failed", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Scale communication error.
|
||||
/// </summary>
|
||||
|
||||
@ -1443,4 +1443,22 @@
|
||||
<data name="No_water_meter" xml:space="preserve">
|
||||
<value>Žádný vodoměr</value>
|
||||
</data>
|
||||
<data name="Do_you_want_to_back_up_configuration_qm" xml:space="preserve">
|
||||
<value>Chcete zálohovat konfiguraci?</value>
|
||||
</data>
|
||||
<data name="Do_you_want_to_back_up_results_qm" xml:space="preserve">
|
||||
<value>Chcete zálohovat výsledky?</value>
|
||||
</data>
|
||||
<data name="Saving_all_results" xml:space="preserve">
|
||||
<value>Ukládám všechny výsledky</value>
|
||||
</data>
|
||||
<data name="Saving_configuration" xml:space="preserve">
|
||||
<value>Ukládám konfiguraci</value>
|
||||
</data>
|
||||
<data name="Saving_configuration_failed" xml:space="preserve">
|
||||
<value>Ukládání konfigurace zlyhalo</value>
|
||||
</data>
|
||||
<data name="Saving_results_failed" xml:space="preserve">
|
||||
<value>Ukládání výsledků zlyhalo</value>
|
||||
</data>
|
||||
</root>
|
||||
@ -2008,4 +2008,28 @@
|
||||
<data name="More" xml:space="preserve">
|
||||
<value>More</value>
|
||||
</data>
|
||||
<data name="Do_you_want_to_back_up_configuration_qm" xml:space="preserve">
|
||||
<value>Do you want to back up configuration?</value>
|
||||
</data>
|
||||
<data name="Do_you_want_to_back_up_results_qm" xml:space="preserve">
|
||||
<value>Do you want to back up results?</value>
|
||||
</data>
|
||||
<data name="Do_you_want_to_restore_configuration_qm" xml:space="preserve">
|
||||
<value>Do you want to restore configuration?</value>
|
||||
</data>
|
||||
<data name="Do_you_want_to_restore_results_qm" xml:space="preserve">
|
||||
<value>Do you want to restore results?</value>
|
||||
</data>
|
||||
<data name="Saving_all_results" xml:space="preserve">
|
||||
<value>Saving all results</value>
|
||||
</data>
|
||||
<data name="Saving_configuration" xml:space="preserve">
|
||||
<value>Saving configuration</value>
|
||||
</data>
|
||||
<data name="Saving_configuration_failed" xml:space="preserve">
|
||||
<value>Saving configuration failed</value>
|
||||
</data>
|
||||
<data name="Saving_results_failed" xml:space="preserve">
|
||||
<value>Saving results failed</value>
|
||||
</data>
|
||||
</root>
|
||||
Loading…
Reference in New Issue
Block a user