Login method selection is saved in local settings.
This commit is contained in:
@@ -32,6 +32,11 @@ namespace TBF
|
||||
[XmlIgnore]
|
||||
public int BenchesCount { get { return (TestBenches != null) ? TestBenches.GetLength(0) : 0; } }
|
||||
|
||||
/// <summary>
|
||||
/// Login method: UserName, FullName or Number
|
||||
/// </summary>
|
||||
public Config.Entities.LoginMethod LoginMethod;
|
||||
|
||||
/// <summary>
|
||||
/// Currently selected bench name (local or remote) or null (= no selection done).
|
||||
/// </summary>
|
||||
|
||||
@@ -189,7 +189,8 @@ namespace TBF
|
||||
{
|
||||
loginDlgBench = new LoginDlgWithBenchSelection();
|
||||
}
|
||||
DialogResult dr = loginDlgBench.ShowDialog();
|
||||
loginDlgBench.Method = LocalSettings.LoginMethod;
|
||||
DialogResult dr = loginDlgBench.ShowDialog();
|
||||
|
||||
if (dr == DialogResult.Cancel)
|
||||
{
|
||||
@@ -279,6 +280,8 @@ namespace TBF
|
||||
|
||||
if (authorized)
|
||||
{
|
||||
LocalSettings.LoginMethod = loginDlgBench.Method; /// Save the login method actually used
|
||||
|
||||
if (LocalSettings.TestBenches[i].IsRealBench)
|
||||
{
|
||||
/// This is a real bench ==> check if another instance is running
|
||||
|
||||
Reference in New Issue
Block a user