Back up Configuration/Results added to menu, Import DB added to DatabaseSettingsDlg, ver. 2.18.1275

This commit is contained in:
Milan Hanajik
2019-08-06 15:35:59 +02:00
parent 59f1de4370
commit 0580e04be4
12 changed files with 2238 additions and 1599 deletions
+48
View File
@@ -82,5 +82,53 @@ namespace Config
else return "F5"; 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;
}
} }
} }
+29 -18
View File
@@ -49,25 +49,26 @@ namespace TBF.Forms
this.testConnResultsDbBtn = new System.Windows.Forms.Button(); this.testConnResultsDbBtn = new System.Windows.Forms.Button();
this.createConfigDbBtn = new System.Windows.Forms.Button(); this.createConfigDbBtn = new System.Windows.Forms.Button();
this.createResultsDbBtn = 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.testConnUsersDbBtn = new System.Windows.Forms.Button();
this.usersDbTypeComboBox = new System.Windows.Forms.ComboBox(); this.usersDbTypeComboBox = new System.Windows.Forms.ComboBox();
this.usersLabel = new System.Windows.Forms.Label(); this.usersLabel = new System.Windows.Forms.Label();
this.usersDbConnectionStringTextBox = new System.Windows.Forms.TextBox(); this.usersDbConnectionStringTextBox = new System.Windows.Forms.TextBox();
this.importResultsDbBtn = new System.Windows.Forms.Button();
this.importConfigDbBtn = new System.Windows.Forms.Button();
this.SuspendLayout(); this.SuspendLayout();
// //
// okButton // okButton
// //
this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
resources.ApplyResources(this.okButton, "okButton"); resources.ApplyResources(this.okButton, "okButton");
this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.okButton.Name = "okButton"; this.okButton.Name = "okButton";
this.okButton.UseVisualStyleBackColor = true; this.okButton.UseVisualStyleBackColor = true;
this.okButton.Click += new System.EventHandler(this.okButton_Click); this.okButton.Click += new System.EventHandler(this.okButton_Click);
// //
// cancelButton // cancelButton
// //
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
resources.ApplyResources(this.cancelButton, "cancelButton"); resources.ApplyResources(this.cancelButton, "cancelButton");
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelButton.Name = "cancelButton"; this.cancelButton.Name = "cancelButton";
this.cancelButton.UseVisualStyleBackColor = true; this.cancelButton.UseVisualStyleBackColor = true;
this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click); this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
@@ -132,48 +133,40 @@ namespace TBF.Forms
// //
// testConnConfigDbBtn // testConnConfigDbBtn
// //
this.testConnConfigDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
resources.ApplyResources(this.testConnConfigDbBtn, "testConnConfigDbBtn"); resources.ApplyResources(this.testConnConfigDbBtn, "testConnConfigDbBtn");
this.testConnConfigDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.testConnConfigDbBtn.Name = "testConnConfigDbBtn"; this.testConnConfigDbBtn.Name = "testConnConfigDbBtn";
this.testConnConfigDbBtn.UseVisualStyleBackColor = true; this.testConnConfigDbBtn.UseVisualStyleBackColor = true;
this.testConnConfigDbBtn.Click += new System.EventHandler(this.testConnConfigDbBtn_Click); this.testConnConfigDbBtn.Click += new System.EventHandler(this.testConnConfigDbBtn_Click);
// //
// testConnResultsDbBtn // testConnResultsDbBtn
// //
this.testConnResultsDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
resources.ApplyResources(this.testConnResultsDbBtn, "testConnResultsDbBtn"); resources.ApplyResources(this.testConnResultsDbBtn, "testConnResultsDbBtn");
this.testConnResultsDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.testConnResultsDbBtn.Name = "testConnResultsDbBtn"; this.testConnResultsDbBtn.Name = "testConnResultsDbBtn";
this.testConnResultsDbBtn.UseVisualStyleBackColor = true; this.testConnResultsDbBtn.UseVisualStyleBackColor = true;
this.testConnResultsDbBtn.Click += new System.EventHandler(this.testConnResultsDbBtn_Click); this.testConnResultsDbBtn.Click += new System.EventHandler(this.testConnResultsDbBtn_Click);
// //
// createConfigDbBtn // createConfigDbBtn
// //
this.createConfigDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
resources.ApplyResources(this.createConfigDbBtn, "createConfigDbBtn"); resources.ApplyResources(this.createConfigDbBtn, "createConfigDbBtn");
this.createConfigDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.createConfigDbBtn.Name = "createConfigDbBtn"; this.createConfigDbBtn.Name = "createConfigDbBtn";
this.createConfigDbBtn.UseVisualStyleBackColor = true; this.createConfigDbBtn.UseVisualStyleBackColor = true;
this.createConfigDbBtn.Click += new System.EventHandler(this.createConfigDbBtn_Click); this.createConfigDbBtn.Click += new System.EventHandler(this.createConfigDbBtn_Click);
// //
// createResultsDbBtn // createResultsDbBtn
// //
this.createResultsDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
resources.ApplyResources(this.createResultsDbBtn, "createResultsDbBtn"); resources.ApplyResources(this.createResultsDbBtn, "createResultsDbBtn");
this.createResultsDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.createResultsDbBtn.Name = "createResultsDbBtn"; this.createResultsDbBtn.Name = "createResultsDbBtn";
this.createResultsDbBtn.UseVisualStyleBackColor = true; this.createResultsDbBtn.UseVisualStyleBackColor = true;
this.createResultsDbBtn.Click += new System.EventHandler(this.createResultsDbBtn_Click); 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 // testConnUsersDbBtn
// //
this.testConnUsersDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
resources.ApplyResources(this.testConnUsersDbBtn, "testConnUsersDbBtn"); resources.ApplyResources(this.testConnUsersDbBtn, "testConnUsersDbBtn");
this.testConnUsersDbBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.testConnUsersDbBtn.Name = "testConnUsersDbBtn"; this.testConnUsersDbBtn.Name = "testConnUsersDbBtn";
this.testConnUsersDbBtn.UseVisualStyleBackColor = true; this.testConnUsersDbBtn.UseVisualStyleBackColor = true;
this.testConnUsersDbBtn.Click += new System.EventHandler(this.testConnUsersDbBtn_Click); this.testConnUsersDbBtn.Click += new System.EventHandler(this.testConnUsersDbBtn_Click);
@@ -194,11 +187,28 @@ namespace TBF.Forms
resources.ApplyResources(this.usersDbConnectionStringTextBox, "usersDbConnectionStringTextBox"); resources.ApplyResources(this.usersDbConnectionStringTextBox, "usersDbConnectionStringTextBox");
this.usersDbConnectionStringTextBox.Name = "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 // DatabaseSettingsDlg
// //
resources.ApplyResources(this, "$this"); resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 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.testConnUsersDbBtn);
this.Controls.Add(this.usersDbTypeComboBox); this.Controls.Add(this.usersDbTypeComboBox);
this.Controls.Add(this.usersLabel); this.Controls.Add(this.usersLabel);
@@ -249,10 +259,11 @@ namespace TBF.Forms
private System.Windows.Forms.Button testConnResultsDbBtn; private System.Windows.Forms.Button testConnResultsDbBtn;
private System.Windows.Forms.Button createConfigDbBtn; private System.Windows.Forms.Button createConfigDbBtn;
private System.Windows.Forms.Button createResultsDbBtn; private System.Windows.Forms.Button createResultsDbBtn;
private System.Windows.Forms.Button createUsersDbBtn;
private System.Windows.Forms.Button testConnUsersDbBtn; private System.Windows.Forms.Button testConnUsersDbBtn;
private System.Windows.Forms.ComboBox usersDbTypeComboBox; private System.Windows.Forms.ComboBox usersDbTypeComboBox;
private System.Windows.Forms.Label usersLabel; private System.Windows.Forms.Label usersLabel;
private System.Windows.Forms.TextBox usersDbConnectionStringTextBox; private System.Windows.Forms.TextBox usersDbConnectionStringTextBox;
private System.Windows.Forms.Button importResultsDbBtn;
private System.Windows.Forms.Button importConfigDbBtn;
} }
} }
+183 -47
View File
@@ -1,8 +1,12 @@
/// ///
/// Copyright (c) 2013-2016 Sensus Metering Systems /// Copyright (c) 2013-2019 Sensus Metering Systems
/// ///
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
using System.Drawing;
using System.IO;
using System.Diagnostics;
using log4net;
using TBF.Resources; using TBF.Resources;
namespace TBF.Forms namespace TBF.Forms
@@ -12,6 +16,8 @@ namespace TBF.Forms
/// </summary> /// </summary>
public partial class DatabaseSettingsDlg : Form public partial class DatabaseSettingsDlg : Form
{ {
static readonly ILog log = LogManager.GetLogger(typeof(DatabaseSettingsDlg));
// Reference to bench DB settins (not a local copy) // Reference to bench DB settins (not a local copy)
Config.DatabaseSettings bench; Config.DatabaseSettings bench;
@@ -44,7 +50,6 @@ namespace TBF.Forms
createConfigDbBtn.Text = Strings.Create_DB; createConfigDbBtn.Text = Strings.Create_DB;
createResultsDbBtn.Text = Strings.Create_DB; createResultsDbBtn.Text = Strings.Create_DB;
createUsersDbBtn.Text = Strings.Create_DB;
okButton.Text = Strings.OkBtnText; okButton.Text = Strings.OkBtnText;
cancelButton.Text = Strings.CancelBtnText; cancelButton.Text = Strings.CancelBtnText;
@@ -130,70 +135,61 @@ namespace TBF.Forms
Close(); 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) private void createConfigDbBtn_Click(object sender, EventArgs e)
{ {
/// Update database connection strings
if (!UpdateBenchFromUIControls()) return; if (!UpdateBenchFromUIControls()) return;
if (DialogResult.OK == MessageBox.Show(Strings.DB_will_be_overwritten + Environment.NewLine + if (DialogResult.OK == MessageBox.Show(Strings.DB_will_be_overwritten + Environment.NewLine +
Strings.Do_you_want_to_proceed, Strings.Warning, Strings.Do_you_want_to_proceed, Strings.Warning,
MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation)) MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation))
try
{ {
Cursor.Current = Cursors.WaitCursor; try
Config.FluentCommon.CreateEmptyConfigDB(bench.ProceduresDBSettings.DbType, bench.ProceduresDBSettings.ConnectionString); {
MessageBox.Show(Strings.DB_was_successfully_created, Strings.Notification); Cursor.Current = Cursors.WaitCursor;
Cursor.Current = Cursors.Default; Config.FluentCommon.CreateEmptyConfigDB(bench.ProceduresDBSettings.DbType, bench.ProceduresDBSettings.ConnectionString);
DialogResult = DialogResult.None; MessageBox.Show(Strings.DB_was_successfully_created, Strings.Notification);
} Cursor.Current = Cursors.Default;
catch (Exception exception) DialogResult = DialogResult.None;
{ }
Cursor.Current = Cursors.Default; catch (Exception exception)
MessageBox.Show(Strings.Error_while_creating_DB_Reason + exception.Message, Strings.Error); {
Cursor.Current = Cursors.Default;
MessageBox.Show(Strings.Error_while_creating_DB_Reason + exception.Message, Strings.Error);
}
} }
} }
private void createResultsDbBtn_Click(object sender, EventArgs e) private void createResultsDbBtn_Click(object sender, EventArgs e)
{ {
/// Update database connection strings
if (!UpdateBenchFromUIControls()) return; if (!UpdateBenchFromUIControls()) return;
if (DialogResult.OK == MessageBox.Show(Strings.DB_will_be_overwritten + Environment.NewLine + if (DialogResult.OK == MessageBox.Show(Strings.DB_will_be_overwritten + Environment.NewLine +
Strings.Do_you_want_to_proceed, Strings.Warning, Strings.Do_you_want_to_proceed, Strings.Warning,
MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation)) 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 try
{ {
Cursor.Current = Cursors.WaitCursor; Cursor.Current = Cursors.WaitCursor;
Users.DB.DbType = bench.UsersDBSettings.DbType; Results.DB.DbType = bench.WaterMetersDBSettings.DbType;
Users.DB.ConnectionString = bench.UsersDBSettings.ConnectionString; Results.DB.ConnectionString = bench.WaterMetersDBSettings.ConnectionString;
Users.DB.CreateEmptyDB(); Results.DB.CreateEmptyDB();
MessageBox.Show(Strings.DB_was_successfully_created, Strings.Notification); MessageBox.Show(Strings.DB_was_successfully_created, Strings.Notification);
Cursor.Current = Cursors.Default; Cursor.Current = Cursors.Default;
DialogResult = DialogResult.None; DialogResult = DialogResult.None;
@@ -208,19 +204,159 @@ namespace TBF.Forms
} }
MessageBox.Show(msg, Strings.Error, MessageBoxButtons.OK, MessageBoxIcon.Error); 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);
}
} }
} }
} }
+122 -68
View File
@@ -117,12 +117,16 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="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" /> <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"> <data name="okButton.Location" type="System.Drawing.Point, System.Drawing">
<value>614, 15</value> <value>801, 15</value>
</data> </data>
<data name="okButton.Size" type="System.Drawing.Size, System.Drawing"> <data name="okButton.Size" type="System.Drawing.Size, System.Drawing">
<value>225, 28</value> <value>312, 28</value>
</data> </data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="okButton.TabIndex" type="System.Int32, mscorlib"> <data name="okButton.TabIndex" type="System.Int32, mscorlib">
@@ -141,13 +145,16 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;okButton.ZOrder" xml:space="preserve"> <data name="&gt;&gt;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>
<data name="cancelButton.Location" type="System.Drawing.Point, System.Drawing"> <data name="cancelButton.Location" type="System.Drawing.Point, System.Drawing">
<value>614, 49</value> <value>801, 49</value>
</data> </data>
<data name="cancelButton.Size" type="System.Drawing.Size, System.Drawing"> <data name="cancelButton.Size" type="System.Drawing.Size, System.Drawing">
<value>225, 28</value> <value>312, 28</value>
</data> </data>
<data name="cancelButton.TabIndex" type="System.Int32, mscorlib"> <data name="cancelButton.TabIndex" type="System.Int32, mscorlib">
<value>13</value> <value>13</value>
@@ -165,7 +172,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;cancelButton.ZOrder" xml:space="preserve"> <data name="&gt;&gt;cancelButton.ZOrder" xml:space="preserve">
<value>21</value> <value>22</value>
</data> </data>
<data name="label1.AutoSize" type="System.Boolean, mscorlib"> <data name="label1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value> <value>True</value>
@@ -192,7 +199,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;label1.ZOrder" xml:space="preserve"> <data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
<value>19</value> <value>20</value>
</data> </data>
<data name="benchNameTextBox.Location" type="System.Drawing.Point, System.Drawing"> <data name="benchNameTextBox.Location" type="System.Drawing.Point, System.Drawing">
<value>116, 15</value> <value>116, 15</value>
@@ -213,7 +220,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;benchNameTextBox.ZOrder" xml:space="preserve"> <data name="&gt;&gt;benchNameTextBox.ZOrder" xml:space="preserve">
<value>18</value> <value>19</value>
</data> </data>
<data name="connectionStringLabel.AutoSize" type="System.Boolean, mscorlib"> <data name="connectionStringLabel.AutoSize" type="System.Boolean, mscorlib">
<value>True</value> <value>True</value>
@@ -240,13 +247,13 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;connectionStringLabel.ZOrder" xml:space="preserve"> <data name="&gt;&gt;connectionStringLabel.ZOrder" xml:space="preserve">
<value>17</value> <value>18</value>
</data> </data>
<data name="configDbConnectionStringTextBox.Location" type="System.Drawing.Point, System.Drawing"> <data name="configDbConnectionStringTextBox.Location" type="System.Drawing.Point, System.Drawing">
<value>202, 107</value> <value>202, 107</value>
</data> </data>
<data name="configDbConnectionStringTextBox.Size" type="System.Drawing.Size, System.Drawing"> <data name="configDbConnectionStringTextBox.Size" type="System.Drawing.Size, System.Drawing">
<value>406, 20</value> <value>589, 20</value>
</data> </data>
<data name="configDbConnectionStringTextBox.TabIndex" type="System.Int32, mscorlib"> <data name="configDbConnectionStringTextBox.TabIndex" type="System.Int32, mscorlib">
<value>20</value> <value>20</value>
@@ -261,13 +268,13 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;configDbConnectionStringTextBox.ZOrder" xml:space="preserve"> <data name="&gt;&gt;configDbConnectionStringTextBox.ZOrder" xml:space="preserve">
<value>16</value> <value>17</value>
</data> </data>
<data name="resultsDbConnectionStringTextBox.Location" type="System.Drawing.Point, System.Drawing"> <data name="resultsDbConnectionStringTextBox.Location" type="System.Drawing.Point, System.Drawing">
<value>202, 137</value> <value>202, 137</value>
</data> </data>
<data name="resultsDbConnectionStringTextBox.Size" type="System.Drawing.Size, System.Drawing"> <data name="resultsDbConnectionStringTextBox.Size" type="System.Drawing.Size, System.Drawing">
<value>406, 20</value> <value>589, 20</value>
</data> </data>
<data name="resultsDbConnectionStringTextBox.TabIndex" type="System.Int32, mscorlib"> <data name="resultsDbConnectionStringTextBox.TabIndex" type="System.Int32, mscorlib">
<value>22</value> <value>22</value>
@@ -282,7 +289,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;resultsDbConnectionStringTextBox.ZOrder" xml:space="preserve"> <data name="&gt;&gt;resultsDbConnectionStringTextBox.ZOrder" xml:space="preserve">
<value>15</value> <value>16</value>
</data> </data>
<data name="configLabel.AutoSize" type="System.Boolean, mscorlib"> <data name="configLabel.AutoSize" type="System.Boolean, mscorlib">
<value>True</value> <value>True</value>
@@ -309,7 +316,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;configLabel.ZOrder" xml:space="preserve"> <data name="&gt;&gt;configLabel.ZOrder" xml:space="preserve">
<value>14</value> <value>15</value>
</data> </data>
<data name="resultsLabel.AutoSize" type="System.Boolean, mscorlib"> <data name="resultsLabel.AutoSize" type="System.Boolean, mscorlib">
<value>True</value> <value>True</value>
@@ -336,7 +343,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;resultsLabel.ZOrder" xml:space="preserve"> <data name="&gt;&gt;resultsLabel.ZOrder" xml:space="preserve">
<value>13</value> <value>14</value>
</data> </data>
<data name="realBenchCheckBox.AutoSize" type="System.Boolean, mscorlib"> <data name="realBenchCheckBox.AutoSize" type="System.Boolean, mscorlib">
<value>True</value> <value>True</value>
@@ -363,7 +370,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;realBenchCheckBox.ZOrder" xml:space="preserve"> <data name="&gt;&gt;realBenchCheckBox.ZOrder" xml:space="preserve">
<value>12</value> <value>13</value>
</data> </data>
<data name="dbTypeLabel.AutoSize" type="System.Boolean, mscorlib"> <data name="dbTypeLabel.AutoSize" type="System.Boolean, mscorlib">
<value>True</value> <value>True</value>
@@ -390,7 +397,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;dbTypeLabel.ZOrder" xml:space="preserve"> <data name="&gt;&gt;dbTypeLabel.ZOrder" xml:space="preserve">
<value>11</value> <value>12</value>
</data> </data>
<data name="configDbTypeComboBox.Location" type="System.Drawing.Point, System.Drawing"> <data name="configDbTypeComboBox.Location" type="System.Drawing.Point, System.Drawing">
<value>116, 107</value> <value>116, 107</value>
@@ -411,7 +418,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;configDbTypeComboBox.ZOrder" xml:space="preserve"> <data name="&gt;&gt;configDbTypeComboBox.ZOrder" xml:space="preserve">
<value>10</value> <value>11</value>
</data> </data>
<data name="resultsDbTypeComboBox.Location" type="System.Drawing.Point, System.Drawing"> <data name="resultsDbTypeComboBox.Location" type="System.Drawing.Point, System.Drawing">
<value>116, 137</value> <value>116, 137</value>
@@ -432,17 +439,19 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;resultsDbTypeComboBox.ZOrder" xml:space="preserve"> <data name="&gt;&gt;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> </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"> <data name="testConnConfigDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value> <value>NoControl</value>
</data> </data>
<data name="testConnConfigDbBtn.Location" type="System.Drawing.Point, System.Drawing"> <data name="testConnConfigDbBtn.Location" type="System.Drawing.Point, System.Drawing">
<value>614, 105</value> <value>801, 105</value>
</data> </data>
<data name="testConnConfigDbBtn.Size" type="System.Drawing.Size, System.Drawing"> <data name="testConnConfigDbBtn.Size" type="System.Drawing.Size, System.Drawing">
<value>95, 23</value> <value>100, 23</value>
</data> </data>
<data name="testConnConfigDbBtn.TabIndex" type="System.Int32, mscorlib"> <data name="testConnConfigDbBtn.TabIndex" type="System.Int32, mscorlib">
<value>62</value> <value>62</value>
@@ -460,16 +469,19 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;testConnConfigDbBtn.ZOrder" xml:space="preserve"> <data name="&gt;&gt;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>
<data name="testConnResultsDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms"> <data name="testConnResultsDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value> <value>NoControl</value>
</data> </data>
<data name="testConnResultsDbBtn.Location" type="System.Drawing.Point, System.Drawing"> <data name="testConnResultsDbBtn.Location" type="System.Drawing.Point, System.Drawing">
<value>614, 135</value> <value>801, 135</value>
</data> </data>
<data name="testConnResultsDbBtn.Size" type="System.Drawing.Size, System.Drawing"> <data name="testConnResultsDbBtn.Size" type="System.Drawing.Size, System.Drawing">
<value>95, 23</value> <value>100, 23</value>
</data> </data>
<data name="testConnResultsDbBtn.TabIndex" type="System.Int32, mscorlib"> <data name="testConnResultsDbBtn.TabIndex" type="System.Int32, mscorlib">
<value>64</value> <value>64</value>
@@ -487,22 +499,25 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;testConnResultsDbBtn.ZOrder" xml:space="preserve"> <data name="&gt;&gt;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>
<data name="createConfigDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms"> <data name="createConfigDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value> <value>NoControl</value>
</data> </data>
<data name="createConfigDbBtn.Location" type="System.Drawing.Point, System.Drawing"> <data name="createConfigDbBtn.Location" type="System.Drawing.Point, System.Drawing">
<value>715, 104</value> <value>907, 104</value>
</data> </data>
<data name="createConfigDbBtn.Size" type="System.Drawing.Size, System.Drawing"> <data name="createConfigDbBtn.Size" type="System.Drawing.Size, System.Drawing">
<value>124, 23</value> <value>100, 23</value>
</data> </data>
<data name="createConfigDbBtn.TabIndex" type="System.Int32, mscorlib"> <data name="createConfigDbBtn.TabIndex" type="System.Int32, mscorlib">
<value>66</value> <value>66</value>
</data> </data>
<data name="createConfigDbBtn.Text" xml:space="preserve"> <data name="createConfigDbBtn.Text" xml:space="preserve">
<value>Create DB</value> <value>Create new DB</value>
</data> </data>
<data name="&gt;&gt;createConfigDbBtn.Name" xml:space="preserve"> <data name="&gt;&gt;createConfigDbBtn.Name" xml:space="preserve">
<value>createConfigDbBtn</value> <value>createConfigDbBtn</value>
@@ -514,22 +529,25 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;createConfigDbBtn.ZOrder" xml:space="preserve"> <data name="&gt;&gt;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>
<data name="createResultsDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms"> <data name="createResultsDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value> <value>NoControl</value>
</data> </data>
<data name="createResultsDbBtn.Location" type="System.Drawing.Point, System.Drawing"> <data name="createResultsDbBtn.Location" type="System.Drawing.Point, System.Drawing">
<value>715, 134</value> <value>907, 134</value>
</data> </data>
<data name="createResultsDbBtn.Size" type="System.Drawing.Size, System.Drawing"> <data name="createResultsDbBtn.Size" type="System.Drawing.Size, System.Drawing">
<value>124, 23</value> <value>100, 23</value>
</data> </data>
<data name="createResultsDbBtn.TabIndex" type="System.Int32, mscorlib"> <data name="createResultsDbBtn.TabIndex" type="System.Int32, mscorlib">
<value>68</value> <value>68</value>
</data> </data>
<data name="createResultsDbBtn.Text" xml:space="preserve"> <data name="createResultsDbBtn.Text" xml:space="preserve">
<value>Create DB</value> <value>Create new DB</value>
</data> </data>
<data name="&gt;&gt;createResultsDbBtn.Name" xml:space="preserve"> <data name="&gt;&gt;createResultsDbBtn.Name" xml:space="preserve">
<value>createResultsDbBtn</value> <value>createResultsDbBtn</value>
@@ -541,43 +559,19 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;createResultsDbBtn.ZOrder" xml:space="preserve"> <data name="&gt;&gt;createResultsDbBtn.ZOrder" xml:space="preserve">
<value>5</value> <value>6</value>
</data> </data>
<data name="createUsersDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms"> <data name="testConnUsersDbBtn.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>NoControl</value> <value>Top, Right</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="&gt;&gt;createUsersDbBtn.Name" xml:space="preserve">
<value>createUsersDbBtn</value>
</data>
<data name="&gt;&gt;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="&gt;&gt;createUsersDbBtn.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;createUsersDbBtn.ZOrder" xml:space="preserve">
<value>0</value>
</data> </data>
<data name="testConnUsersDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms"> <data name="testConnUsersDbBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value> <value>NoControl</value>
</data> </data>
<data name="testConnUsersDbBtn.Location" type="System.Drawing.Point, System.Drawing"> <data name="testConnUsersDbBtn.Location" type="System.Drawing.Point, System.Drawing">
<value>614, 165</value> <value>801, 165</value>
</data> </data>
<data name="testConnUsersDbBtn.Size" type="System.Drawing.Size, System.Drawing"> <data name="testConnUsersDbBtn.Size" type="System.Drawing.Size, System.Drawing">
<value>95, 23</value> <value>100, 23</value>
</data> </data>
<data name="testConnUsersDbBtn.TabIndex" type="System.Int32, mscorlib"> <data name="testConnUsersDbBtn.TabIndex" type="System.Int32, mscorlib">
<value>72</value> <value>72</value>
@@ -595,7 +589,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;testConnUsersDbBtn.ZOrder" xml:space="preserve"> <data name="&gt;&gt;testConnUsersDbBtn.ZOrder" xml:space="preserve">
<value>1</value> <value>2</value>
</data> </data>
<data name="usersDbTypeComboBox.Location" type="System.Drawing.Point, System.Drawing"> <data name="usersDbTypeComboBox.Location" type="System.Drawing.Point, System.Drawing">
<value>116, 167</value> <value>116, 167</value>
@@ -616,7 +610,7 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;usersDbTypeComboBox.ZOrder" xml:space="preserve"> <data name="&gt;&gt;usersDbTypeComboBox.ZOrder" xml:space="preserve">
<value>2</value> <value>3</value>
</data> </data>
<data name="usersLabel.AutoSize" type="System.Boolean, mscorlib"> <data name="usersLabel.AutoSize" type="System.Boolean, mscorlib">
<value>True</value> <value>True</value>
@@ -646,13 +640,13 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;usersLabel.ZOrder" xml:space="preserve"> <data name="&gt;&gt;usersLabel.ZOrder" xml:space="preserve">
<value>3</value> <value>4</value>
</data> </data>
<data name="usersDbConnectionStringTextBox.Location" type="System.Drawing.Point, System.Drawing"> <data name="usersDbConnectionStringTextBox.Location" type="System.Drawing.Point, System.Drawing">
<value>202, 167</value> <value>202, 167</value>
</data> </data>
<data name="usersDbConnectionStringTextBox.Size" type="System.Drawing.Size, System.Drawing"> <data name="usersDbConnectionStringTextBox.Size" type="System.Drawing.Size, System.Drawing">
<value>406, 20</value> <value>589, 20</value>
</data> </data>
<data name="usersDbConnectionStringTextBox.TabIndex" type="System.Int32, mscorlib"> <data name="usersDbConnectionStringTextBox.TabIndex" type="System.Int32, mscorlib">
<value>69</value> <value>69</value>
@@ -667,7 +661,67 @@
<value>$this</value> <value>$this</value>
</data> </data>
<data name="&gt;&gt;usersDbConnectionStringTextBox.ZOrder" xml:space="preserve"> <data name="&gt;&gt;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="&gt;&gt;importResultsDbBtn.Name" xml:space="preserve">
<value>importResultsDbBtn</value>
</data>
<data name="&gt;&gt;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="&gt;&gt;importResultsDbBtn.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;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="&gt;&gt;importConfigDbBtn.Name" xml:space="preserve">
<value>importConfigDbBtn</value>
</data>
<data name="&gt;&gt;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="&gt;&gt;importConfigDbBtn.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;importConfigDbBtn.ZOrder" xml:space="preserve">
<value>1</value>
</data> </data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
@@ -676,7 +730,7 @@
<value>6, 13</value> <value>6, 13</value>
</data> </data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing"> <data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>853, 202</value> <value>1125, 202</value>
</data> </data>
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms"> <data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterParent</value> <value>CenterParent</value>
+119 -58
View File
@@ -89,9 +89,13 @@ namespace TBF
this.usersTSMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.usersTSMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.localSettingsTSMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.localSettingsTSMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.databaseSettingsTSMenuItem = 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.passwortToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.upgradeTSMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.upgradeTSMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.iPerlHeadsToolStripMenuItem = 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.helpTSMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.aboutTSMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aboutTSMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.mainMenuStrip = new System.Windows.Forms.MenuStrip(); this.mainMenuStrip = new System.Windows.Forms.MenuStrip();
@@ -99,7 +103,6 @@ namespace TBF
this.processToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.processToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.resultsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.resultsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.graphsToolStripMenuItem = 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(); ((System.ComponentModel.ISupportInitialize)(this.topVerticalSplitContainer)).BeginInit();
this.topVerticalSplitContainer.Panel1.SuspendLayout(); this.topVerticalSplitContainer.Panel1.SuspendLayout();
this.topVerticalSplitContainer.Panel2.SuspendLayout(); this.topVerticalSplitContainer.Panel2.SuspendLayout();
@@ -146,30 +149,32 @@ namespace TBF
// //
// topVerticalSplitContainer.Panel1 // topVerticalSplitContainer.Panel1
// //
this.topVerticalSplitContainer.Panel1.Controls.Add(this.activityGroupBox);
resources.ApplyResources(this.topVerticalSplitContainer.Panel1, "topVerticalSplitContainer.Panel1"); resources.ApplyResources(this.topVerticalSplitContainer.Panel1, "topVerticalSplitContainer.Panel1");
this.topVerticalSplitContainer.Panel1.Controls.Add(this.activityGroupBox);
// //
// topVerticalSplitContainer.Panel2 // topVerticalSplitContainer.Panel2
// //
this.topVerticalSplitContainer.Panel2.Controls.Add(this.topHorizontalSplitContainer);
resources.ApplyResources(this.topVerticalSplitContainer.Panel2, "topVerticalSplitContainer.Panel2"); resources.ApplyResources(this.topVerticalSplitContainer.Panel2, "topVerticalSplitContainer.Panel2");
this.topVerticalSplitContainer.Panel2.Controls.Add(this.topHorizontalSplitContainer);
// //
// activityGroupBox // activityGroupBox
// //
resources.ApplyResources(this.activityGroupBox, "activityGroupBox");
this.activityGroupBox.Controls.Add(this.messageLabel); this.activityGroupBox.Controls.Add(this.messageLabel);
this.activityGroupBox.Controls.Add(this.activityLabel); this.activityGroupBox.Controls.Add(this.activityLabel);
resources.ApplyResources(this.activityGroupBox, "activityGroupBox");
this.activityGroupBox.Name = "activityGroupBox"; this.activityGroupBox.Name = "activityGroupBox";
this.activityGroupBox.TabStop = false; this.activityGroupBox.TabStop = false;
// //
// messageLabel // messageLabel
// //
resources.ApplyResources(this.messageLabel, "messageLabel"); resources.ApplyResources(this.messageLabel, "messageLabel");
this.messageLabel.ImageKey = global::TBF.Resources.Strings.String1;
this.messageLabel.Name = "messageLabel"; this.messageLabel.Name = "messageLabel";
// //
// activityLabel // activityLabel
// //
resources.ApplyResources(this.activityLabel, "activityLabel"); resources.ApplyResources(this.activityLabel, "activityLabel");
this.activityLabel.ImageKey = global::TBF.Resources.Strings.String1;
this.activityLabel.Name = "activityLabel"; this.activityLabel.Name = "activityLabel";
// //
// topHorizontalSplitContainer // topHorizontalSplitContainer
@@ -180,10 +185,12 @@ namespace TBF
// //
// topHorizontalSplitContainer.Panel1 // topHorizontalSplitContainer.Panel1
// //
resources.ApplyResources(this.topHorizontalSplitContainer.Panel1, "topHorizontalSplitContainer.Panel1");
this.topHorizontalSplitContainer.Panel1.Controls.Add(this.splitContainer1); this.topHorizontalSplitContainer.Panel1.Controls.Add(this.splitContainer1);
// //
// topHorizontalSplitContainer.Panel2 // topHorizontalSplitContainer.Panel2
// //
resources.ApplyResources(this.topHorizontalSplitContainer.Panel2, "topHorizontalSplitContainer.Panel2");
this.topHorizontalSplitContainer.Panel2.Controls.Add(this.descriptionGroupBox); this.topHorizontalSplitContainer.Panel2.Controls.Add(this.descriptionGroupBox);
// //
// splitContainer1 // splitContainer1
@@ -194,16 +201,18 @@ namespace TBF
// //
// splitContainer1.Panel1 // splitContainer1.Panel1
// //
resources.ApplyResources(this.splitContainer1.Panel1, "splitContainer1.Panel1");
this.splitContainer1.Panel1.Controls.Add(this.procedureGroupBox); this.splitContainer1.Panel1.Controls.Add(this.procedureGroupBox);
// //
// splitContainer1.Panel2 // splitContainer1.Panel2
// //
resources.ApplyResources(this.splitContainer1.Panel2, "splitContainer1.Panel2");
this.splitContainer1.Panel2.Controls.Add(this.progressGroupBox); this.splitContainer1.Panel2.Controls.Add(this.progressGroupBox);
// //
// procedureGroupBox // procedureGroupBox
// //
this.procedureGroupBox.Controls.Add(this.procedureComboBox);
resources.ApplyResources(this.procedureGroupBox, "procedureGroupBox"); resources.ApplyResources(this.procedureGroupBox, "procedureGroupBox");
this.procedureGroupBox.Controls.Add(this.procedureComboBox);
this.procedureGroupBox.Name = "procedureGroupBox"; this.procedureGroupBox.Name = "procedureGroupBox";
this.procedureGroupBox.TabStop = false; this.procedureGroupBox.TabStop = false;
// //
@@ -216,8 +225,8 @@ namespace TBF
// //
// progressGroupBox // progressGroupBox
// //
this.progressGroupBox.Controls.Add(this.mainProgressBar);
resources.ApplyResources(this.progressGroupBox, "progressGroupBox"); resources.ApplyResources(this.progressGroupBox, "progressGroupBox");
this.progressGroupBox.Controls.Add(this.mainProgressBar);
this.progressGroupBox.Name = "progressGroupBox"; this.progressGroupBox.Name = "progressGroupBox";
this.progressGroupBox.TabStop = false; this.progressGroupBox.TabStop = false;
// //
@@ -228,14 +237,15 @@ namespace TBF
// //
// descriptionGroupBox // descriptionGroupBox
// //
this.descriptionGroupBox.Controls.Add(this.descriptionLabel);
resources.ApplyResources(this.descriptionGroupBox, "descriptionGroupBox"); resources.ApplyResources(this.descriptionGroupBox, "descriptionGroupBox");
this.descriptionGroupBox.Controls.Add(this.descriptionLabel);
this.descriptionGroupBox.Name = "descriptionGroupBox"; this.descriptionGroupBox.Name = "descriptionGroupBox";
this.descriptionGroupBox.TabStop = false; this.descriptionGroupBox.TabStop = false;
// //
// descriptionLabel // descriptionLabel
// //
resources.ApplyResources(this.descriptionLabel, "descriptionLabel"); resources.ApplyResources(this.descriptionLabel, "descriptionLabel");
this.descriptionLabel.ImageKey = global::TBF.Resources.Strings.String1;
this.descriptionLabel.Name = "descriptionLabel"; this.descriptionLabel.Name = "descriptionLabel";
// //
// verticalSplitContainer // verticalSplitContainer
@@ -246,10 +256,12 @@ namespace TBF
// //
// verticalSplitContainer.Panel1 // verticalSplitContainer.Panel1
// //
resources.ApplyResources(this.verticalSplitContainer.Panel1, "verticalSplitContainer.Panel1");
this.verticalSplitContainer.Panel1.Controls.Add(this.horizontalSplitContainer); this.verticalSplitContainer.Panel1.Controls.Add(this.horizontalSplitContainer);
// //
// verticalSplitContainer.Panel2 // verticalSplitContainer.Panel2
// //
resources.ApplyResources(this.verticalSplitContainer.Panel2, "verticalSplitContainer.Panel2");
this.verticalSplitContainer.Panel2.Controls.Add(this.rightHorizSplitContainer); this.verticalSplitContainer.Panel2.Controls.Add(this.rightHorizSplitContainer);
// //
// horizontalSplitContainer // horizontalSplitContainer
@@ -260,15 +272,18 @@ namespace TBF
// //
// horizontalSplitContainer.Panel1 // horizontalSplitContainer.Panel1
// //
resources.ApplyResources(this.horizontalSplitContainer.Panel1, "horizontalSplitContainer.Panel1");
this.horizontalSplitContainer.Panel1.BackColor = System.Drawing.SystemColors.Control; this.horizontalSplitContainer.Panel1.BackColor = System.Drawing.SystemColors.Control;
this.horizontalSplitContainer.Panel1.Controls.Add(this.topVerticalSplitContainer); this.horizontalSplitContainer.Panel1.Controls.Add(this.topVerticalSplitContainer);
// //
// horizontalSplitContainer.Panel2 // horizontalSplitContainer.Panel2
// //
resources.ApplyResources(this.horizontalSplitContainer.Panel2, "horizontalSplitContainer.Panel2");
this.horizontalSplitContainer.Panel2.Controls.Add(this.mainTabControl); this.horizontalSplitContainer.Panel2.Controls.Add(this.mainTabControl);
// //
// mainTabControl // mainTabControl
// //
resources.ApplyResources(this.mainTabControl, "mainTabControl");
this.mainTabControl.Controls.Add(this.homeTabPage); this.mainTabControl.Controls.Add(this.homeTabPage);
this.mainTabControl.Controls.Add(this.processTabPage); this.mainTabControl.Controls.Add(this.processTabPage);
this.mainTabControl.Controls.Add(this.insertTabPage); this.mainTabControl.Controls.Add(this.insertTabPage);
@@ -276,93 +291,106 @@ namespace TBF
this.mainTabControl.Controls.Add(this.graphsTabPage); this.mainTabControl.Controls.Add(this.graphsTabPage);
this.mainTabControl.Controls.Add(this.logsTabPage); this.mainTabControl.Controls.Add(this.logsTabPage);
this.mainTabControl.Controls.Add(this.picturesTabPage); this.mainTabControl.Controls.Add(this.picturesTabPage);
resources.ApplyResources(this.mainTabControl, "mainTabControl");
this.mainTabControl.Name = "mainTabControl"; this.mainTabControl.Name = "mainTabControl";
this.mainTabControl.SelectedIndex = 0; this.mainTabControl.SelectedIndex = 0;
this.mainTabControl.SizeMode = System.Windows.Forms.TabSizeMode.Fixed; this.mainTabControl.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
// //
// homeTabPage // homeTabPage
// //
resources.ApplyResources(this.homeTabPage, "homeTabPage");
this.homeTabPage.BackColor = System.Drawing.SystemColors.Control; this.homeTabPage.BackColor = System.Drawing.SystemColors.Control;
this.homeTabPage.Controls.Add(this.ctrlBrdComponent); 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.Name = "homeTabPage";
this.homeTabPage.ToolTipText = global::TBF.Resources.Strings.String1;
// //
// ctrlBrdComponent // ctrlBrdComponent
// //
this.ctrlBrdComponent.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
resources.ApplyResources(this.ctrlBrdComponent, "ctrlBrdComponent"); 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"; this.ctrlBrdComponent.Name = "ctrlBrdComponent";
// //
// processTabPage // processTabPage
// //
this.processTabPage.Controls.Add(this.processTabPageCtrl);
resources.ApplyResources(this.processTabPage, "processTabPage"); 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.Name = "processTabPage";
this.processTabPage.ToolTipText = global::TBF.Resources.Strings.String1;
this.processTabPage.UseVisualStyleBackColor = true; this.processTabPage.UseVisualStyleBackColor = true;
// //
// processTabPageCtrl // processTabPageCtrl
// //
this.processTabPageCtrl.BackColor = System.Drawing.SystemColors.Control;
resources.ApplyResources(this.processTabPageCtrl, "processTabPageCtrl"); resources.ApplyResources(this.processTabPageCtrl, "processTabPageCtrl");
this.processTabPageCtrl.BackColor = System.Drawing.SystemColors.Control;
this.processTabPageCtrl.Name = "processTabPageCtrl"; this.processTabPageCtrl.Name = "processTabPageCtrl";
// //
// insertTabPage // insertTabPage
// //
this.insertTabPage.BackColor = System.Drawing.Color.Silver;
resources.ApplyResources(this.insertTabPage, "insertTabPage"); 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.Name = "insertTabPage";
this.insertTabPage.ToolTipText = global::TBF.Resources.Strings.String1;
// //
// resultsTabPage // resultsTabPage
// //
this.resultsTabPage.Controls.Add(this.resultsTabPageCtrl);
resources.ApplyResources(this.resultsTabPage, "resultsTabPage"); 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.Name = "resultsTabPage";
this.resultsTabPage.ToolTipText = global::TBF.Resources.Strings.String1;
this.resultsTabPage.UseVisualStyleBackColor = true; this.resultsTabPage.UseVisualStyleBackColor = true;
// //
// resultsTabPageCtrl // resultsTabPageCtrl
// //
this.resultsTabPageCtrl.BackColor = System.Drawing.SystemColors.Control;
resources.ApplyResources(this.resultsTabPageCtrl, "resultsTabPageCtrl"); resources.ApplyResources(this.resultsTabPageCtrl, "resultsTabPageCtrl");
this.resultsTabPageCtrl.BackColor = System.Drawing.SystemColors.Control;
this.resultsTabPageCtrl.Name = "resultsTabPageCtrl"; this.resultsTabPageCtrl.Name = "resultsTabPageCtrl";
// //
// graphsTabPage // graphsTabPage
// //
this.graphsTabPage.Controls.Add(this.graphsTabPageCtrl);
resources.ApplyResources(this.graphsTabPage, "graphsTabPage"); 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.Name = "graphsTabPage";
this.graphsTabPage.ToolTipText = global::TBF.Resources.Strings.String1;
this.graphsTabPage.UseVisualStyleBackColor = true; this.graphsTabPage.UseVisualStyleBackColor = true;
// //
// graphsTabPageCtrl // graphsTabPageCtrl
// //
this.graphsTabPageCtrl.BackColor = System.Drawing.Color.Silver;
resources.ApplyResources(this.graphsTabPageCtrl, "graphsTabPageCtrl"); resources.ApplyResources(this.graphsTabPageCtrl, "graphsTabPageCtrl");
this.graphsTabPageCtrl.BackColor = System.Drawing.Color.Silver;
this.graphsTabPageCtrl.Name = "graphsTabPageCtrl"; this.graphsTabPageCtrl.Name = "graphsTabPageCtrl";
// //
// logsTabPage // logsTabPage
// //
this.logsTabPage.Controls.Add(this.logsTabPageCtrl);
resources.ApplyResources(this.logsTabPage, "logsTabPage"); 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.Name = "logsTabPage";
this.logsTabPage.ToolTipText = global::TBF.Resources.Strings.String1;
this.logsTabPage.UseVisualStyleBackColor = true; this.logsTabPage.UseVisualStyleBackColor = true;
// //
// logsTabPageCtrl // logsTabPageCtrl
// //
this.logsTabPageCtrl.BackColor = System.Drawing.SystemColors.Control;
resources.ApplyResources(this.logsTabPageCtrl, "logsTabPageCtrl"); resources.ApplyResources(this.logsTabPageCtrl, "logsTabPageCtrl");
this.logsTabPageCtrl.BackColor = System.Drawing.SystemColors.Control;
this.logsTabPageCtrl.Name = "logsTabPageCtrl"; this.logsTabPageCtrl.Name = "logsTabPageCtrl";
// //
// picturesTabPage // picturesTabPage
// //
this.picturesTabPage.Controls.Add(this.picturesTabPageCtrl);
resources.ApplyResources(this.picturesTabPage, "picturesTabPage"); 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.Name = "picturesTabPage";
this.picturesTabPage.ToolTipText = global::TBF.Resources.Strings.String1;
this.picturesTabPage.UseVisualStyleBackColor = true; this.picturesTabPage.UseVisualStyleBackColor = true;
// //
// picturesTabPageCtrl // picturesTabPageCtrl
// //
this.picturesTabPageCtrl.BackColor = System.Drawing.Color.Silver;
resources.ApplyResources(this.picturesTabPageCtrl, "picturesTabPageCtrl"); resources.ApplyResources(this.picturesTabPageCtrl, "picturesTabPageCtrl");
this.picturesTabPageCtrl.BackColor = System.Drawing.Color.Silver;
this.picturesTabPageCtrl.Name = "picturesTabPageCtrl"; this.picturesTabPageCtrl.Name = "picturesTabPageCtrl";
// //
// rightHorizSplitContainer // rightHorizSplitContainer
@@ -373,8 +401,13 @@ namespace TBF
// //
// rightHorizSplitContainer.Panel1 // rightHorizSplitContainer.Panel1
// //
resources.ApplyResources(this.rightHorizSplitContainer.Panel1, "rightHorizSplitContainer.Panel1");
this.rightHorizSplitContainer.Panel1.Controls.Add(this.progressFlowLayoutPanel); this.rightHorizSplitContainer.Panel1.Controls.Add(this.progressFlowLayoutPanel);
// //
// rightHorizSplitContainer.Panel2
//
resources.ApplyResources(this.rightHorizSplitContainer.Panel2, "rightHorizSplitContainer.Panel2");
//
// progressFlowLayoutPanel // progressFlowLayoutPanel
// //
resources.ApplyResources(this.progressFlowLayoutPanel, "progressFlowLayoutPanel"); resources.ApplyResources(this.progressFlowLayoutPanel, "progressFlowLayoutPanel");
@@ -383,50 +416,55 @@ namespace TBF
// //
// measurementTabPage // measurementTabPage
// //
this.measurementTabPage.Controls.Add(this.MeasurementTabPageCtrl);
resources.ApplyResources(this.measurementTabPage, "measurementTabPage"); 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.Name = "measurementTabPage";
this.measurementTabPage.ToolTipText = global::TBF.Resources.Strings.String1;
this.measurementTabPage.UseVisualStyleBackColor = true; this.measurementTabPage.UseVisualStyleBackColor = true;
// //
// MeasurementTabPageCtrl // MeasurementTabPageCtrl
// //
this.MeasurementTabPageCtrl.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(150)))), ((int)(((byte)(180)))), ((int)(((byte)(200)))));
resources.ApplyResources(this.MeasurementTabPageCtrl, "MeasurementTabPageCtrl"); 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"; this.MeasurementTabPageCtrl.Name = "MeasurementTabPageCtrl";
// //
// statusStrip1 // statusStrip1
// //
resources.ApplyResources(this.statusStrip1, "statusStrip1");
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.userInfoStatusLabel, this.userInfoStatusLabel,
this.statusPStatusLabel, this.statusPStatusLabel,
this.routeStatusLabel, this.routeStatusLabel,
this.activityStatusLabel}); this.activityStatusLabel});
resources.ApplyResources(this.statusStrip1, "statusStrip1");
this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.DoubleClick += new System.EventHandler(this.statusStrip1_DoubleClick); this.statusStrip1.DoubleClick += new System.EventHandler(this.statusStrip1_DoubleClick);
// //
// userInfoStatusLabel // userInfoStatusLabel
// //
this.userInfoStatusLabel.Name = "userInfoStatusLabel";
resources.ApplyResources(this.userInfoStatusLabel, "userInfoStatusLabel"); resources.ApplyResources(this.userInfoStatusLabel, "userInfoStatusLabel");
this.userInfoStatusLabel.Name = "userInfoStatusLabel";
// //
// statusPStatusLabel // statusPStatusLabel
// //
this.statusPStatusLabel.Name = "statusPStatusLabel";
resources.ApplyResources(this.statusPStatusLabel, "statusPStatusLabel"); resources.ApplyResources(this.statusPStatusLabel, "statusPStatusLabel");
this.statusPStatusLabel.Name = "statusPStatusLabel";
this.statusPStatusLabel.Text = global::TBF.Resources.Strings.String1;
// //
// routeStatusLabel // routeStatusLabel
// //
this.routeStatusLabel.Name = "routeStatusLabel";
resources.ApplyResources(this.routeStatusLabel, "routeStatusLabel"); resources.ApplyResources(this.routeStatusLabel, "routeStatusLabel");
this.routeStatusLabel.Name = "routeStatusLabel";
this.routeStatusLabel.Text = global::TBF.Resources.Strings.String1;
// //
// activityStatusLabel // activityStatusLabel
// //
this.activityStatusLabel.Name = "activityStatusLabel";
resources.ApplyResources(this.activityStatusLabel, "activityStatusLabel"); resources.ApplyResources(this.activityStatusLabel, "activityStatusLabel");
this.activityStatusLabel.Name = "activityStatusLabel";
// //
// benchTSMenuItem // benchTSMenuItem
// //
resources.ApplyResources(this.benchTSMenuItem, "benchTSMenuItem");
this.benchTSMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.benchTSMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.benchComponentsTSMenuItem, this.benchComponentsTSMenuItem,
this.benchPathsTSMenuItem, this.benchPathsTSMenuItem,
@@ -435,123 +473,150 @@ namespace TBF
this.toolStripSeparator1, this.toolStripSeparator1,
this.exitToolStripMenuItem}); this.exitToolStripMenuItem});
this.benchTSMenuItem.Name = "benchTSMenuItem"; this.benchTSMenuItem.Name = "benchTSMenuItem";
resources.ApplyResources(this.benchTSMenuItem, "benchTSMenuItem");
// //
// benchComponentsTSMenuItem // benchComponentsTSMenuItem
// //
this.benchComponentsTSMenuItem.Name = "benchComponentsTSMenuItem";
resources.ApplyResources(this.benchComponentsTSMenuItem, "benchComponentsTSMenuItem"); resources.ApplyResources(this.benchComponentsTSMenuItem, "benchComponentsTSMenuItem");
this.benchComponentsTSMenuItem.Name = "benchComponentsTSMenuItem";
this.benchComponentsTSMenuItem.Click += new System.EventHandler(this.benchComponentsTSMItem_Click); this.benchComponentsTSMenuItem.Click += new System.EventHandler(this.benchComponentsTSMItem_Click);
// //
// benchPathsTSMenuItem // benchPathsTSMenuItem
// //
this.benchPathsTSMenuItem.Name = "benchPathsTSMenuItem";
resources.ApplyResources(this.benchPathsTSMenuItem, "benchPathsTSMenuItem"); resources.ApplyResources(this.benchPathsTSMenuItem, "benchPathsTSMenuItem");
this.benchPathsTSMenuItem.Name = "benchPathsTSMenuItem";
this.benchPathsTSMenuItem.Click += new System.EventHandler(this.benchPathsTSMItem_Click); this.benchPathsTSMenuItem.Click += new System.EventHandler(this.benchPathsTSMItem_Click);
// //
// benchTransitionsToolStripMenuItem // benchTransitionsToolStripMenuItem
// //
this.benchTransitionsToolStripMenuItem.Name = "benchTransitionsToolStripMenuItem";
resources.ApplyResources(this.benchTransitionsToolStripMenuItem, "benchTransitionsToolStripMenuItem"); resources.ApplyResources(this.benchTransitionsToolStripMenuItem, "benchTransitionsToolStripMenuItem");
this.benchTransitionsToolStripMenuItem.Name = "benchTransitionsToolStripMenuItem";
this.benchTransitionsToolStripMenuItem.Click += new System.EventHandler(this.benchTransitionsTSMItem_Click); this.benchTransitionsToolStripMenuItem.Click += new System.EventHandler(this.benchTransitionsTSMItem_Click);
// //
// benchMetrologyTSMenuItem // benchMetrologyTSMenuItem
// //
this.benchMetrologyTSMenuItem.Name = "benchMetrologyTSMenuItem";
resources.ApplyResources(this.benchMetrologyTSMenuItem, "benchMetrologyTSMenuItem"); resources.ApplyResources(this.benchMetrologyTSMenuItem, "benchMetrologyTSMenuItem");
this.benchMetrologyTSMenuItem.Name = "benchMetrologyTSMenuItem";
this.benchMetrologyTSMenuItem.Click += new System.EventHandler(this.benchMetrologyTSMItem_Click); this.benchMetrologyTSMenuItem.Click += new System.EventHandler(this.benchMetrologyTSMItem_Click);
// //
// toolStripSeparator1 // toolStripSeparator1
// //
this.toolStripSeparator1.Name = "toolStripSeparator1";
resources.ApplyResources(this.toolStripSeparator1, "toolStripSeparator1"); resources.ApplyResources(this.toolStripSeparator1, "toolStripSeparator1");
this.toolStripSeparator1.Name = "toolStripSeparator1";
// //
// exitToolStripMenuItem // exitToolStripMenuItem
// //
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
resources.ApplyResources(this.exitToolStripMenuItem, "exitToolStripMenuItem"); resources.ApplyResources(this.exitToolStripMenuItem, "exitToolStripMenuItem");
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click); this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
// //
// homeTSMenuItem // homeTSMenuItem
// //
this.homeTSMenuItem.Name = "homeTSMenuItem";
resources.ApplyResources(this.homeTSMenuItem, "homeTSMenuItem"); resources.ApplyResources(this.homeTSMenuItem, "homeTSMenuItem");
this.homeTSMenuItem.Name = "homeTSMenuItem";
this.homeTSMenuItem.Click += new System.EventHandler(this.homeTSMenuItem_Click); this.homeTSMenuItem.Click += new System.EventHandler(this.homeTSMenuItem_Click);
// //
// resultsTSMenuItem // resultsTSMenuItem
// //
this.resultsTSMenuItem.Name = "resultsTSMenuItem";
resources.ApplyResources(this.resultsTSMenuItem, "resultsTSMenuItem"); resources.ApplyResources(this.resultsTSMenuItem, "resultsTSMenuItem");
this.resultsTSMenuItem.Name = "resultsTSMenuItem";
// //
// logsTSMenuItem // logsTSMenuItem
// //
this.logsTSMenuItem.Name = "logsTSMenuItem";
resources.ApplyResources(this.logsTSMenuItem, "logsTSMenuItem"); resources.ApplyResources(this.logsTSMenuItem, "logsTSMenuItem");
this.logsTSMenuItem.Name = "logsTSMenuItem";
this.logsTSMenuItem.Click += new System.EventHandler(this.logsTSMenuItem_Click); this.logsTSMenuItem.Click += new System.EventHandler(this.logsTSMenuItem_Click);
// //
// editTSMenuItem // editTSMenuItem
// //
resources.ApplyResources(this.editTSMenuItem, "editTSMenuItem");
this.editTSMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.editTSMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.usersTSMenuItem, this.usersTSMenuItem,
this.localSettingsTSMenuItem, this.localSettingsTSMenuItem,
this.databaseSettingsTSMenuItem, this.databaseSettingsTSMenuItem,
this.backUpToolStripMenuItem,
this.passwortToolStripMenuItem, this.passwortToolStripMenuItem,
this.upgradeTSMenuItem, this.upgradeTSMenuItem,
this.iPerlHeadsToolStripMenuItem, this.iPerlHeadsToolStripMenuItem,
this.clearCountersToolStripMenuItem}); this.clearCountersToolStripMenuItem});
this.editTSMenuItem.Name = "editTSMenuItem"; this.editTSMenuItem.Name = "editTSMenuItem";
resources.ApplyResources(this.editTSMenuItem, "editTSMenuItem");
// //
// usersTSMenuItem // usersTSMenuItem
// //
this.usersTSMenuItem.Name = "usersTSMenuItem";
resources.ApplyResources(this.usersTSMenuItem, "usersTSMenuItem"); resources.ApplyResources(this.usersTSMenuItem, "usersTSMenuItem");
this.usersTSMenuItem.Name = "usersTSMenuItem";
this.usersTSMenuItem.Click += new System.EventHandler(this.usersTSMItem_Click); this.usersTSMenuItem.Click += new System.EventHandler(this.usersTSMItem_Click);
// //
// localSettingsTSMenuItem // localSettingsTSMenuItem
// //
this.localSettingsTSMenuItem.Name = "localSettingsTSMenuItem";
resources.ApplyResources(this.localSettingsTSMenuItem, "localSettingsTSMenuItem"); resources.ApplyResources(this.localSettingsTSMenuItem, "localSettingsTSMenuItem");
this.localSettingsTSMenuItem.Name = "localSettingsTSMenuItem";
this.localSettingsTSMenuItem.Click += new System.EventHandler(this.localSettingsTSMItem_Click); this.localSettingsTSMenuItem.Click += new System.EventHandler(this.localSettingsTSMItem_Click);
// //
// databaseSettingsTSMenuItem // databaseSettingsTSMenuItem
// //
this.databaseSettingsTSMenuItem.Name = "databaseSettingsTSMenuItem";
resources.ApplyResources(this.databaseSettingsTSMenuItem, "databaseSettingsTSMenuItem"); resources.ApplyResources(this.databaseSettingsTSMenuItem, "databaseSettingsTSMenuItem");
this.databaseSettingsTSMenuItem.Name = "databaseSettingsTSMenuItem";
this.databaseSettingsTSMenuItem.Click += new System.EventHandler(this.databaseSettingsTSMItem_Click); 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 // passwortToolStripMenuItem
// //
this.passwortToolStripMenuItem.Name = "passwortToolStripMenuItem";
resources.ApplyResources(this.passwortToolStripMenuItem, "passwortToolStripMenuItem"); resources.ApplyResources(this.passwortToolStripMenuItem, "passwortToolStripMenuItem");
this.passwortToolStripMenuItem.Name = "passwortToolStripMenuItem";
// //
// upgradeTSMenuItem // upgradeTSMenuItem
// //
this.upgradeTSMenuItem.Name = "upgradeTSMenuItem";
resources.ApplyResources(this.upgradeTSMenuItem, "upgradeTSMenuItem"); resources.ApplyResources(this.upgradeTSMenuItem, "upgradeTSMenuItem");
this.upgradeTSMenuItem.Name = "upgradeTSMenuItem";
this.upgradeTSMenuItem.Click += new System.EventHandler(this.upgradeTSMenuItem_Click); this.upgradeTSMenuItem.Click += new System.EventHandler(this.upgradeTSMenuItem_Click);
// //
// iPerlHeadsToolStripMenuItem // iPerlHeadsToolStripMenuItem
// //
this.iPerlHeadsToolStripMenuItem.Name = "iPerlHeadsToolStripMenuItem";
resources.ApplyResources(this.iPerlHeadsToolStripMenuItem, "iPerlHeadsToolStripMenuItem"); resources.ApplyResources(this.iPerlHeadsToolStripMenuItem, "iPerlHeadsToolStripMenuItem");
this.iPerlHeadsToolStripMenuItem.Name = "iPerlHeadsToolStripMenuItem";
this.iPerlHeadsToolStripMenuItem.Click += new System.EventHandler(this.iPerlHeadsToolStripMenuItem_Click); 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 // helpTSMenuItem
// //
resources.ApplyResources(this.helpTSMenuItem, "helpTSMenuItem");
this.helpTSMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.helpTSMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.aboutTSMenuItem}); this.aboutTSMenuItem});
this.helpTSMenuItem.Name = "helpTSMenuItem"; this.helpTSMenuItem.Name = "helpTSMenuItem";
resources.ApplyResources(this.helpTSMenuItem, "helpTSMenuItem");
// //
// aboutTSMenuItem // aboutTSMenuItem
// //
this.aboutTSMenuItem.Name = "aboutTSMenuItem";
resources.ApplyResources(this.aboutTSMenuItem, "aboutTSMenuItem"); resources.ApplyResources(this.aboutTSMenuItem, "aboutTSMenuItem");
this.aboutTSMenuItem.Name = "aboutTSMenuItem";
this.aboutTSMenuItem.Click += new System.EventHandler(this.aboutTSMItem_Click); this.aboutTSMenuItem.Click += new System.EventHandler(this.aboutTSMItem_Click);
// //
// mainMenuStrip // mainMenuStrip
// //
resources.ApplyResources(this.mainMenuStrip, "mainMenuStrip");
this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.benchTSMenuItem, this.benchTSMenuItem,
this.proceduresToolStripMenuItem, this.proceduresToolStripMenuItem,
@@ -562,39 +627,32 @@ namespace TBF
this.logsTSMenuItem, this.logsTSMenuItem,
this.editTSMenuItem, this.editTSMenuItem,
this.helpTSMenuItem}); this.helpTSMenuItem});
resources.ApplyResources(this.mainMenuStrip, "mainMenuStrip");
this.mainMenuStrip.Name = "mainMenuStrip"; this.mainMenuStrip.Name = "mainMenuStrip";
// //
// proceduresToolStripMenuItem // proceduresToolStripMenuItem
// //
this.proceduresToolStripMenuItem.Name = "proceduresToolStripMenuItem";
resources.ApplyResources(this.proceduresToolStripMenuItem, "proceduresToolStripMenuItem"); resources.ApplyResources(this.proceduresToolStripMenuItem, "proceduresToolStripMenuItem");
this.proceduresToolStripMenuItem.Name = "proceduresToolStripMenuItem";
this.proceduresToolStripMenuItem.Click += new System.EventHandler(this.proceduresTSMItem_Click); this.proceduresToolStripMenuItem.Click += new System.EventHandler(this.proceduresTSMItem_Click);
// //
// processToolStripMenuItem // processToolStripMenuItem
// //
this.processToolStripMenuItem.Name = "processToolStripMenuItem";
resources.ApplyResources(this.processToolStripMenuItem, "processToolStripMenuItem"); resources.ApplyResources(this.processToolStripMenuItem, "processToolStripMenuItem");
this.processToolStripMenuItem.Name = "processToolStripMenuItem";
this.processToolStripMenuItem.Click += new System.EventHandler(this.processTSMenuItem_Click); this.processToolStripMenuItem.Click += new System.EventHandler(this.processTSMenuItem_Click);
// //
// resultsToolStripMenuItem // resultsToolStripMenuItem
// //
this.resultsToolStripMenuItem.Name = "resultsToolStripMenuItem";
resources.ApplyResources(this.resultsToolStripMenuItem, "resultsToolStripMenuItem"); resources.ApplyResources(this.resultsToolStripMenuItem, "resultsToolStripMenuItem");
this.resultsToolStripMenuItem.Name = "resultsToolStripMenuItem";
this.resultsToolStripMenuItem.Click += new System.EventHandler(this.resultsTSMenuItem_Click); this.resultsToolStripMenuItem.Click += new System.EventHandler(this.resultsTSMenuItem_Click);
// //
// graphsToolStripMenuItem // graphsToolStripMenuItem
// //
this.graphsToolStripMenuItem.Name = "graphsToolStripMenuItem";
resources.ApplyResources(this.graphsToolStripMenuItem, "graphsToolStripMenuItem"); resources.ApplyResources(this.graphsToolStripMenuItem, "graphsToolStripMenuItem");
this.graphsToolStripMenuItem.Name = "graphsToolStripMenuItem";
this.graphsToolStripMenuItem.Click += new System.EventHandler(this.graphsToolStripMenuItem_Click); 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 // MainWnd
// //
resources.ApplyResources(this, "$this"); resources.ApplyResources(this, "$this");
@@ -744,6 +802,9 @@ namespace TBF
private Screens.GraphsTabPageCtrl graphsTabPageCtrl; private Screens.GraphsTabPageCtrl graphsTabPageCtrl;
private System.Windows.Forms.ToolStripMenuItem iPerlHeadsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem iPerlHeadsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem clearCountersToolStripMenuItem; 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
View File
@@ -10,6 +10,8 @@ using Config.Entities;
using TBF.UiBridge; using TBF.UiBridge;
using TBF.Resources; using TBF.Resources;
using System.Threading; using System.Threading;
using System.Diagnostics;
using System.IO;
namespace TBF 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;
}
}
} }
} }
+148 -85
View File
@@ -117,119 +117,182 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="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"> <data name="activityGroupBox.Text" xml:space="preserve">
<value>Proces</value> <value>Proces</value>
</data> </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"> <data name="activityStatusLabel.Text" xml:space="preserve">
<value>Prosím, spusťte proceduru</value> <value>Prosím, spusťte proceduru</value>
</data> </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"> <data name="benchComponentsTSMenuItem.Text" xml:space="preserve">
<value>Komponenty</value> <value>Komponenty</value>
</data> </data>
<data name="benchMetrologyTSMenuItem.Text" xml:space="preserve">
<value>Metrologie</value>
</data>
<data name="benchPathsTSMenuItem.Text" xml:space="preserve"> <data name="benchPathsTSMenuItem.Text" xml:space="preserve">
<value>Cesty</value> <value>Cesty</value>
</data> </data>
<data name="benchTransitionsToolStripMenuItem.Text" xml:space="preserve"> <data name="benchTransitionsToolStripMenuItem.Text" xml:space="preserve">
<value>Přechody</value> <value>Přechody</value>
</data> </data>
<data name="benchTSMenuItem.Text" xml:space="preserve"> <data name="benchMetrologyTSMenuItem.Text" xml:space="preserve">
<value>Stolice</value> <value>Metrologie</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> </data>
<data name="exitToolStripMenuItem.Text" xml:space="preserve"> <data name="exitToolStripMenuItem.Text" xml:space="preserve">
<value>Ukončit</value> <value>Ukončit</value>
</data> </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"> <data name="homeTSMenuItem.Text" xml:space="preserve">
<value>Domů</value> <value>Domů</value>
</data> </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"> <data name="resultsTSMenuItem.Text" xml:space="preserve">
<value>Výsledky</value> <value>Výsledky</value>
</data> </data>
<data name="statusStrip1.Text" xml:space="preserve"> <data name="logsTSMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>Stavový pruh 1</value> <value>67, 20</value>
</data> </data>
<data name="userInfoStatusLabel.Text" xml:space="preserve"> <data name="logsTSMenuItem.Text" xml:space="preserve">
<value>Uživatel : admin</value> <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>
<data name="usersTSMenuItem.Text" xml:space="preserve"> <data name="usersTSMenuItem.Text" xml:space="preserve">
<value>Uživatelé</value> <value>Uživatelé</value>
</data> </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> </root>
+1357 -1321
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number // Build Number
// Revision // Revision
// //
[assembly: AssemblyVersion("2.18.1274.0")] [assembly: AssemblyVersion("2.18.1275.0")]
[assembly: AssemblyFileVersion("2.18.1274.0")] [assembly: AssemblyFileVersion("2.18.1275.0")]
+72
View File
@@ -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> /// <summary>
/// Looks up a localized string similar to Do you want to copy this value to all cells below this cell?. /// Looks up a localized string similar to Do you want to copy this value to all cells below this cell?.
/// </summary> /// </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> /// <summary>
/// Looks up a localized string similar to Do you want to save changes?. /// Looks up a localized string similar to Do you want to save changes?.
/// </summary> /// </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> /// <summary>
/// Looks up a localized string similar to Saving and printing results. /// Looks up a localized string similar to Saving and printing results.
/// </summary> /// </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> /// <summary>
/// Looks up a localized string similar to Saving results. /// Looks up a localized string similar to Saving results.
/// </summary> /// </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> /// <summary>
/// Looks up a localized string similar to Scale communication error. /// Looks up a localized string similar to Scale communication error.
/// </summary> /// </summary>
+18
View File
@@ -1443,4 +1443,22 @@
<data name="No_water_meter" xml:space="preserve"> <data name="No_water_meter" xml:space="preserve">
<value>Žádný vodoměr</value> <value>Žádný vodoměr</value>
</data> </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> </root>
+24
View File
@@ -2008,4 +2008,28 @@
<data name="More" xml:space="preserve"> <data name="More" xml:space="preserve">
<value>More</value> <value>More</value>
</data> </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> </root>