📄 systemset_.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace ExamSystem {
/// <summary>
/// SystemSet 的摘要说明。
/// </summary>
public class SystemSet_ : System.Windows.Forms.Form {
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.TextBox na5;
private System.Windows.Forms.TextBox ip5;
private System.Windows.Forms.TextBox na4;
private System.Windows.Forms.TextBox ip4;
private System.Windows.Forms.TextBox na3;
private System.Windows.Forms.TextBox ip3;
private System.Windows.Forms.TextBox na2;
private System.Windows.Forms.TextBox ip2;
private System.Windows.Forms.TextBox na1;
private System.Windows.Forms.TextBox ip1;
private System.Windows.Forms.TextBox timeOut;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.TextBox localIP;
private System.Windows.Forms.TextBox serverIP;
private System.Windows.Forms.Button button3;
private MainForm main;
public SystemSet_(MainForm main) {
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
this.main = main;
this.IPBinder();
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing ) {
if( disposing ) {
if(components != null) {
components.Dispose();
}
}
base.Dispose( disposing );
}
private void IPBinder(){
this.ip1.Text = this.main.clientIPs[0].ToString();
this.ip2.Text = this.main.clientIPs[1].ToString();
this.ip3.Text = this.main.clientIPs[2].ToString();
this.ip4.Text = this.main.clientIPs[3].ToString();
this.ip5.Text = this.main.clientIPs[4].ToString();
this.na1.Text = this.main.clieckNas[0].ToString();
this.na2.Text = this.main.clieckNas[1].ToString();
this.na3.Text = this.main.clieckNas[2].ToString();
this.na4.Text = this.main.clieckNas[3].ToString();
this.na5.Text = this.main.clieckNas[4].ToString();
int timeOut_ = this.main.timeOut;
this.timeOut.Text = timeOut_.ToString();
this.localIP.Text = this.main.localIP;
this.serverIP.Text = this.main.serverIP;
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent() {
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label13 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.na5 = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.ip5 = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.na4 = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.ip4 = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.na3 = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.ip3 = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.na2 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.ip2 = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.na1 = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.ip1 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.label4 = new System.Windows.Forms.Label();
this.timeOut = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.serverIP = new System.Windows.Forms.TextBox();
this.label15 = new System.Windows.Forms.Label();
this.localIP = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.button3 = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label13);
this.groupBox1.Controls.Add(this.label12);
this.groupBox1.Controls.Add(this.na5);
this.groupBox1.Controls.Add(this.label10);
this.groupBox1.Controls.Add(this.ip5);
this.groupBox1.Controls.Add(this.label11);
this.groupBox1.Controls.Add(this.na4);
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.ip4);
this.groupBox1.Controls.Add(this.label7);
this.groupBox1.Controls.Add(this.na3);
this.groupBox1.Controls.Add(this.label8);
this.groupBox1.Controls.Add(this.ip3);
this.groupBox1.Controls.Add(this.label9);
this.groupBox1.Controls.Add(this.na2);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.ip2);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.na1);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.ip1);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Location = new System.Drawing.Point(488, 24);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(456, 184);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "客户端设置";
this.groupBox1.Visible = false;
//
// label13
//
this.label13.Location = new System.Drawing.Point(264, 24);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(104, 16);
this.label13.TabIndex = 21;
this.label13.Text = "对应应考者姓名";
//
// label12
//
this.label12.Location = new System.Drawing.Point(72, 24);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(56, 16);
this.label12.TabIndex = 20;
this.label12.Text = "IP地址";
//
// na5
//
this.na5.Location = new System.Drawing.Point(264, 144);
this.na5.Name = "na5";
this.na5.Size = new System.Drawing.Size(152, 21);
this.na5.TabIndex = 19;
this.na5.Text = "";
//
// label10
//
this.label10.Location = new System.Drawing.Point(232, 152);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(24, 16);
this.label10.TabIndex = 18;
this.label10.Text = "->";
//
// ip5
//
this.ip5.Location = new System.Drawing.Point(72, 144);
this.ip5.Name = "ip5";
this.ip5.Size = new System.Drawing.Size(152, 21);
this.ip5.TabIndex = 17;
this.ip5.Text = "";
//
// label11
//
this.label11.Location = new System.Drawing.Point(16, 152);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(56, 16);
this.label11.TabIndex = 16;
this.label11.Text = "客户机五";
//
// na4
//
this.na4.Location = new System.Drawing.Point(264, 120);
this.na4.Name = "na4";
this.na4.Size = new System.Drawing.Size(152, 21);
this.na4.TabIndex = 15;
this.na4.Text = "";
//
// label6
//
this.label6.Location = new System.Drawing.Point(232, 128);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(24, 16);
this.label6.TabIndex = 14;
this.label6.Text = "->";
//
// ip4
//
this.ip4.Location = new System.Drawing.Point(72, 120);
this.ip4.Name = "ip4";
this.ip4.Size = new System.Drawing.Size(152, 21);
this.ip4.TabIndex = 13;
this.ip4.Text = "";
//
// label7
//
this.label7.Location = new System.Drawing.Point(16, 128);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(56, 16);
this.label7.TabIndex = 12;
this.label7.Text = "客户机四";
//
// na3
//
this.na3.Location = new System.Drawing.Point(264, 96);
this.na3.Name = "na3";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -