Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit f5217b5d
由
LN
编写于
2019-11-19 10:04:14 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
4e0a0248
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
22 行增加
和
4 行删除
source/ACSingleStore/FrmIDConfig.Designer.cs
source/ACSingleStore/FrmIDConfig.cs
source/ACSingleStore/FrmIDConfig.Designer.cs
查看文件 @
f5217b5
...
...
@@ -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
,
2
40
);
this
.
btnNext
.
Location
=
new
System
.
Drawing
.
Point
(
283
,
2
77
);
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
,
2
40
);
this
.
btnBack
.
Location
=
new
System
.
Drawing
.
Point
(
157
,
2
77
);
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
source/ACSingleStore/FrmIDConfig.cs
查看文件 @
f5217b5
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!
Cancel
请
注册
或
登录
后发表评论