Commit f5217b5d LN

1

1 个父辈 4e0a0248
......@@ -37,6 +37,7 @@
this.txtLineAddr = new System.Windows.Forms.TextBox();
this.txthttpAddr = new System.Windows.Forms.TextBox();
this.btnReset = new System.Windows.Forms.Button();
this.chbDebug = new System.Windows.Forms.CheckBox();
this.SuspendLayout();
//
// label1
......@@ -54,7 +55,7 @@
this.btnNext.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.btnNext.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnNext.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnNext.Location = new System.Drawing.Point(283, 240);
this.btnNext.Location = new System.Drawing.Point(283, 277);
this.btnNext.Name = "btnNext";
this.btnNext.Size = new System.Drawing.Size(120, 45);
this.btnNext.TabIndex = 275;
......@@ -67,7 +68,7 @@
this.btnBack.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.btnBack.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnBack.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnBack.Location = new System.Drawing.Point(157, 240);
this.btnBack.Location = new System.Drawing.Point(157, 277);
this.btnBack.Name = "btnBack";
this.btnBack.Size = new System.Drawing.Size(120, 45);
this.btnBack.TabIndex = 274;
......@@ -136,11 +137,24 @@
this.btnReset.UseVisualStyleBackColor = false;
this.btnReset.Click += new System.EventHandler(this.btnReset_Click);
//
// chbDebug
//
this.chbDebug.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.chbDebug.AutoSize = true;
this.chbDebug.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.chbDebug.Location = new System.Drawing.Point(171, 224);
this.chbDebug.Name = "chbDebug";
this.chbDebug.Size = new System.Drawing.Size(93, 25);
this.chbDebug.TabIndex = 282;
this.chbDebug.Text = "调试状态";
this.chbDebug.UseVisualStyleBackColor = true;
//
// FrmIdConfig
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(561, 329);
this.ClientSize = new System.Drawing.Size(561, 389);
this.Controls.Add(this.chbDebug);
this.Controls.Add(this.btnReset);
this.Controls.Add(this.txthttpAddr);
this.Controls.Add(this.txtLineAddr);
......@@ -171,5 +185,6 @@
private System.Windows.Forms.TextBox txtLineAddr;
private System.Windows.Forms.TextBox txthttpAddr;
private System.Windows.Forms.Button btnReset;
private System.Windows.Forms.CheckBox chbDebug;
}
}
\ No newline at end of file

using OnlineStore.Common;
using OnlineStore.DeviceLibrary;
using OnlineStore.LoadCSVLibrary;
using System;
using System.Collections.Generic;
......@@ -39,6 +40,7 @@ namespace OnlineStore.ACSingleStore
{
cmbId.SelectedIndex = StoreId - 1;
}
chbDebug.Checked = StoreManager.Store.IsDebug;
}
private void btnNext_Click(object sender, EventArgs e)
......@@ -61,7 +63,8 @@ namespace OnlineStore.ACSingleStore
ConfigAppSettings.SaveValue(Setting_Init.http_server, httpstr);
string lineStr = txtLineAddr.Text.Trim();
ConfigAppSettings.SaveValue(Setting_Init.LineServerIp, lineStr);
StoreManager.Store.IsDebug = chbDebug.Checked;
ConfigAppSettings.SaveValue(Setting_Init.IsInDebug, chbDebug.Checked ? 1 : 0);
MessageBox.Show("保存成功,请重启客户端");
this.DialogResult = DialogResult.OK;
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!