image.png (23.88 KB, 下载次数: 0)
下载附件
2024-5-7 17:57 上传
代码如下:
[color=]
[color=]private
[color=]
[color=]bool
[color=]
[color=]method_2
[color=]()
[color=]{
[color=]if
[color=]
[color=](
[color=]this
[color=].
[color=]textBox2
[color=].
Text
[color=].
Length
[color=]
[color=]
[color=]20
[color=])
[color=]{
[color=]MessageBox
[color=].
[color=]Show
[color=](
[color=]"注册码错误"
[color=]);
[color=]return
[color=]
[color=]false
[color=];
[color=]}
[color=]int
[color=]
[color=]num
[color=]
[color=]=
[color=]
[color=]0
[color=];
[color=]if
[color=]
[color=](
[color=]!
[color=]this
[color=].
[color=]mainForm_0
[color=].
[color=]CheckRegister2
[color=](
[color=]this
[color=].
[color=]textBox2
[color=].
Text
[color=],
[color=]
[color=]ref
[color=]
[color=]num
[color=]))
[color=]{
[color=]MessageBox
[color=].
[color=]Show
[color=](
[color=]"注册码错误"
[color=]);
[color=]return
[color=]
[color=]false
[color=];
[color=]}
[color=]this
[color=].
[color=]mainForm_0
[color=].
[color=]UserCount
[color=]
[color=]=
[color=]
[color=]num
[color=];
[color=]this
[color=].
[color=]mainForm_0
[color=].
[color=]MCID
[color=]
[color=]=
[color=]
[color=]this
[color=].
[color=]textBox1
[color=].
Text
[color=];
[color=]this
[color=].
[color=]method_5
[color=]();
[color=]if
[color=]
[color=](
[color=]num
[color=]
[color=]==
[color=]
[color=]999
[color=])
[color=]{
[color=]MessageBox
[color=].
[color=]Show
[color=](
[color=]"注册成功,(用户数-无限工作点)"
[color=]);
[color=]}
[color=]else
[color=]{
[color=]MessageBox
[color=].
[color=]Show
[color=](
[color=]"注册成功,(用户数-"
[color=]
[color=]+
[color=]
[color=]num
[color=].
[color=]ToString
[color=]()
[color=]
[color=]+
[color=]
[color=]")"
[color=]);
[color=]}
[color=]this
[color=].
[color=]SureClick
[color=]
[color=]=
[color=]
[color=]true
[color=];
[color=]this
[color=].
[color=]SelectValue
[color=]
[color=]=
[color=]
[color=]this
[color=].
[color=]textBox2
[color=].
Text
[color=];
[color=]base
[color=].
[color=]Close
[color=]();
[color=]return
[color=]
[color=]true
[color=];
[color=]}