Form1.cs
上传用户:yan_wy
上传日期:2007-06-09
资源大小:112k
文件大小:29k
源码类别:

ICQ/即时通讯

开发平台:

C#

  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. using System.Data;
  7. using System.Net.Sockets ;
  8. using System.Net ;
  9. using System.IO;
  10. namespace qq
  11. {
  12. /// <summary>
  13. /// Form1 的摘要说明。
  14. /// </summary>
  15. public class Form1 : System.Windows.Forms.Form
  16. {
  17.         验证 yanzhen;
  18. 注册 zhuche; 
  19. public int isinline;
  20.     public System.Collections.ArrayList userlist;
  21. private System.Windows.Forms.Panel panel1;
  22. private System.Windows.Forms.Panel panel2;
  23. private System.Windows.Forms.Panel panel3;
  24. private System.Windows.Forms.Button button1;
  25. private System.Windows.Forms.Button button2;
  26. private System.Windows.Forms.Label label1;
  27. public  System.Windows.Forms.Panel panel4;
  28. private System.Windows.Forms.Splitter splitter1;
  29. private System.Windows.Forms.Splitter splitter2;
  30. private System.Windows.Forms.Button button3;
  31. private System.Windows.Forms.Button button4;
  32. public string userid;
  33. public string ip;
  34. public string path;
  35. public string name;
  36. public string mima;
  37. public user use;
  38. public severdata sdata;
  39. private System.Windows.Forms.ContextMenu contextMenu1;
  40. private System.Windows.Forms.MenuItem menuItem1;
  41. private System.Windows.Forms.MenuItem menuItem2;
  42. // private qq.UserControl1 aaa;
  43. /// <summary>
  44. /// 必需的设计器变量。
  45. /// </summary>
  46. private System.ComponentModel.Container components = null;
  47. public Form1(注册 abc,验证 a)
  48. {
  49. try
  50. {
  51. System.IO.FileInfo fle=new FileInfo("./");
  52. path=fle.FullName;
  53. yanzhen=a;
  54. zhuche=abc;
  55.     this.ip=abc.textBox4.Text.Trim();
  56. InitializeComponent();
  57. this.isinline=1;
  58. userlist=new ArrayList();
  59. use=new user (this);
  60. this.isinline=use.isline;
  61.  
  62. sdata=new severdata(this);
  63.       
  64. this.mima=abc.textBox2.Text;
  65. sdata.adduse(abc.textBox1.Text,abc.textBox2.Text,abc.richTextBox1.Text,abc.numericUpDown1.Text);
  66. int ssss=sdata.yanzhen();
  67. if(ssss==0)
  68. {
  69. MessageBox.Show("密码不对或没有此用户");
  70. }
  71. else if(ssss==2)
  72. {
  73. this.isinline=0;
  74. }
  75. else sdata.Startset();
  76. use.startset();
  77. sdata.shanxian();
  78. this.label1.Text=this.userid+"("+this.name+")  ";
  79. if(this.isinline==0)
  80. {
  81. MessageBox.Show("连接不上服务器");
  82. }
  83. }
  84. catch(Exception ee)
  85. {
  86. }
  87. }
  88. public Form1(验证 aaa)
  89. {
  90. //
  91. // Windows 窗体设计器支持所必需的
  92. //
  93. try
  94. {
  95. System.IO.FileInfo fle=new FileInfo("./");
  96. path=fle.FullName;
  97. yanzhen=aaa;
  98. userid=aaa.textBox1.Text;
  99. ip=aaa.textBox3.Text.Trim();
  100. mima=aaa.textBox2.Text;
  101. InitializeComponent();
  102. this.isinline=1;
  103. userlist=new ArrayList();
  104. use=new user (this);
  105. this.isinline=use.isline;
  106.  
  107. sdata=new severdata(this);
  108.       
  109. int ssss=sdata.yanzhen();
  110. if(ssss==0)
  111. {
  112. MessageBox.Show("密码不对或没有此用户");
  113. }
  114. else if(ssss==2)
  115. {
  116. this.isinline=0;
  117. }
  118. else sdata.Startset();
  119. use.startset();
  120. sdata.shanxian();
  121. this.label1.Text=this.userid+"("+this.name+")  ";
  122. if(this.isinline==0)
  123. {
  124. MessageBox.Show("连接不上服务器");
  125. }
  126. }
  127. catch(Exception ee)
  128. {
  129. }
  130. //
  131. // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
  132. //
  133. }
  134. /// <summary>
  135. /// 清理所有正在使用的资源。
  136. /// </summary>
  137. /// 
  138. protected override void Dispose( bool disposing )
  139. {
  140. if( disposing )
  141. {
  142. if (components != null) 
  143. {
  144. components.Dispose();
  145. }
  146. }
  147. base.Dispose( disposing );
  148. }
  149. #region Windows 窗体设计器生成的代码
  150. /// <summary>
  151. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  152. /// 此方法的内容。
  153. /// </summary>
  154. private void InitializeComponent()
  155. {
  156. System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
  157. this.panel1 = new System.Windows.Forms.Panel();
  158. this.panel4 = new System.Windows.Forms.Panel();
  159. this.panel3 = new System.Windows.Forms.Panel();
  160. this.splitter2 = new System.Windows.Forms.Splitter();
  161. this.label1 = new System.Windows.Forms.Label();
  162. this.panel2 = new System.Windows.Forms.Panel();
  163. this.button4 = new System.Windows.Forms.Button();
  164. this.button3 = new System.Windows.Forms.Button();
  165. this.splitter1 = new System.Windows.Forms.Splitter();
  166. this.button2 = new System.Windows.Forms.Button();
  167. this.button1 = new System.Windows.Forms.Button();
  168. this.contextMenu1 = new System.Windows.Forms.ContextMenu();
  169. this.menuItem1 = new System.Windows.Forms.MenuItem();
  170. this.menuItem2 = new System.Windows.Forms.MenuItem();
  171. this.panel1.SuspendLayout();
  172. this.panel3.SuspendLayout();
  173. this.panel2.SuspendLayout();
  174. this.SuspendLayout();
  175. // 
  176. // panel1
  177. // 
  178. this.panel1.AccessibleDescription = resources.GetString("panel1.AccessibleDescription");
  179. this.panel1.AccessibleName = resources.GetString("panel1.AccessibleName");
  180. this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("panel1.Anchor")));
  181. this.panel1.AutoScroll = ((bool)(resources.GetObject("panel1.AutoScroll")));
  182. this.panel1.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("panel1.AutoScrollMargin")));
  183. this.panel1.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("panel1.AutoScrollMinSize")));
  184. this.panel1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(225)));
  185. this.panel1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel1.BackgroundImage")));
  186. this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  187. this.panel1.Controls.Add(this.panel4);
  188. this.panel1.Controls.Add(this.panel3);
  189. this.panel1.Controls.Add(this.panel2);
  190. this.panel1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("panel1.Dock")));
  191. this.panel1.Enabled = ((bool)(resources.GetObject("panel1.Enabled")));
  192. this.panel1.Font = ((System.Drawing.Font)(resources.GetObject("panel1.Font")));
  193. this.panel1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("panel1.ImeMode")));
  194. this.panel1.Location = ((System.Drawing.Point)(resources.GetObject("panel1.Location")));
  195. this.panel1.Name = "panel1";
  196. this.panel1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("panel1.RightToLeft")));
  197. this.panel1.Size = ((System.Drawing.Size)(resources.GetObject("panel1.Size")));
  198. this.panel1.TabIndex = ((int)(resources.GetObject("panel1.TabIndex")));
  199. this.panel1.Text = resources.GetString("panel1.Text");
  200. this.panel1.Visible = ((bool)(resources.GetObject("panel1.Visible")));
  201. // 
  202. // panel4
  203. // 
  204. this.panel4.AccessibleDescription = resources.GetString("panel4.AccessibleDescription");
  205. this.panel4.AccessibleName = resources.GetString("panel4.AccessibleName");
  206. this.panel4.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("panel4.Anchor")));
  207. this.panel4.AutoScroll = ((bool)(resources.GetObject("panel4.AutoScroll")));
  208. this.panel4.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("panel4.AutoScrollMargin")));
  209. this.panel4.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("panel4.AutoScrollMinSize")));
  210. this.panel4.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(225)));
  211. this.panel4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel4.BackgroundImage")));
  212. this.panel4.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("panel4.Dock")));
  213. this.panel4.Enabled = ((bool)(resources.GetObject("panel4.Enabled")));
  214. this.panel4.Font = ((System.Drawing.Font)(resources.GetObject("panel4.Font")));
  215. this.panel4.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("panel4.ImeMode")));
  216. this.panel4.Location = ((System.Drawing.Point)(resources.GetObject("panel4.Location")));
  217. this.panel4.Name = "panel4";
  218. this.panel4.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("panel4.RightToLeft")));
  219. this.panel4.Size = ((System.Drawing.Size)(resources.GetObject("panel4.Size")));
  220. this.panel4.TabIndex = ((int)(resources.GetObject("panel4.TabIndex")));
  221. this.panel4.Text = resources.GetString("panel4.Text");
  222. this.panel4.Visible = ((bool)(resources.GetObject("panel4.Visible")));
  223. // 
  224. // panel3
  225. // 
  226. this.panel3.AccessibleDescription = resources.GetString("panel3.AccessibleDescription");
  227. this.panel3.AccessibleName = resources.GetString("panel3.AccessibleName");
  228. this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("panel3.Anchor")));
  229. this.panel3.AutoScroll = ((bool)(resources.GetObject("panel3.AutoScroll")));
  230. this.panel3.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("panel3.AutoScrollMargin")));
  231. this.panel3.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("panel3.AutoScrollMinSize")));
  232. this.panel3.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(235)));
  233. this.panel3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel3.BackgroundImage")));
  234. this.panel3.Controls.Add(this.splitter2);
  235. this.panel3.Controls.Add(this.label1);
  236. this.panel3.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("panel3.Dock")));
  237. this.panel3.Enabled = ((bool)(resources.GetObject("panel3.Enabled")));
  238. this.panel3.Font = ((System.Drawing.Font)(resources.GetObject("panel3.Font")));
  239. this.panel3.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("panel3.ImeMode")));
  240. this.panel3.Location = ((System.Drawing.Point)(resources.GetObject("panel3.Location")));
  241. this.panel3.Name = "panel3";
  242. this.panel3.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("panel3.RightToLeft")));
  243. this.panel3.Size = ((System.Drawing.Size)(resources.GetObject("panel3.Size")));
  244. this.panel3.TabIndex = ((int)(resources.GetObject("panel3.TabIndex")));
  245. this.panel3.Text = resources.GetString("panel3.Text");
  246. this.panel3.Visible = ((bool)(resources.GetObject("panel3.Visible")));
  247. // 
  248. // splitter2
  249. // 
  250. this.splitter2.AccessibleDescription = resources.GetString("splitter2.AccessibleDescription");
  251. this.splitter2.AccessibleName = resources.GetString("splitter2.AccessibleName");
  252. this.splitter2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("splitter2.Anchor")));
  253. this.splitter2.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(245)));
  254. this.splitter2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("splitter2.BackgroundImage")));
  255. this.splitter2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  256. this.splitter2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("splitter2.Dock")));
  257. this.splitter2.Enabled = ((bool)(resources.GetObject("splitter2.Enabled")));
  258. this.splitter2.Font = ((System.Drawing.Font)(resources.GetObject("splitter2.Font")));
  259. this.splitter2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("splitter2.ImeMode")));
  260. this.splitter2.Location = ((System.Drawing.Point)(resources.GetObject("splitter2.Location")));
  261. this.splitter2.MinExtra = ((int)(resources.GetObject("splitter2.MinExtra")));
  262. this.splitter2.MinSize = ((int)(resources.GetObject("splitter2.MinSize")));
  263. this.splitter2.Name = "splitter2";
  264. this.splitter2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("splitter2.RightToLeft")));
  265. this.splitter2.Size = ((System.Drawing.Size)(resources.GetObject("splitter2.Size")));
  266. this.splitter2.TabIndex = ((int)(resources.GetObject("splitter2.TabIndex")));
  267. this.splitter2.TabStop = false;
  268. this.splitter2.Visible = ((bool)(resources.GetObject("splitter2.Visible")));
  269. // 
  270. // label1
  271. // 
  272. this.label1.AccessibleDescription = resources.GetString("label1.AccessibleDescription");
  273. this.label1.AccessibleName = resources.GetString("label1.AccessibleName");
  274. this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("label1.Anchor")));
  275. this.label1.AutoSize = ((bool)(resources.GetObject("label1.AutoSize")));
  276. this.label1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("label1.Dock")));
  277. this.label1.Enabled = ((bool)(resources.GetObject("label1.Enabled")));
  278. this.label1.Font = ((System.Drawing.Font)(resources.GetObject("label1.Font")));
  279. this.label1.Image = ((System.Drawing.Image)(resources.GetObject("label1.Image")));
  280. this.label1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.ImageAlign")));
  281. this.label1.ImageIndex = ((int)(resources.GetObject("label1.ImageIndex")));
  282. this.label1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("label1.ImeMode")));
  283. this.label1.Location = ((System.Drawing.Point)(resources.GetObject("label1.Location")));
  284. this.label1.Name = "label1";
  285. this.label1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("label1.RightToLeft")));
  286. this.label1.Size = ((System.Drawing.Size)(resources.GetObject("label1.Size")));
  287. this.label1.TabIndex = ((int)(resources.GetObject("label1.TabIndex")));
  288. this.label1.Text = resources.GetString("label1.Text");
  289. this.label1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("label1.TextAlign")));
  290. this.label1.Visible = ((bool)(resources.GetObject("label1.Visible")));
  291. // 
  292. // panel2
  293. // 
  294. this.panel2.AccessibleDescription = resources.GetString("panel2.AccessibleDescription");
  295. this.panel2.AccessibleName = resources.GetString("panel2.AccessibleName");
  296. this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("panel2.Anchor")));
  297. this.panel2.AutoScroll = ((bool)(resources.GetObject("panel2.AutoScroll")));
  298. this.panel2.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("panel2.AutoScrollMargin")));
  299. this.panel2.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("panel2.AutoScrollMinSize")));
  300. this.panel2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel2.BackgroundImage")));
  301. this.panel2.Controls.Add(this.button4);
  302. this.panel2.Controls.Add(this.button3);
  303. this.panel2.Controls.Add(this.splitter1);
  304. this.panel2.Controls.Add(this.button2);
  305. this.panel2.Controls.Add(this.button1);
  306. this.panel2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("panel2.Dock")));
  307. this.panel2.Enabled = ((bool)(resources.GetObject("panel2.Enabled")));
  308. this.panel2.Font = ((System.Drawing.Font)(resources.GetObject("panel2.Font")));
  309. this.panel2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("panel2.ImeMode")));
  310. this.panel2.Location = ((System.Drawing.Point)(resources.GetObject("panel2.Location")));
  311. this.panel2.Name = "panel2";
  312. this.panel2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("panel2.RightToLeft")));
  313. this.panel2.Size = ((System.Drawing.Size)(resources.GetObject("panel2.Size")));
  314. this.panel2.TabIndex = ((int)(resources.GetObject("panel2.TabIndex")));
  315. this.panel2.Text = resources.GetString("panel2.Text");
  316. this.panel2.Visible = ((bool)(resources.GetObject("panel2.Visible")));
  317. // 
  318. // button4
  319. // 
  320. this.button4.AccessibleDescription = resources.GetString("button4.AccessibleDescription");
  321. this.button4.AccessibleName = resources.GetString("button4.AccessibleName");
  322. this.button4.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button4.Anchor")));
  323. this.button4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button4.BackgroundImage")));
  324. this.button4.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("button4.Dock")));
  325. this.button4.Enabled = ((bool)(resources.GetObject("button4.Enabled")));
  326. this.button4.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button4.FlatStyle")));
  327. this.button4.Font = ((System.Drawing.Font)(resources.GetObject("button4.Font")));
  328. this.button4.Image = ((System.Drawing.Image)(resources.GetObject("button4.Image")));
  329. this.button4.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button4.ImageAlign")));
  330. this.button4.ImageIndex = ((int)(resources.GetObject("button4.ImageIndex")));
  331. this.button4.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("button4.ImeMode")));
  332. this.button4.Location = ((System.Drawing.Point)(resources.GetObject("button4.Location")));
  333. this.button4.Name = "button4";
  334. this.button4.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button4.RightToLeft")));
  335. this.button4.Size = ((System.Drawing.Size)(resources.GetObject("button4.Size")));
  336. this.button4.TabIndex = ((int)(resources.GetObject("button4.TabIndex")));
  337. this.button4.Text = resources.GetString("button4.Text");
  338. this.button4.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button4.TextAlign")));
  339. this.button4.Visible = ((bool)(resources.GetObject("button4.Visible")));
  340. // 
  341. // button3
  342. // 
  343. this.button3.AccessibleDescription = resources.GetString("button3.AccessibleDescription");
  344. this.button3.AccessibleName = resources.GetString("button3.AccessibleName");
  345. this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button3.Anchor")));
  346. this.button3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button3.BackgroundImage")));
  347. this.button3.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("button3.Dock")));
  348. this.button3.Enabled = ((bool)(resources.GetObject("button3.Enabled")));
  349. this.button3.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button3.FlatStyle")));
  350. this.button3.Font = ((System.Drawing.Font)(resources.GetObject("button3.Font")));
  351. this.button3.Image = ((System.Drawing.Image)(resources.GetObject("button3.Image")));
  352. this.button3.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button3.ImageAlign")));
  353. this.button3.ImageIndex = ((int)(resources.GetObject("button3.ImageIndex")));
  354. this.button3.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("button3.ImeMode")));
  355. this.button3.Location = ((System.Drawing.Point)(resources.GetObject("button3.Location")));
  356. this.button3.Name = "button3";
  357. this.button3.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button3.RightToLeft")));
  358. this.button3.Size = ((System.Drawing.Size)(resources.GetObject("button3.Size")));
  359. this.button3.TabIndex = ((int)(resources.GetObject("button3.TabIndex")));
  360. this.button3.Text = resources.GetString("button3.Text");
  361. this.button3.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button3.TextAlign")));
  362. this.button3.Visible = ((bool)(resources.GetObject("button3.Visible")));
  363. this.button3.Click += new System.EventHandler(this.button3_Click);
  364. // 
  365. // splitter1
  366. // 
  367. this.splitter1.AccessibleDescription = resources.GetString("splitter1.AccessibleDescription");
  368. this.splitter1.AccessibleName = resources.GetString("splitter1.AccessibleName");
  369. this.splitter1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("splitter1.Anchor")));
  370. this.splitter1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(227)));
  371. this.splitter1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("splitter1.BackgroundImage")));
  372. this.splitter1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  373. this.splitter1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("splitter1.Dock")));
  374. this.splitter1.Enabled = ((bool)(resources.GetObject("splitter1.Enabled")));
  375. this.splitter1.Font = ((System.Drawing.Font)(resources.GetObject("splitter1.Font")));
  376. this.splitter1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("splitter1.ImeMode")));
  377. this.splitter1.Location = ((System.Drawing.Point)(resources.GetObject("splitter1.Location")));
  378. this.splitter1.MinExtra = ((int)(resources.GetObject("splitter1.MinExtra")));
  379. this.splitter1.MinSize = ((int)(resources.GetObject("splitter1.MinSize")));
  380. this.splitter1.Name = "splitter1";
  381. this.splitter1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("splitter1.RightToLeft")));
  382. this.splitter1.Size = ((System.Drawing.Size)(resources.GetObject("splitter1.Size")));
  383. this.splitter1.TabIndex = ((int)(resources.GetObject("splitter1.TabIndex")));
  384. this.splitter1.TabStop = false;
  385. this.splitter1.Visible = ((bool)(resources.GetObject("splitter1.Visible")));
  386. // 
  387. // button2
  388. // 
  389. this.button2.AccessibleDescription = resources.GetString("button2.AccessibleDescription");
  390. this.button2.AccessibleName = resources.GetString("button2.AccessibleName");
  391. this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button2.Anchor")));
  392. this.button2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button2.BackgroundImage")));
  393. this.button2.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("button2.Dock")));
  394. this.button2.Enabled = ((bool)(resources.GetObject("button2.Enabled")));
  395. this.button2.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button2.FlatStyle")));
  396. this.button2.Font = ((System.Drawing.Font)(resources.GetObject("button2.Font")));
  397. this.button2.Image = ((System.Drawing.Image)(resources.GetObject("button2.Image")));
  398. this.button2.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button2.ImageAlign")));
  399. this.button2.ImageIndex = ((int)(resources.GetObject("button2.ImageIndex")));
  400. this.button2.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("button2.ImeMode")));
  401. this.button2.Location = ((System.Drawing.Point)(resources.GetObject("button2.Location")));
  402. this.button2.Name = "button2";
  403. this.button2.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button2.RightToLeft")));
  404. this.button2.Size = ((System.Drawing.Size)(resources.GetObject("button2.Size")));
  405. this.button2.TabIndex = ((int)(resources.GetObject("button2.TabIndex")));
  406. this.button2.Text = resources.GetString("button2.Text");
  407. this.button2.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button2.TextAlign")));
  408. this.button2.Visible = ((bool)(resources.GetObject("button2.Visible")));
  409. this.button2.Click += new System.EventHandler(this.button2_Click);
  410. // 
  411. // button1
  412. // 
  413. this.button1.AccessibleDescription = resources.GetString("button1.AccessibleDescription");
  414. this.button1.AccessibleName = resources.GetString("button1.AccessibleName");
  415. this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("button1.Anchor")));
  416. this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
  417. this.button1.ContextMenu = this.contextMenu1;
  418. this.button1.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("button1.Dock")));
  419. this.button1.Enabled = ((bool)(resources.GetObject("button1.Enabled")));
  420. this.button1.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("button1.FlatStyle")));
  421. this.button1.Font = ((System.Drawing.Font)(resources.GetObject("button1.Font")));
  422. this.button1.Image = ((System.Drawing.Image)(resources.GetObject("button1.Image")));
  423. this.button1.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.ImageAlign")));
  424. this.button1.ImageIndex = ((int)(resources.GetObject("button1.ImageIndex")));
  425. this.button1.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("button1.ImeMode")));
  426. this.button1.Location = ((System.Drawing.Point)(resources.GetObject("button1.Location")));
  427. this.button1.Name = "button1";
  428. this.button1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("button1.RightToLeft")));
  429. this.button1.Size = ((System.Drawing.Size)(resources.GetObject("button1.Size")));
  430. this.button1.TabIndex = ((int)(resources.GetObject("button1.TabIndex")));
  431. this.button1.Text = resources.GetString("button1.Text");
  432. this.button1.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("button1.TextAlign")));
  433. this.button1.Visible = ((bool)(resources.GetObject("button1.Visible")));
  434. this.button1.Click += new System.EventHandler(this.button1_Click);
  435. // 
  436. // contextMenu1
  437. // 
  438. this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  439.  this.menuItem1,
  440.  this.menuItem2});
  441. this.contextMenu1.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("contextMenu1.RightToLeft")));
  442. // 
  443. // menuItem1
  444. // 
  445. this.menuItem1.Enabled = ((bool)(resources.GetObject("menuItem1.Enabled")));
  446. this.menuItem1.Index = 0;
  447. this.menuItem1.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuItem1.Shortcut")));
  448. this.menuItem1.ShowShortcut = ((bool)(resources.GetObject("menuItem1.ShowShortcut")));
  449. this.menuItem1.Text = resources.GetString("menuItem1.Text");
  450. this.menuItem1.Visible = ((bool)(resources.GetObject("menuItem1.Visible")));
  451. this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
  452. // 
  453. // menuItem2
  454. // 
  455. this.menuItem2.Enabled = ((bool)(resources.GetObject("menuItem2.Enabled")));
  456. this.menuItem2.Index = 1;
  457. this.menuItem2.Shortcut = ((System.Windows.Forms.Shortcut)(resources.GetObject("menuItem2.Shortcut")));
  458. this.menuItem2.ShowShortcut = ((bool)(resources.GetObject("menuItem2.ShowShortcut")));
  459. this.menuItem2.Text = resources.GetString("menuItem2.Text");
  460. this.menuItem2.Visible = ((bool)(resources.GetObject("menuItem2.Visible")));
  461. this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
  462. // 
  463. // Form1
  464. // 
  465. this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
  466. this.AccessibleName = resources.GetString("$this.AccessibleName");
  467. this.AllowDrop = true;
  468. this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
  469. this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
  470. this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
  471. this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
  472. this.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(255)));
  473. this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
  474. this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
  475. this.Controls.Add(this.panel1);
  476. this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
  477. this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
  478. this.ForeColor = System.Drawing.Color.Black;
  479. this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  480. this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
  481. this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
  482. this.MaximizeBox = false;
  483. this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
  484. this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
  485. this.Name = "Form1";
  486. this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
  487. this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
  488. this.Text = resources.GetString("$this.Text");
  489. this.TopMost = true;
  490. this.Closing += new System.ComponentModel.CancelEventHandler(this.Form1_Closing);
  491. this.Load += new System.EventHandler(this.Form1_Load);
  492. this.Closed += new System.EventHandler(this.Form1_Closed);
  493. this.panel1.ResumeLayout(false);
  494. this.panel3.ResumeLayout(false);
  495. this.panel2.ResumeLayout(false);
  496. this.ResumeLayout(false);
  497. }
  498. #endregion
  499. /// <summary>
  500. /// 应用程序的主入口点。
  501. /// </summary>
  502. [STAThread]
  503. private void Form1_Closed(object sender, System.EventArgs e)
  504. {
  505. }
  506. private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
  507. {
  508. try
  509. {
  510. sdata.close();
  511. use.close();
  512. yanzhen.Close();
  513. }
  514. catch(Exception ee)
  515. {
  516. }
  517. }
  518. private void button2_Click(object sender, System.EventArgs e)
  519. {
  520. search sea=new search(this);
  521. sea.Show();
  522. }
  523. private void menuItem2_Click(object sender, System.EventArgs e)
  524. {
  525. this.Close();
  526. }
  527. private void menuItem1_Click(object sender, System.EventArgs e)
  528. {
  529. try
  530. {
  531. 用户资料 zz=new 用户资料(this);
  532. zz.Show();
  533. }
  534. catch(Exception ee)
  535. {
  536. MessageBox.Show(ee.ToString());
  537. }
  538. }
  539. private void Form1_Load(object sender, System.EventArgs e)
  540. {
  541. }
  542. private void button1_Click(object sender, System.EventArgs e)
  543. {
  544. this.contextMenu1.Show(this.button1,new Point(4,-20));
  545. }
  546. private void button3_Click(object sender, System.EventArgs e)
  547. {
  548. }
  549. }
  550. }