Commit 2f5785f4 刘韬

1

1 个父辈 61e436ae
......@@ -31,9 +31,9 @@ namespace DeviceLibrary
//public bool UserPause { get; set; }
public bool IgnoreSafecheck { get; set; }
public bool IgnoreGratingSignal { get; set; }
public int NGBox_Count { get => nGBox_Count; set { nGBox_Count = value; ConfigHelper.Config.Set("NGBox_Count", value); ConfigHelper.Config.SaveChange(); } }
public int MSDBox_Count { get => mSDBox_Count; set { mSDBox_Count = value; ConfigHelper.Config.Set("MSDBox_Count", value); ConfigHelper.Config.SaveChange(); } }
public int PaperBox_Count { get => paperBox_Count; set { paperBox_Count = value; ConfigHelper.Config.Set("PaperBox_Count", value); ConfigHelper.Config.SaveChange(); } }
public int NGBox_Count { get => nGBox_Count; set { nGBox_Count = value; ConfigHelper.Config.Set("NGBox_Count", value); } }
public int MSDBox_Count { get => mSDBox_Count; set { mSDBox_Count = value; ConfigHelper.Config.Set("MSDBox_Count", value); } }
public int PaperBox_Count { get => paperBox_Count; set { paperBox_Count = value; ConfigHelper.Config.Set("PaperBox_Count", value); } }
private int nGBox_Count = 0;
private int mSDBox_Count = 0;
......
......@@ -84,14 +84,12 @@ namespace AutoCountMachine
private void cb_printerselect_SelectedIndexChanged(object sender, EventArgs e)
{
ConfigHelper.Config.Set(Setting_Init.PrinterName, (sender as ComboBox).Text);
ConfigHelper.Config.SaveChange();
RobotManage.LoadPrintSetting();
}
private void cb_labelselect_SelectedIndexChanged(object sender, EventArgs e)
{
ConfigHelper.Config.Set(Setting_Init.LabelName, (sender as ComboBox).Text);
ConfigHelper.Config.SaveChange();
RobotManage.LoadPrintSetting();
}
......
......@@ -36,7 +36,6 @@ namespace AutoCountMachine
private void cb_EnableBuzzer_CheckedChanged(object sender, EventArgs e)
{
Config.Set("EnableBuzzer", cb_EnableBuzzer.Checked);
Config.SaveChange();
AlarmBuzzer.Enable = cb_EnableBuzzer.Checked;
}
......
......@@ -45,7 +45,6 @@ namespace AutoCountMachine
if (textBox_password.Text == textBox_repassword.Text)
{
ConfigHelper.Config.Set("password_admin", textBox_password.Text);
ConfigHelper.Config.SaveChange();
DialogResult = DialogResult.OK;
}
else {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!