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

📄 proxysetting.cs

📁 语音视频功能 里面实现了基本的QQ与语音对话
💻 CS
字号:
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;

namespace gowk.forms
{
	/// <summary>
	/// ProxySetting 的摘要说明。
	/// </summary>
	
	public class ProxySetting : gowk.controls.GPanel
	{
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private gowk.controls.GComboBox cmbIP;
		private gowk.controls.GComboBox cmbType;
		private gowk.controls.GTextBox txtPort;
		private gowk.controls.GTextBox txtPass;
		private gowk.controls.GTextBox txtUser;
		private gowk.controls.GButton btnOK;
		private gowk.controls.GButton btnCancel;
		/// <summary> 
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public ProxySetting()
		{
			// 该调用是 Windows.Forms 窗体设计器所必需的。
			InitializeComponent();
this.LostFocus+=new EventHandler(ProxySetting_LostFocus);
			// TODO: 在 InitializeComponent 调用后添加任何初始化

		}

		/// <summary> 
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}
		#region
		/*
				#region 组件设计器生成的代码
				/// <summary> 
				/// 设计器支持所需的方法 - 不要使用代码编辑器 
				/// 修改此方法的内容。
				/// </summary>
				private void InitializeComponent()
				{
					this.label2 = new System.Windows.Forms.Label();
					this.label3 = new System.Windows.Forms.Label();
					this.label4 = new System.Windows.Forms.Label();
					this.label5 = new System.Windows.Forms.Label();
					this.label6 = new System.Windows.Forms.Label();
					this.cmbIP = new gowk.controls.GComboBox();
					this.cmbType = new gowk.controls.GComboBox();
					this.txtPort = new gowk.controls.GTextBox();
					this.txtPass = new gowk.controls.GTextBox();
					this.txtUser = new gowk.controls.GTextBox();
					this.btnOK = new gowk.controls.GButton();
					this.btnCancel = new gowk.controls.GButton();
					this.SuspendLayout();
					// 
					// label2
					// 
					this.label2.Anchor = System.Windows.Forms.AnchorStyles.None;
					this.label2.Location = new System.Drawing.Point(8, 30);
					this.label2.Name = "label2";
					this.label2.Size = new System.Drawing.Size(48, 23);
					this.label2.TabIndex = 2;
					this.label2.Text = "类型";
					// 
					// label3
					// 
					this.label3.Anchor = System.Windows.Forms.AnchorStyles.None;
					this.label3.Location = new System.Drawing.Point(8, 64);
					this.label3.Name = "label3";
					this.label3.Size = new System.Drawing.Size(48, 23);
					this.label3.TabIndex = 3;
					this.label3.Text = "地址";
					// 
					// label4
					// 
					this.label4.Anchor = System.Windows.Forms.AnchorStyles.None;
					this.label4.Location = new System.Drawing.Point(80, 64);
					this.label4.Name = "label4";
					this.label4.Size = new System.Drawing.Size(48, 23);
					this.label4.TabIndex = 6;
					this.label4.Text = "端口";
					// 
					// label5
					// 
					this.label5.Anchor = System.Windows.Forms.AnchorStyles.None;
					this.label5.Location = new System.Drawing.Point(8, 95);
					this.label5.Name = "label5";
					this.label5.Size = new System.Drawing.Size(34, 16);
					this.label5.TabIndex = 7;
					this.label5.Text = "用户";
					// 
					// label6
					// 
					this.label6.Anchor = System.Windows.Forms.AnchorStyles.None;
					this.label6.Location = new System.Drawing.Point(8, 126);
					this.label6.Name = "label6";
					this.label6.Size = new System.Drawing.Size(48, 24);
					this.label6.TabIndex = 8;
					this.label6.Text = "密码";
					// 
					// cmbIP
					// 
					this.cmbIP.Anchor = System.Windows.Forms.AnchorStyles.None;
					this.cmbIP.BackColor = System.Drawing.SystemColors.Window;
					this.cmbIP.DockPadding.All = 3;
					this.cmbIP.GBorderStyle = gowk.controls.GBorderStyle.Solid;
					this.cmbIP.IsRound = true;
					this.cmbIP.Location = new System.Drawing.Point(40, 56);
					this.cmbIP.MaxDropDownItems = 5;
					this.cmbIP.Name = "cmbIP";
					this.cmbIP.SelectedIndex = -1;
					this.cmbIP.SelectedItem = null;
					this.cmbIP.Size = new System.Drawing.Size(40, 24);
					this.cmbIP.TabIndex = 9;
					// 
					// cmbType
					// 
					this.cmbType.Anchor = System.Windows.Forms.AnchorStyles.None;
					this.cmbType.BackColor = System.Drawing.SystemColors.Window;
					this.cmbType.DockPadding.All = 3;
					this.cmbType.GBorderStyle = gowk.controls.GBorderStyle.Solid;
					this.cmbType.IsRound = true;
					this.cmbType.Location = new System.Drawing.Point(40, 24);
					this.cmbType.MaxDropDownItems = 5;
					this.cmbType.Name = "cmbType";
					this.cmbType.SelectedIndex = -1;
					this.cmbType.SelectedItem = null;
					this.cmbType.Size = new System.Drawing.Size(100, 24);
					this.cmbType.TabIndex = 10;
					// 
					// txtPort
					// 
					this.txtPort.Anchor = System.Windows.Forms.AnchorStyles.None;
					this.txtPort.BackColor = System.Drawing.SystemColors.Window;
					this.txtPort.DockPadding.All = 3;
					this.txtPort.GBorderStyle = gowk.controls.GBorderStyle.Solid;
					this.txtPort.IsRound = true;
					this.txtPort.Location = new System.Drawing.Point(112, 56);
					this.txtPort.Name = "txtPort";
					this.txtPort.PasswordChar = '\0';
					this.txtPort.Size = new System.Drawing.Size(24, 24);
					this.txtPort.TabIndex = 11;
					// 
					// txtPass
					// 
					this.txtPass.Anchor = System.Windows.Forms.AnchorStyles.None;
					this.txtPass.BackColor = System.Drawing.SystemColors.Window;
					this.txtPass.DockPadding.All = 3;
					this.txtPass.GBorderStyle = gowk.controls.GBorderStyle.Solid;
					this.txtPass.IsRound = false;
					this.txtPass.Location = new System.Drawing.Point(40, 120);
					this.txtPass.Name = "txtPass";
					this.txtPass.PasswordChar = '\0';
					this.txtPass.Size = new System.Drawing.Size(98, 24);
					this.txtPass.TabIndex = 12;
					// 
					// txtUser
					// 
					this.txtUser.Anchor = System.Windows.Forms.AnchorStyles.None;
					this.txtUser.BackColor = System.Drawing.SystemColors.Window;
					this.txtUser.DockPadding.All = 3;
					this.txtUser.GBorderStyle = gowk.controls.GBorderStyle.Solid;
					this.txtUser.IsRound = true;
					this.txtUser.Location = new System.Drawing.Point(40, 88);
					this.txtUser.Name = "txtUser";
					this.txtUser.PasswordChar = '\0';
					this.txtUser.Size = new System.Drawing.Size(100, 24);
					this.txtUser.TabIndex = 13;
					// 
					// btnOK
					// 
					this.btnOK.Anchor = System.Windows.Forms.AnchorStyles.None;
					this.btnOK.GBorderStyle = gowk.controls.GBorderStyle.Solid;
					this.btnOK.IsRound = true;
					this.btnOK.Location = new System.Drawing.Point(32, 152);
					this.btnOK.Name = "btnOK";
					this.btnOK.Size = new System.Drawing.Size(32, 24);
					this.btnOK.TabIndex = 15;
					// 
					// btnCancel
					// 
					this.btnCancel.Anchor = System.Windows.Forms.AnchorStyles.None;
					this.btnCancel.GBorderStyle = gowk.controls.GBorderStyle.Solid;
					this.btnCancel.IsRound = true;
					this.btnCancel.Location = new System.Drawing.Point(80, 152);
					this.btnCancel.Name = "btnCancel";
					this.btnCancel.Size = new System.Drawing.Size(32, 24);
					this.btnCancel.TabIndex = 16;
					// 
					// ProxySetting
					// 
					this.Controls.Add(this.btnCancel);
					this.Controls.Add(this.btnOK);
					this.Controls.Add(this.txtUser);
					this.Controls.Add(this.txtPass);
					this.Controls.Add(this.txtPort);
					this.Controls.Add(this.cmbType);
					this.Controls.Add(this.cmbIP);
					this.Controls.Add(this.label6);
					this.Controls.Add(this.label5);
					this.Controls.Add(this.label4);
					this.Controls.Add(this.label3);
					this.Controls.Add(this.label2);
					this.Name = "ProxySetting";
					this.Size = new System.Drawing.Size(152, 192);
					this.ResumeLayout(false);

				}
				#endregion
 * */
		#endregion
		#region 组件设计器生成的代码
		/// <summary> 
		/// 设计器支持所需的方法 - 不要使用代码编辑器 
		/// 修改此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.label2 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.cmbIP = new gowk.controls.GComboBox();
			this.cmbType = new gowk.controls.GComboBox();
			this.txtPort = new gowk.controls.GTextBox();
			this.txtPass = new gowk.controls.GTextBox();
			this.txtUser = new gowk.controls.GTextBox();
			this.btnOK = new gowk.controls.GButton();
			this.btnCancel = new gowk.controls.GButton();
			this.SuspendLayout();
			// 
			// label2
			// 
			this.label2.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.label2.Location = new System.Drawing.Point(8, 30);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(48, 23);
			this.label2.TabIndex = 2;
			this.label2.Text = "类型";
			// 
			// label3
			// 
			this.label3.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.label3.Location = new System.Drawing.Point(8, 64);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(48, 23);
			this.label3.TabIndex = 3;
			this.label3.Text = "地址";
			// 
			// label4
			// 
			this.label4.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.label4.Location = new System.Drawing.Point(80, 64);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(48, 23);
			this.label4.TabIndex = 6;
			this.label4.Text = "端口";
			// 
			// label5
			// 
			this.label5.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.label5.Location = new System.Drawing.Point(8, 95);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(34, 16);
			this.label5.TabIndex = 7;
			this.label5.Text = "用户";
			// 
			// label6
			// 
			this.label6.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.label6.Location = new System.Drawing.Point(8, 126);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(48, 24);
			this.label6.TabIndex = 8;
			this.label6.Text = "密码";
			// 
			// cmbIP
			// 
			this.cmbIP.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.cmbIP.BackColor = System.Drawing.SystemColors.Window;
			this.cmbIP.DockPadding.All = 3;
			this.cmbIP.GBorderStyle = gowk.controls.GBorderStyle.Solid;
			this.cmbIP.IsRound = true;
			this.cmbIP.Location = new System.Drawing.Point(40, 56);
			this.cmbIP.MaxDropDownItems = 5;
			this.cmbIP.Name = "cmbIP";
			this.cmbIP.SelectedIndex = -1;
			this.cmbIP.SelectedItem = null;
			this.cmbIP.Size = new System.Drawing.Size(40, 24);
			this.cmbIP.TabIndex = 9;
			// 
			// cmbType
			// 
			this.cmbType.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.cmbType.BackColor = System.Drawing.SystemColors.Window;
			this.cmbType.DockPadding.All = 3;
			this.cmbType.GBorderStyle = gowk.controls.GBorderStyle.Solid;
			this.cmbType.IsRound = true;
			this.cmbType.Location = new System.Drawing.Point(40, 24);
			this.cmbType.MaxDropDownItems = 5;
			this.cmbType.Name = "cmbType";
			this.cmbType.SelectedIndex = -1;
			this.cmbType.SelectedItem = null;
			this.cmbType.Size = new System.Drawing.Size(100, 24);
			this.cmbType.TabIndex = 10;
			// 
			// txtPort
			// 
			this.txtPort.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.txtPort.BackColor = System.Drawing.SystemColors.Window;
			this.txtPort.DockPadding.All = 3;
			this.txtPort.GBorderStyle = gowk.controls.GBorderStyle.Solid;
			this.txtPort.IsRound = true;
			this.txtPort.Location = new System.Drawing.Point(112, 56);
			this.txtPort.Name = "txtPort";
			this.txtPort.PasswordChar = '\0';
			this.txtPort.Size = new System.Drawing.Size(24, 24);
			this.txtPort.TabIndex = 11;
			// 
			// txtPass
			// 
			this.txtPass.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.txtPass.BackColor = System.Drawing.SystemColors.Window;
			this.txtPass.DockPadding.All = 3;
			this.txtPass.GBorderStyle = gowk.controls.GBorderStyle.Solid;
			this.txtPass.IsRound = false;
			this.txtPass.Location = new System.Drawing.Point(40, 120);
			this.txtPass.Name = "txtPass";
			this.txtPass.PasswordChar = '\0';
			this.txtPass.Size = new System.Drawing.Size(98, 24);
			this.txtPass.TabIndex = 12;
			// 
			// txtUser
			// 
			this.txtUser.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.txtUser.BackColor = System.Drawing.SystemColors.Window;
			this.txtUser.DockPadding.All = 3;
			this.txtUser.GBorderStyle = gowk.controls.GBorderStyle.Solid;
			this.txtUser.IsRound = true;
			this.txtUser.Location = new System.Drawing.Point(40, 88);
			this.txtUser.Name = "txtUser";
			this.txtUser.PasswordChar = '\0';
			this.txtUser.Size = new System.Drawing.Size(100, 24);
			this.txtUser.TabIndex = 13;
			// 
			// btnOK
			// 
			this.btnOK.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.btnOK.GBorderStyle = gowk.controls.GBorderStyle.Solid;
			this.btnOK.IsRound = true;
			this.btnOK.Location = new System.Drawing.Point(32, 152);
			this.btnOK.Name = "btnOK";
			this.btnOK.Size = new System.Drawing.Size(32, 24);
			this.btnOK.TabIndex = 15;
			// 
			// btnCancel
			// 
			this.btnCancel.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.btnCancel.GBorderStyle = gowk.controls.GBorderStyle.Solid;
			this.btnCancel.IsRound = true;
			this.btnCancel.Location = new System.Drawing.Point(80, 152);
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.Size = new System.Drawing.Size(32, 24);
			this.btnCancel.TabIndex = 16;
			// 
			// ProxySetting
			// 
			this.Controls.Add(this.btnCancel);
			this.Controls.Add(this.btnOK);
			this.Controls.Add(this.txtUser);
			this.Controls.Add(this.txtPass);
			this.Controls.Add(this.txtPort);
			this.Controls.Add(this.cmbType);
			this.Controls.Add(this.cmbIP);
			this.Controls.Add(this.label6);
			this.Controls.Add(this.label5);
			this.Controls.Add(this.label4);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.label2);
			this.Name = "ProxySetting";
			this.Size = new System.Drawing.Size(152, 192);
			this.ResumeLayout(false);

		}
		#endregion

		private void ProxySetting_LostFocus(object sender, EventArgs e)
		{
			this.Hide();
		}
	}
}

⌨️ 快捷键说明

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