ConfigurationForm - add chkAllowAutoLogin
This commit is contained in:
parent
a3543084b7
commit
1671d3b456
29
AIParkingApplication/ConfigurationForm.Designer.cs
generated
29
AIParkingApplication/ConfigurationForm.Designer.cs
generated
|
@ -41,6 +41,8 @@
|
||||||
this.lblDoorDeviceControlAccessIP = new System.Windows.Forms.Label();
|
this.lblDoorDeviceControlAccessIP = new System.Windows.Forms.Label();
|
||||||
this.lblAllowUsePrinter = new System.Windows.Forms.Label();
|
this.lblAllowUsePrinter = new System.Windows.Forms.Label();
|
||||||
this.chkAllowUsePrinter = new System.Windows.Forms.CheckBox();
|
this.chkAllowUsePrinter = new System.Windows.Forms.CheckBox();
|
||||||
|
this.lblAllowAutoLogin = new System.Windows.Forms.Label();
|
||||||
|
this.chkAllowAutoLogin = new System.Windows.Forms.CheckBox();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// txtDoorDeviceControlAccessIPStatus
|
// txtDoorDeviceControlAccessIPStatus
|
||||||
|
@ -86,7 +88,7 @@
|
||||||
// chkAllowChangeROIRect
|
// chkAllowChangeROIRect
|
||||||
//
|
//
|
||||||
this.chkAllowChangeROIRect.AutoSize = true;
|
this.chkAllowChangeROIRect.AutoSize = true;
|
||||||
this.chkAllowChangeROIRect.Location = new System.Drawing.Point(252, 97);
|
this.chkAllowChangeROIRect.Location = new System.Drawing.Point(252, 95);
|
||||||
this.chkAllowChangeROIRect.Name = "chkAllowChangeROIRect";
|
this.chkAllowChangeROIRect.Name = "chkAllowChangeROIRect";
|
||||||
this.chkAllowChangeROIRect.Size = new System.Drawing.Size(72, 17);
|
this.chkAllowChangeROIRect.Size = new System.Drawing.Size(72, 17);
|
||||||
this.chkAllowChangeROIRect.TabIndex = 5;
|
this.chkAllowChangeROIRect.TabIndex = 5;
|
||||||
|
@ -116,7 +118,7 @@
|
||||||
// lblAllowChangeROIRect
|
// lblAllowChangeROIRect
|
||||||
//
|
//
|
||||||
this.lblAllowChangeROIRect.AutoSize = true;
|
this.lblAllowChangeROIRect.AutoSize = true;
|
||||||
this.lblAllowChangeROIRect.Location = new System.Drawing.Point(11, 98);
|
this.lblAllowChangeROIRect.Location = new System.Drawing.Point(11, 96);
|
||||||
this.lblAllowChangeROIRect.Name = "lblAllowChangeROIRect";
|
this.lblAllowChangeROIRect.Name = "lblAllowChangeROIRect";
|
||||||
this.lblAllowChangeROIRect.Size = new System.Drawing.Size(211, 13);
|
this.lblAllowChangeROIRect.Size = new System.Drawing.Size(211, 13);
|
||||||
this.lblAllowChangeROIRect.TabIndex = 9;
|
this.lblAllowChangeROIRect.TabIndex = 9;
|
||||||
|
@ -166,6 +168,25 @@
|
||||||
this.chkAllowUsePrinter.Text = "Sử dụng";
|
this.chkAllowUsePrinter.Text = "Sử dụng";
|
||||||
this.chkAllowUsePrinter.UseVisualStyleBackColor = true;
|
this.chkAllowUsePrinter.UseVisualStyleBackColor = true;
|
||||||
//
|
//
|
||||||
|
// lblAllowAutoLogin
|
||||||
|
//
|
||||||
|
this.lblAllowAutoLogin.AutoSize = true;
|
||||||
|
this.lblAllowAutoLogin.Location = new System.Drawing.Point(11, 129);
|
||||||
|
this.lblAllowAutoLogin.Name = "lblAllowAutoLogin";
|
||||||
|
this.lblAllowAutoLogin.Size = new System.Drawing.Size(106, 13);
|
||||||
|
this.lblAllowAutoLogin.TabIndex = 9;
|
||||||
|
this.lblAllowAutoLogin.Text = "Tự động đăng nhập:";
|
||||||
|
//
|
||||||
|
// chkAllowAutoLogin
|
||||||
|
//
|
||||||
|
this.chkAllowAutoLogin.AutoSize = true;
|
||||||
|
this.chkAllowAutoLogin.Location = new System.Drawing.Point(141, 128);
|
||||||
|
this.chkAllowAutoLogin.Name = "chkAllowAutoLogin";
|
||||||
|
this.chkAllowAutoLogin.Size = new System.Drawing.Size(66, 17);
|
||||||
|
this.chkAllowAutoLogin.TabIndex = 5;
|
||||||
|
this.chkAllowAutoLogin.Text = "Sử dụng";
|
||||||
|
this.chkAllowAutoLogin.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
// ConfigurationForm
|
// ConfigurationForm
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
@ -175,9 +196,11 @@
|
||||||
this.Controls.Add(this.btnCheckDoorDeviceControlAccessIP);
|
this.Controls.Add(this.btnCheckDoorDeviceControlAccessIP);
|
||||||
this.Controls.Add(this.btnClose);
|
this.Controls.Add(this.btnClose);
|
||||||
this.Controls.Add(this.btnSaveSettings);
|
this.Controls.Add(this.btnSaveSettings);
|
||||||
|
this.Controls.Add(this.chkAllowAutoLogin);
|
||||||
this.Controls.Add(this.chkAllowUsePrinter);
|
this.Controls.Add(this.chkAllowUsePrinter);
|
||||||
this.Controls.Add(this.chkAllowChangeROIRect);
|
this.Controls.Add(this.chkAllowChangeROIRect);
|
||||||
this.Controls.Add(this.chkAllowAutoDoor2);
|
this.Controls.Add(this.chkAllowAutoDoor2);
|
||||||
|
this.Controls.Add(this.lblAllowAutoLogin);
|
||||||
this.Controls.Add(this.chkAllowAutoDoor1);
|
this.Controls.Add(this.chkAllowAutoDoor1);
|
||||||
this.Controls.Add(this.lblAllowUsePrinter);
|
this.Controls.Add(this.lblAllowUsePrinter);
|
||||||
this.Controls.Add(this.lblAllowChangeROIRect);
|
this.Controls.Add(this.lblAllowChangeROIRect);
|
||||||
|
@ -211,5 +234,7 @@
|
||||||
private System.Windows.Forms.Label lblDoorDeviceControlAccessIP;
|
private System.Windows.Forms.Label lblDoorDeviceControlAccessIP;
|
||||||
private System.Windows.Forms.Label lblAllowUsePrinter;
|
private System.Windows.Forms.Label lblAllowUsePrinter;
|
||||||
private System.Windows.Forms.CheckBox chkAllowUsePrinter;
|
private System.Windows.Forms.CheckBox chkAllowUsePrinter;
|
||||||
|
private System.Windows.Forms.Label lblAllowAutoLogin;
|
||||||
|
private System.Windows.Forms.CheckBox chkAllowAutoLogin;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -13,6 +13,7 @@ namespace AIParkingApplication
|
||||||
private bool allowAutoOpenDoor2;
|
private bool allowAutoOpenDoor2;
|
||||||
private bool allowUsePrinter;
|
private bool allowUsePrinter;
|
||||||
private bool allowChangeROIRect;
|
private bool allowChangeROIRect;
|
||||||
|
private bool allowAutoLogin;
|
||||||
|
|
||||||
public ConfigurationForm(Logger appLogger)
|
public ConfigurationForm(Logger appLogger)
|
||||||
{
|
{
|
||||||
|
@ -38,6 +39,7 @@ namespace AIParkingApplication
|
||||||
chkAllowAutoDoor2.Checked = allowAutoOpenDoor2;
|
chkAllowAutoDoor2.Checked = allowAutoOpenDoor2;
|
||||||
chkAllowUsePrinter.Checked = allowUsePrinter;
|
chkAllowUsePrinter.Checked = allowUsePrinter;
|
||||||
chkAllowChangeROIRect.Checked = allowChangeROIRect;
|
chkAllowChangeROIRect.Checked = allowChangeROIRect;
|
||||||
|
chkAllowAutoLogin.Checked = allowAutoLogin;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LoadConfiguration()
|
private void LoadConfiguration()
|
||||||
|
@ -47,6 +49,7 @@ namespace AIParkingApplication
|
||||||
bool.TryParse(ReadConfigurationFromAppSettings("AUTO_OPEN_DOOR_2", "false"), out allowAutoOpenDoor2);
|
bool.TryParse(ReadConfigurationFromAppSettings("AUTO_OPEN_DOOR_2", "false"), out allowAutoOpenDoor2);
|
||||||
bool.TryParse(ReadConfigurationFromAppSettings("USE_PRINTER", "false"), out allowUsePrinter);
|
bool.TryParse(ReadConfigurationFromAppSettings("USE_PRINTER", "false"), out allowUsePrinter);
|
||||||
bool.TryParse(ReadConfigurationFromAppSettings("ALLOW_CHANGE_ROI_RECT", "false"), out allowChangeROIRect);
|
bool.TryParse(ReadConfigurationFromAppSettings("ALLOW_CHANGE_ROI_RECT", "false"), out allowChangeROIRect);
|
||||||
|
bool.TryParse(ReadConfigurationFromAppSettings("AUTO_LOGIN", "false"), out allowAutoLogin);
|
||||||
}
|
}
|
||||||
|
|
||||||
private string ReadConfigurationFromAppSettings(string configurationKey, string defaultValueIfReadFailed)
|
private string ReadConfigurationFromAppSettings(string configurationKey, string defaultValueIfReadFailed)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user