Form1.cs
资源名称:类似QQ聊天程序.rar [点击查看]
上传用户:yan_wy
上传日期:2007-06-09
资源大小:112k
文件大小:29k
源码类别:
ICQ/即时通讯
开发平台:
C#
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- using System.Data;
- using System.Net.Sockets ;
- using System.Net ;
- using System.IO;
- namespace qq
- {
- /// <summary>
- /// Form1 的摘要说明。
- /// </summary>
- public class Form1 : System.Windows.Forms.Form
- {
- 验证 yanzhen;
- 注册 zhuche;
- public int isinline;
- public System.Collections.ArrayList userlist;
- private System.Windows.Forms.Panel panel1;
- private System.Windows.Forms.Panel panel2;
- private System.Windows.Forms.Panel panel3;
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.Button button2;
- private System.Windows.Forms.Label label1;
- public System.Windows.Forms.Panel panel4;
- private System.Windows.Forms.Splitter splitter1;
- private System.Windows.Forms.Splitter splitter2;
- private System.Windows.Forms.Button button3;
- private System.Windows.Forms.Button button4;
- public string userid;
- public string ip;
- public string path;
- public string name;
- public string mima;
- public user use;
- public severdata sdata;
- private System.Windows.Forms.ContextMenu contextMenu1;
- private System.Windows.Forms.MenuItem menuItem1;
- private System.Windows.Forms.MenuItem menuItem2;
- // private qq.UserControl1 aaa;
- /// <summary>
- /// 必需的设计器变量。
- /// </summary>
- private System.ComponentModel.Container components = null;
- public Form1(注册 abc,验证 a)
- {
- try
- {
- System.IO.FileInfo fle=new FileInfo("./");
- path=fle.FullName;
- yanzhen=a;
- zhuche=abc;
- this.ip=abc.textBox4.Text.Trim();
- InitializeComponent();
- this.isinline=1;
- userlist=new ArrayList();
- use=new user (this);
- this.isinline=use.isline;
- sdata=new severdata(this);
- this.mima=abc.textBox2.Text;
- sdata.adduse(abc.textBox1.Text,abc.textBox2.Text,abc.richTextBox1.Text,abc.numericUpDown1.Text);
- int ssss=sdata.yanzhen();
- if(ssss==0)
- {
- MessageBox.Show("密码不对或没有此用户");
- }
- else if(ssss==2)
- {
- this.isinline=0;
- }
- else sdata.Startset();
- use.startset();
- sdata.shanxian();
- this.label1.Text=this.userid+"("+this.name+") ";
- if(this.isinline==0)
- {
- MessageBox.Show("连接不上服务器");
- }
- }
- catch(Exception ee)
- {
- }
- }
- public Form1(验证 aaa)
- {
- //
- // Windows 窗体设计器支持所必需的
- //
- try
- {
- System.IO.FileInfo fle=new FileInfo("./");
- path=fle.FullName;
- yanzhen=aaa;
- userid=aaa.textBox1.Text;
- ip=aaa.textBox3.Text.Trim();
- mima=aaa.textBox2.Text;
- InitializeComponent();
- this.isinline=1;
- userlist=new ArrayList();
- use=new user (this);
- this.isinline=use.isline;
- sdata=new severdata(this);
- int ssss=sdata.yanzhen();
- if(ssss==0)
- {
- MessageBox.Show("密码不对或没有此用户");
- }
- else if(ssss==2)
- {
- this.isinline=0;
- }
- else sdata.Startset();
- use.startset();
- sdata.shanxian();
- this.label1.Text=this.userid+"("+this.name+") ";
- if(this.isinline==0)
- {
- MessageBox.Show("连接不上服务器");
- }
- }
- catch(Exception ee)
- {
- }
- //
- // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
- //
- }
- /// <summary>
- /// 清理所有正在使用的资源。
- /// </summary>
- ///
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose( disposing );
- }
- #region Windows 窗体设计器生成的代码
- /// <summary>
- /// 设计器支持所需的方法 - 不要使用代码编辑器修改
- /// 此方法的内容。
- /// </summary>
- private void InitializeComponent()
- {
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
- this.panel1 = new System.Windows.Forms.Panel();
- this.panel4 = new System.Windows.Forms.Panel();
- this.panel3 = new System.Windows.Forms.Panel();
- this.splitter2 = new System.Windows.Forms.Splitter();
- this.label1 = new System.Windows.Forms.Label();
- this.panel2 = new System.Windows.Forms.Panel();
- this.button4 = new System.Windows.Forms.Button();
- this.button3 = new System.Windows.Forms.Button();
- this.splitter1 = new System.Windows.Forms.Splitter();
- this.button2 = new System.Windows.Forms.Button();
- this.button1 = new System.Windows.Forms.Button();
- this.contextMenu1 = new System.Windows.Forms.ContextMenu();
- this.menuItem1 = new System.Windows.Forms.MenuItem();
- this.menuItem2 = new System.Windows.Forms.MenuItem();
- this.panel1.SuspendLayout();
- this.panel3.SuspendLayout();
- this.panel2.SuspendLayout();
- this.SuspendLayout();
- //
- // panel1
- //
- this.panel1.AccessibleDescription = resources.GetString("panel1.AccessibleDescription");
- this.panel1.AccessibleName = resources.GetString("panel1.AccessibleName");
- this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("panel1.Anchor")));
- this.panel1.AutoScroll = ((bool)(resources.GetObject("panel1.AutoScroll")));
- this.panel1.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("panel1.AutoScrollMargin")));
- this.panel1.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("panel1.AutoScrollMinSize")));
- this.panel1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(225)));
- this.panel1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel1.BackgroundImage")));
- this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.panel1.Controls.Add(this.panel4);
- this.panel1.Controls.Add(this.panel3);
- this.panel1.Controls.Add(this.panel2);
- this.panel1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("panel1.Dock")));
- this.panel1.Enabled = ((bool)(resources.GetObject("panel1.Enabled")));
- this.panel1.Font = ((System.Drawing.Font)(resources.GetObject("panel1.Font")));
- this.panel1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("panel1.ImeMode")));
- this.panel1.Location = ((System.Drawing.Point)(resources.GetObject("panel1.Location")));
- this.panel1.Name = "panel1";
- this.panel1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("panel1.RightToLeft")));
- this.panel1.Size = ((System.Drawing.Size)(resources.GetObject("panel1.Size")));
- this.panel1.TabIndex = ((int)(resources.GetObject("panel1.TabIndex")));
- this.panel1.Text = resources.GetString("panel1.Text");
- this.panel1.Visible = ((bool)(resources.GetObject("panel1.Visible")));
- //
- // panel4
- //
- this.panel4.AccessibleDescription = resources.GetString("panel4.AccessibleDescription");
- this.panel4.AccessibleName = resources.GetString("panel4.AccessibleName");
- this.panel4.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("panel4.Anchor")));
- this.panel4.AutoScroll = ((bool)(resources.GetObject("panel4.AutoScroll")));
- this.panel4.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("panel4.AutoScrollMargin")));
- this.panel4.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("panel4.AutoScrollMinSize")));
- this.panel4.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(225)));
- this.panel4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel4.BackgroundImage")));
- this.panel4.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("panel4.Dock")));
- this.panel4.Enabled = ((bool)(resources.GetObject("panel4.Enabled")));
- this.panel4.Font = ((System.Drawing.Font)(resources.GetObject("panel4.Font")));
- this.panel4.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("panel4.ImeMode")));
- this.panel4.Location = ((System.Drawing.Point)(resources.GetObject("panel4.Location")));
- this.panel4.Name = "panel4";
- this.panel4.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("panel4.RightToLeft")));
- this.panel4.Size = ((System.Drawing.Size)(resources.GetObject("panel4.Size")));
- this.panel4.TabIndex = ((int)(resources.GetObject("panel4.TabIndex")));
- this.panel4.Text = resources.GetString("panel4.Text");
- this.panel4.Visible = ((bool)(resources.GetObject("panel4.Visible")));
- //
- // panel3
- //
- this.panel3.AccessibleDescription = resources.GetString("panel3.AccessibleDescription");
- this.panel3.AccessibleName = resources.GetString("panel3.AccessibleName");
- this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("panel3.Anchor")));
- this.panel3.AutoScroll = ((bool)(resources.GetObject("panel3.AutoScroll")));
- this.panel3.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("panel3.AutoScrollMargin")));
- this.panel3.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("panel3.AutoScrollMinSize")));
- this.panel3.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(235)));
- this.panel3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel3.BackgroundImage")));
- this.panel3.Controls.Add(this.splitter2);
- this.panel3.Controls.Add(this.label1);
- this.panel3.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("panel3.Dock")));
- this.panel3.Enabled = ((bool)(resources.GetObject("panel3.Enabled")));
- this.panel3.Font = ((System.Drawing.Font)(resources.GetObject("panel3.Font")));
- this.panel3.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("panel3.ImeMode")));
- this.panel3.Location = ((System.Drawing.Point)(resources.GetObject("panel3.Location")));
- this.panel3.Name = "panel3";
- this.panel3.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("panel3.RightToLeft")));
- this.panel3.Size = ((System.Drawing.Size)(resources.GetObject("panel3.Size")));
- this.panel3.TabIndex = ((int)(resources.GetObject("panel3.TabIndex")));
- this.panel3.Text = resources.GetString("panel3.Text");
- this.panel3.Visible = ((bool)(resources.GetObject("panel3.Visible")));
- //
- // splitter2
- //
- this.splitter2.AccessibleDescription = resources.GetString("splitter2.AccessibleDescription");
- this.splitter2.AccessibleName = resources.GetString("splitter2.AccessibleName");
- this.splitter2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("splitter2.Anchor")));
- this.splitter2.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(245)));
- this.splitter2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("splitter2.BackgroundImage")));
- this.splitter2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.splitter2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("splitter2.Dock")));
- this.splitter2.Enabled = ((bool)(resources.GetObject("splitter2.Enabled")));
- this.splitter2.Font = ((System.Drawing.Font)(resources.GetObject("splitter2.Font")));
- this.splitter2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("splitter2.ImeMode")));
- this.splitter2.Location = ((System.Drawing.Point)(resources.GetObject("splitter2.Location")));
- this.splitter2.MinExtra = ((int)(resources.GetObject("splitter2.MinExtra")));
- this.splitter2.MinSize = ((int)(resources.GetObject("splitter2.MinSize")));
- this.splitter2.Name = "splitter2";
- this.splitter2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("splitter2.RightToLeft")));
- this.splitter2.Size = ((System.Drawing.Size)(resources.GetObject("splitter2.Size")));
- this.splitter2.TabIndex = ((int)(resources.GetObject("splitter2.TabIndex")));
- this.splitter2.TabStop = false;
- this.splitter2.Visible = ((bool)(resources.GetObject("splitter2.Visible")));
- //
- // label1
- //
- this.label1.AccessibleDescription = resources.GetString("label1.AccessibleDescription");
- this.label1.AccessibleName = resources.GetString("label1.AccessibleName");
- this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label1.Anchor")));
- this.label1.AutoSize = ((bool)(resources.GetObject("label1.AutoSize")));
- this.label1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("label1.Dock")));
- this.label1.Enabled = ((bool)(resources.GetObject("label1.Enabled")));
- this.label1.Font = ((System.Drawing.Font)(resources.GetObject("label1.Font")));
- this.label1.Image = ((System.Drawing.Image)(resources.GetObject("label1.Image")));
- this.label1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.ImageAlign")));
- this.label1.ImageIndex = ((int)(resources.GetObject("label1.ImageIndex")));
- this.label1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("label1.ImeMode")));
- this.label1.Location = ((System.Drawing.Point)(resources.GetObject("label1.Location")));
- this.label1.Name = "label1";
- this.label1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label1.RightToLeft")));
- this.label1.Size = ((System.Drawing.Size)(resources.GetObject("label1.Size")));
- this.label1.TabIndex = ((int)(resources.GetObject("label1.TabIndex")));
- this.label1.Text = resources.GetString("label1.Text");
- this.label1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.TextAlign")));
- this.label1.Visible = ((bool)(resources.GetObject("label1.Visible")));
- //
- // panel2
- //
- this.panel2.AccessibleDescription = resources.GetString("panel2.AccessibleDescription");
- this.panel2.AccessibleName = resources.GetString("panel2.AccessibleName");
- this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("panel2.Anchor")));
- this.panel2.AutoScroll = ((bool)(resources.GetObject("panel2.AutoScroll")));
- this.panel2.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("panel2.AutoScrollMargin")));
- this.panel2.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("panel2.AutoScrollMinSize")));
- this.panel2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel2.BackgroundImage")));
- this.panel2.Controls.Add(this.button4);
- this.panel2.Controls.Add(this.button3);
- this.panel2.Controls.Add(this.splitter1);
- this.panel2.Controls.Add(this.button2);
- this.panel2.Controls.Add(this.button1);
- this.panel2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("panel2.Dock")));
- this.panel2.Enabled = ((bool)(resources.GetObject("panel2.Enabled")));
- this.panel2.Font = ((System.Drawing.Font)(resources.GetObject("panel2.Font")));
- this.panel2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("panel2.ImeMode")));
- this.panel2.Location = ((System.Drawing.Point)(resources.GetObject("panel2.Location")));
- this.panel2.Name = "panel2";
- this.panel2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("panel2.RightToLeft")));
- this.panel2.Size = ((System.Drawing.Size)(resources.GetObject("panel2.Size")));
- this.panel2.TabIndex = ((int)(resources.GetObject("panel2.TabIndex")));
- this.panel2.Text = resources.GetString("panel2.Text");
- this.panel2.Visible = ((bool)(resources.GetObject("panel2.Visible")));
- //
- // button4
- //
- this.button4.AccessibleDescription = resources.GetString("button4.AccessibleDescription");
- this.button4.AccessibleName = resources.GetString("button4.AccessibleName");
- this.button4.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button4.Anchor")));
- this.button4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button4.BackgroundImage")));
- this.button4.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("button4.Dock")));
- this.button4.Enabled = ((bool)(resources.GetObject("button4.Enabled")));
- this.button4.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button4.FlatStyle")));
- this.button4.Font = ((System.Drawing.Font)(resources.GetObject("button4.Font")));
- this.button4.Image = ((System.Drawing.Image)(resources.GetObject("button4.Image")));
- this.button4.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button4.ImageAlign")));
- this.button4.ImageIndex = ((int)(resources.GetObject("button4.ImageIndex")));
- this.button4.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("button4.ImeMode")));
- this.button4.Location = ((System.Drawing.Point)(resources.GetObject("button4.Location")));
- this.button4.Name = "button4";
- this.button4.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button4.RightToLeft")));
- this.button4.Size = ((System.Drawing.Size)(resources.GetObject("button4.Size")));
- this.button4.TabIndex = ((int)(resources.GetObject("button4.TabIndex")));
- this.button4.Text = resources.GetString("button4.Text");
- this.button4.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button4.TextAlign")));
- this.button4.Visible = ((bool)(resources.GetObject("button4.Visible")));
- //
- // button3
- //
- this.button3.AccessibleDescription = resources.GetString("button3.AccessibleDescription");
- this.button3.AccessibleName = resources.GetString("button3.AccessibleName");
- this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button3.Anchor")));
- this.button3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button3.BackgroundImage")));
- this.button3.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("button3.Dock")));
- this.button3.Enabled = ((bool)(resources.GetObject("button3.Enabled")));
- this.button3.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button3.FlatStyle")));
- this.button3.Font = ((System.Drawing.Font)(resources.GetObject("button3.Font")));
- this.button3.Image = ((System.Drawing.Image)(resources.GetObject("button3.Image")));
- this.button3.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button3.ImageAlign")));
- this.button3.ImageIndex = ((int)(resources.GetObject("button3.ImageIndex")));
- this.button3.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("button3.ImeMode")));
- this.button3.Location = ((System.Drawing.Point)(resources.GetObject("button3.Location")));
- this.button3.Name = "button3";
- this.button3.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button3.RightToLeft")));
- this.button3.Size = ((System.Drawing.Size)(resources.GetObject("button3.Size")));
- this.button3.TabIndex = ((int)(resources.GetObject("button3.TabIndex")));
- this.button3.Text = resources.GetString("button3.Text");
- this.button3.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button3.TextAlign")));
- this.button3.Visible = ((bool)(resources.GetObject("button3.Visible")));
- this.button3.Click += new System.EventHandler(this.button3_Click);
- //
- // splitter1
- //
- this.splitter1.AccessibleDescription = resources.GetString("splitter1.AccessibleDescription");
- this.splitter1.AccessibleName = resources.GetString("splitter1.AccessibleName");
- this.splitter1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("splitter1.Anchor")));
- this.splitter1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(227)));
- this.splitter1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("splitter1.BackgroundImage")));
- this.splitter1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.splitter1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("splitter1.Dock")));
- this.splitter1.Enabled = ((bool)(resources.GetObject("splitter1.Enabled")));
- this.splitter1.Font = ((System.Drawing.Font)(resources.GetObject("splitter1.Font")));
- this.splitter1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("splitter1.ImeMode")));
- this.splitter1.Location = ((System.Drawing.Point)(resources.GetObject("splitter1.Location")));
- this.splitter1.MinExtra = ((int)(resources.GetObject("splitter1.MinExtra")));
- this.splitter1.MinSize = ((int)(resources.GetObject("splitter1.MinSize")));
- this.splitter1.Name = "splitter1";
- this.splitter1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("splitter1.RightToLeft")));
- this.splitter1.Size = ((System.Drawing.Size)(resources.GetObject("splitter1.Size")));
- this.splitter1.TabIndex = ((int)(resources.GetObject("splitter1.TabIndex")));
- this.splitter1.TabStop = false;
- this.splitter1.Visible = ((bool)(resources.GetObject("splitter1.Visible")));
- //
- // button2
- //
- this.button2.AccessibleDescription = resources.GetString("button2.AccessibleDescription");
- this.button2.AccessibleName = resources.GetString("button2.AccessibleName");
- this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button2.Anchor")));
- this.button2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button2.BackgroundImage")));
- this.button2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("button2.Dock")));
- this.button2.Enabled = ((bool)(resources.GetObject("button2.Enabled")));
- this.button2.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button2.FlatStyle")));
- this.button2.Font = ((System.Drawing.Font)(resources.GetObject("button2.Font")));
- this.button2.Image = ((System.Drawing.Image)(resources.GetObject("button2.Image")));
- this.button2.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button2.ImageAlign")));
- this.button2.ImageIndex = ((int)(resources.GetObject("button2.ImageIndex")));
- this.button2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("button2.ImeMode")));
- this.button2.Location = ((System.Drawing.Point)(resources.GetObject("button2.Location")));
- this.button2.Name = "button2";
- this.button2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button2.RightToLeft")));
- this.button2.Size = ((System.Drawing.Size)(resources.GetObject("button2.Size")));
- this.button2.TabIndex = ((int)(resources.GetObject("button2.TabIndex")));
- this.button2.Text = resources.GetString("button2.Text");
- this.button2.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button2.TextAlign")));
- this.button2.Visible = ((bool)(resources.GetObject("button2.Visible")));
- this.button2.Click += new System.EventHandler(this.button2_Click);
- //
- // button1
- //
- this.button1.AccessibleDescription = resources.GetString("button1.AccessibleDescription");
- this.button1.AccessibleName = resources.GetString("button1.AccessibleName");
- this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button1.Anchor")));
- this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
- this.button1.ContextMenu = this.contextMenu1;
- this.button1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("button1.Dock")));
- this.button1.Enabled = ((bool)(resources.GetObject("button1.Enabled")));
- this.button1.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button1.FlatStyle")));
- this.button1.Font = ((System.Drawing.Font)(resources.GetObject("button1.Font")));
- this.button1.Image = ((System.Drawing.Image)(resources.GetObject("button1.Image")));
- this.button1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.ImageAlign")));
- this.button1.ImageIndex = ((int)(resources.GetObject("button1.ImageIndex")));
- this.button1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("button1.ImeMode")));
- this.button1.Location = ((System.Drawing.Point)(resources.GetObject("button1.Location")));
- this.button1.Name = "button1";
- this.button1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button1.RightToLeft")));
- this.button1.Size = ((System.Drawing.Size)(resources.GetObject("button1.Size")));
- this.button1.TabIndex = ((int)(resources.GetObject("button1.TabIndex")));
- this.button1.Text = resources.GetString("button1.Text");
- this.button1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.TextAlign")));
- this.button1.Visible = ((bool)(resources.GetObject("button1.Visible")));
- this.button1.Click += new System.EventHandler(this.button1_Click);
- //
- // contextMenu1
- //
- this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem1,
- this.menuItem2});
- this.contextMenu1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("contextMenu1.RightToLeft")));
- //
- // menuItem1
- //
- this.menuItem1.Enabled = ((bool)(resources.GetObject("menuItem1.Enabled")));
- this.menuItem1.Index = 0;
- this.menuItem1.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuItem1.Shortcut")));
- this.menuItem1.ShowShortcut = ((bool)(resources.GetObject("menuItem1.ShowShortcut")));
- this.menuItem1.Text = resources.GetString("menuItem1.Text");
- this.menuItem1.Visible = ((bool)(resources.GetObject("menuItem1.Visible")));
- this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
- //
- // menuItem2
- //
- this.menuItem2.Enabled = ((bool)(resources.GetObject("menuItem2.Enabled")));
- this.menuItem2.Index = 1;
- this.menuItem2.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuItem2.Shortcut")));
- this.menuItem2.ShowShortcut = ((bool)(resources.GetObject("menuItem2.ShowShortcut")));
- this.menuItem2.Text = resources.GetString("menuItem2.Text");
- this.menuItem2.Visible = ((bool)(resources.GetObject("menuItem2.Visible")));
- this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
- //
- // Form1
- //
- this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
- this.AccessibleName = resources.GetString("$this.AccessibleName");
- this.AllowDrop = true;
- this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
- this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
- this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
- this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
- this.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(255)));
- this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
- this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
- this.Controls.Add(this.panel1);
- this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
- this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
- this.ForeColor = System.Drawing.Color.Black;
- this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
- this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
- this.MaximizeBox = false;
- this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
- this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
- this.Name = "Form1";
- this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
- this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
- this.Text = resources.GetString("$this.Text");
- this.TopMost = true;
- this.Closing += new System.ComponentModel.CancelEventHandler(this.Form1_Closing);
- this.Load += new System.EventHandler(this.Form1_Load);
- this.Closed += new System.EventHandler(this.Form1_Closed);
- this.panel1.ResumeLayout(false);
- this.panel3.ResumeLayout(false);
- this.panel2.ResumeLayout(false);
- this.ResumeLayout(false);
- }
- #endregion
- /// <summary>
- /// 应用程序的主入口点。
- /// </summary>
- [STAThread]
- private void Form1_Closed(object sender, System.EventArgs e)
- {
- }
- private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
- {
- try
- {
- sdata.close();
- use.close();
- yanzhen.Close();
- }
- catch(Exception ee)
- {
- }
- }
- private void button2_Click(object sender, System.EventArgs e)
- {
- search sea=new search(this);
- sea.Show();
- }
- private void menuItem2_Click(object sender, System.EventArgs e)
- {
- this.Close();
- }
- private void menuItem1_Click(object sender, System.EventArgs e)
- {
- try
- {
- 用户资料 zz=new 用户资料(this);
- zz.Show();
- }
- catch(Exception ee)
- {
- MessageBox.Show(ee.ToString());
- }
- }
- private void Form1_Load(object sender, System.EventArgs e)
- {
- }
- private void button1_Click(object sender, System.EventArgs e)
- {
- this.contextMenu1.Show(this.button1,new Point(4,-20));
- }
- private void button3_Click(object sender, System.EventArgs e)
- {
- }
- }
- }