⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 systemset_.cs

📁 网络考试系统 系统基于 .NET 框架开发
💻 CS
📖 第 1 页 / 共 2 页
字号:
			this.na3.Size = new System.Drawing.Size(152, 21);
			this.na3.TabIndex = 11;
			this.na3.Text = "";
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(232, 104);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(24, 16);
			this.label8.TabIndex = 10;
			this.label8.Text = "->";
			// 
			// ip3
			// 
			this.ip3.Location = new System.Drawing.Point(72, 96);
			this.ip3.Name = "ip3";
			this.ip3.Size = new System.Drawing.Size(152, 21);
			this.ip3.TabIndex = 9;
			this.ip3.Text = "";
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(16, 104);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(56, 16);
			this.label9.TabIndex = 8;
			this.label9.Text = "客户机三";
			// 
			// na2
			// 
			this.na2.Location = new System.Drawing.Point(264, 72);
			this.na2.Name = "na2";
			this.na2.Size = new System.Drawing.Size(152, 21);
			this.na2.TabIndex = 7;
			this.na2.Text = "2";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(232, 80);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(24, 16);
			this.label3.TabIndex = 6;
			this.label3.Text = "->";
			// 
			// ip2
			// 
			this.ip2.Location = new System.Drawing.Point(72, 72);
			this.ip2.Name = "ip2";
			this.ip2.Size = new System.Drawing.Size(152, 21);
			this.ip2.TabIndex = 5;
			this.ip2.Text = "192.168.66.88";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(16, 80);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(56, 16);
			this.label5.TabIndex = 4;
			this.label5.Text = "客户机二";
			// 
			// na1
			// 
			this.na1.Location = new System.Drawing.Point(264, 48);
			this.na1.Name = "na1";
			this.na1.Size = new System.Drawing.Size(152, 21);
			this.na1.TabIndex = 3;
			this.na1.Text = "1";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(232, 56);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(24, 16);
			this.label2.TabIndex = 2;
			this.label2.Text = "->";
			// 
			// ip1
			// 
			this.ip1.Location = new System.Drawing.Point(72, 48);
			this.ip1.Name = "ip1";
			this.ip1.Size = new System.Drawing.Size(152, 21);
			this.ip1.TabIndex = 1;
			this.ip1.Text = "192.168.66.110";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(16, 56);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(56, 16);
			this.label1.TabIndex = 0;
			this.label1.Text = "客户机一";
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.label4);
			this.groupBox2.Controls.Add(this.timeOut);
			this.groupBox2.Location = new System.Drawing.Point(488, 216);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(456, 56);
			this.groupBox2.TabIndex = 1;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "抢答题过期时间";
			this.groupBox2.Visible = false;
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(176, 32);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(24, 16);
			this.label4.TabIndex = 3;
			this.label4.Text = "秒";
			// 
			// timeOut
			// 
			this.timeOut.Location = new System.Drawing.Point(16, 24);
			this.timeOut.Name = "timeOut";
			this.timeOut.Size = new System.Drawing.Size(152, 21);
			this.timeOut.TabIndex = 2;
			this.timeOut.Text = "10";
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(336, 88);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(64, 23);
			this.button1.TabIndex = 2;
			this.button1.Text = "确定";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// groupBox3
			// 
			this.groupBox3.Controls.Add(this.serverIP);
			this.groupBox3.Controls.Add(this.label15);
			this.groupBox3.Controls.Add(this.localIP);
			this.groupBox3.Controls.Add(this.label14);
			this.groupBox3.Location = new System.Drawing.Point(8, 16);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(456, 56);
			this.groupBox3.TabIndex = 4;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "电脑IP设置";
			// 
			// serverIP
			// 
			this.serverIP.Location = new System.Drawing.Point(264, 24);
			this.serverIP.Name = "serverIP";
			this.serverIP.Size = new System.Drawing.Size(152, 21);
			this.serverIP.TabIndex = 6;
			this.serverIP.Text = "192.168.66.";
			// 
			// label15
			// 
			this.label15.Location = new System.Drawing.Point(208, 32);
			this.label15.Name = "label15";
			this.label15.Size = new System.Drawing.Size(56, 16);
			this.label15.TabIndex = 5;
			this.label15.Text = "服务器IP";
			// 
			// localIP
			// 
			this.localIP.Location = new System.Drawing.Point(48, 24);
			this.localIP.Name = "localIP";
			this.localIP.Size = new System.Drawing.Size(152, 21);
			this.localIP.TabIndex = 4;
			this.localIP.Text = "192.168.66.";
			// 
			// label14
			// 
			this.label14.Location = new System.Drawing.Point(8, 32);
			this.label14.Name = "label14";
			this.label14.Size = new System.Drawing.Size(48, 16);
			this.label14.TabIndex = 3;
			this.label14.Text = "本机IP";
			// 
			// button3
			// 
			this.button3.Location = new System.Drawing.Point(400, 88);
			this.button3.Name = "button3";
			this.button3.Size = new System.Drawing.Size(64, 23);
			this.button3.TabIndex = 5;
			this.button3.Text = "取消";
			this.button3.Click += new System.EventHandler(this.button3_Click);
			// 
			// SystemSet_
			// 
			this.AcceptButton = this.button1;
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(472, 119);
			this.Controls.Add(this.button3);
			this.Controls.Add(this.groupBox3);
			this.Controls.Add(this.button1);
			this.Controls.Add(this.groupBox2);
			this.Controls.Add(this.groupBox1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "SystemSet_";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "系统设置";
			this.groupBox1.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.groupBox3.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// 取消
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void button2_Click(object sender, System.EventArgs e) {
			this.Close();
		}

		/// <summary>
		/// 保存到主窗口
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void button1_Click(object sender, System.EventArgs e) {

			if(this.localIP.Text.Trim() == "" || this.serverIP.Text == ""){
				MessageBox.Show("本机和服务器IP地址必须设置");
				return;
			}

			this.main.clientIPs[0] = this.ip1.Text;
			this.main.clientIPs[1] = this.ip2.Text;
			this.main.clientIPs[2] = this.ip3.Text;
			this.main.clientIPs[3] = this.ip4.Text;
			this.main.clientIPs[4] = this.ip5.Text;

			this.main.clieckNas[0] = this.na1.Text;
			this.main.clieckNas[1] = this.na2.Text;
			this.main.clieckNas[2] = this.na3.Text;
			this.main.clieckNas[3] = this.na4.Text;
			this.main.clieckNas[4] = this.na5.Text;

			this.main.timeOut      = Int32.Parse(this.timeOut.Text);
			this.main.localIP      = this.localIP.Text;
			this.main.serverIP     = this.serverIP.Text;

			this.main.SaveSysteSet();

			this.Close();
		}

		private void button3_Click(object sender, System.EventArgs e) {
			this.Close();
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -