main.cs
上传用户:fuyouda
上传日期:2021-03-17
资源大小:8619k
文件大小:63k
源码类别:

Windows编程

开发平台:

C/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.IO;
  8. using System.Diagnostics;
  9. namespace WindowsApplication1
  10. {
  11. /// <summary>
  12. /// Form1 的摘要说明。
  13. /// </summary>
  14. public class main : System.Windows.Forms.Form
  15. {
  16. private System.Windows.Forms.MainMenu mainMenu1;
  17. private System.Windows.Forms.MenuItem menuItem1;
  18. private System.Windows.Forms.MenuItem menuItem2;
  19. private System.Windows.Forms.MenuItem menuItem3;
  20. private System.Windows.Forms.MenuItem menuItem4;
  21. private System.Windows.Forms.MenuItem menuItem5;
  22. private System.Windows.Forms.MenuItem menuItem6;
  23. private System.Windows.Forms.MenuItem menuItem7;
  24. private System.Windows.Forms.MenuItem menuItem8;
  25. private System.Windows.Forms.MenuItem menuItem9;
  26. private System.Windows.Forms.MenuItem menuItem10;
  27. private System.Windows.Forms.MenuItem menuItem11;
  28. private System.Windows.Forms.MenuItem menuItem12;
  29. private System.Windows.Forms.MenuItem menuItem13;
  30. private System.Windows.Forms.MenuItem menuItem14;
  31. private System.Windows.Forms.MenuItem menuItem15;
  32. private System.Windows.Forms.MenuItem menuItem16;
  33. private System.Windows.Forms.MenuItem menuItem17;
  34. private System.Windows.Forms.MenuItem menuItem18;
  35. private System.Windows.Forms.StatusBar statusBar1;
  36. private System.Windows.Forms.StatusBarPanel statusBarPanel1;
  37. private System.Windows.Forms.StatusBarPanel statusBarPanel2;
  38. private System.Windows.Forms.StatusBarPanel statusBarPanel3;
  39. private System.Windows.Forms.ToolBar toolBar1;
  40. private System.Windows.Forms.ToolBarButton toolBarButton1;
  41. private System.Windows.Forms.ToolBarButton toolBarButton2;
  42. private System.Windows.Forms.ToolBarButton toolBarButton3;
  43. private System.Windows.Forms.ToolBarButton toolBarButton4;
  44. private System.Windows.Forms.ToolBarButton toolBarButton5;
  45. private System.Windows.Forms.ToolBarButton toolBarButton6;
  46. private System.Windows.Forms.Panel panel1;
  47. private System.Windows.Forms.Button button1;
  48. private System.Windows.Forms.Button button2;
  49. private System.Windows.Forms.Button button3;
  50. private System.Windows.Forms.Button button4;
  51. private System.Windows.Forms.Button button5;
  52. private System.Windows.Forms.Button button6;
  53. private System.Windows.Forms.Button button7;
  54. private System.Windows.Forms.MenuItem menuItem19;
  55. private System.Windows.Forms.MenuItem menuItem20;
  56. private System.Windows.Forms.MenuItem menuItem21;
  57. private login mylogin;
  58. private System.Windows.Forms.Label label1;
  59. private System.Windows.Forms.Label label2;
  60. private System.Windows.Forms.ComboBox comboBox1;
  61. private System.Windows.Forms.ComboBox comboBox2;
  62. private System.Windows.Forms.MenuItem menuItem28;
  63. //private AxRealAudioObjects.AxRealAudio axRealAudio1;
  64. private System.Windows.Forms.Panel panel2;
  65. private System.Windows.Forms.Button button8;
  66. private System.Windows.Forms.Button button9;
  67. private System.Windows.Forms.Button button10;
  68. private System.Windows.Forms.Button button11;
  69. private System.ComponentModel.IContainer components;
  70. private System.Windows.Forms.PictureBox pictureBox1;
  71. private System.Windows.Forms.Label label3;
  72. private System.Windows.Forms.DateTimePicker dateTimePicker1;
  73. private System.Windows.Forms.Panel panel3;
  74. private System.Windows.Forms.Timer timer1;
  75. private System.Windows.Forms.Panel panel4;
  76. private System.Windows.Forms.Button button19;
  77. private System.Windows.Forms.Button button20;
  78. private System.Windows.Forms.Button button21;
  79. private System.Windows.Forms.Button button22;
  80. private System.Windows.Forms.Button button23;
  81. private System.Windows.Forms.Button button24;
  82. private System.Windows.Forms.ToolBarButton toolBarButton7;
  83. private System.Windows.Forms.ToolBarButton toolBarButton8;
  84. private System.Windows.Forms.ImageList imageList1;
  85. private System.Windows.Forms.Button button12;
  86. private System.Windows.Forms.Button button13;
  87. private System.Windows.Forms.Button button14;
  88. private System.Windows.Forms.Button button15;
  89. private System.Windows.Forms.Button button16;
  90. private System.Windows.Forms.Button button18;
  91. private AxWMPLib.AxWindowsMediaPlayer axWindowsMediaPlayer1;
  92. private System.Windows.Forms.Button button17;
  93. public main(login my_login)
  94. {
  95. //
  96. // Windows 窗体设计器支持所必需的
  97. //
  98. this.mylogin=my_login;
  99. InitializeComponent();
  100. //
  101. // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
  102. //
  103. }
  104. /// <summary>
  105. /// 清理所有正在使用的资源。
  106. /// </summary>
  107. protected override void Dispose( bool disposing )
  108. {
  109. if( disposing )
  110. {
  111. if (components != null) 
  112. {
  113. components.Dispose();
  114. }
  115. }
  116. base.Dispose( disposing );
  117. }
  118. #region Windows 窗体设计器生成的代码
  119. /// <summary>
  120. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  121. /// 此方法的内容。
  122. /// </summary>
  123. private void InitializeComponent()
  124. {
  125. this.components = new System.ComponentModel.Container();
  126. System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(main));
  127. this.mainMenu1 = new System.Windows.Forms.MainMenu();
  128. this.menuItem1 = new System.Windows.Forms.MenuItem();
  129. this.menuItem2 = new System.Windows.Forms.MenuItem();
  130. this.menuItem4 = new System.Windows.Forms.MenuItem();
  131. this.menuItem5 = new System.Windows.Forms.MenuItem();
  132. this.menuItem6 = new System.Windows.Forms.MenuItem();
  133. this.menuItem3 = new System.Windows.Forms.MenuItem();
  134. this.menuItem7 = new System.Windows.Forms.MenuItem();
  135. this.menuItem19 = new System.Windows.Forms.MenuItem();
  136. this.menuItem8 = new System.Windows.Forms.MenuItem();
  137. this.menuItem9 = new System.Windows.Forms.MenuItem();
  138. this.menuItem28 = new System.Windows.Forms.MenuItem();
  139. this.menuItem10 = new System.Windows.Forms.MenuItem();
  140. this.menuItem11 = new System.Windows.Forms.MenuItem();
  141. this.menuItem12 = new System.Windows.Forms.MenuItem();
  142. this.menuItem13 = new System.Windows.Forms.MenuItem();
  143. this.menuItem14 = new System.Windows.Forms.MenuItem();
  144. this.menuItem20 = new System.Windows.Forms.MenuItem();
  145. this.menuItem15 = new System.Windows.Forms.MenuItem();
  146. this.menuItem16 = new System.Windows.Forms.MenuItem();
  147. this.menuItem21 = new System.Windows.Forms.MenuItem();
  148. this.menuItem17 = new System.Windows.Forms.MenuItem();
  149. this.menuItem18 = new System.Windows.Forms.MenuItem();
  150. this.statusBar1 = new System.Windows.Forms.StatusBar();
  151. this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
  152. this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
  153. this.statusBarPanel3 = new System.Windows.Forms.StatusBarPanel();
  154. this.toolBar1 = new System.Windows.Forms.ToolBar();
  155. this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
  156. this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
  157. this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
  158. this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
  159. this.toolBarButton5 = new System.Windows.Forms.ToolBarButton();
  160. this.toolBarButton6 = new System.Windows.Forms.ToolBarButton();
  161. this.toolBarButton7 = new System.Windows.Forms.ToolBarButton();
  162. this.toolBarButton8 = new System.Windows.Forms.ToolBarButton();
  163. this.imageList1 = new System.Windows.Forms.ImageList(this.components);
  164. this.panel1 = new System.Windows.Forms.Panel();
  165. this.button7 = new System.Windows.Forms.Button();
  166. this.button6 = new System.Windows.Forms.Button();
  167. this.button3 = new System.Windows.Forms.Button();
  168. this.button2 = new System.Windows.Forms.Button();
  169. this.button1 = new System.Windows.Forms.Button();
  170. this.button4 = new System.Windows.Forms.Button();
  171. this.panel2 = new System.Windows.Forms.Panel();
  172. this.button18 = new System.Windows.Forms.Button();
  173. this.button17 = new System.Windows.Forms.Button();
  174. this.button16 = new System.Windows.Forms.Button();
  175. this.button15 = new System.Windows.Forms.Button();
  176. this.button14 = new System.Windows.Forms.Button();
  177. this.button13 = new System.Windows.Forms.Button();
  178. this.button12 = new System.Windows.Forms.Button();
  179. this.button11 = new System.Windows.Forms.Button();
  180. this.button10 = new System.Windows.Forms.Button();
  181. this.button9 = new System.Windows.Forms.Button();
  182. this.button8 = new System.Windows.Forms.Button();
  183. this.button5 = new System.Windows.Forms.Button();
  184. this.label1 = new System.Windows.Forms.Label();
  185. this.label2 = new System.Windows.Forms.Label();
  186. this.comboBox1 = new System.Windows.Forms.ComboBox();
  187. this.comboBox2 = new System.Windows.Forms.ComboBox();
  188. this.pictureBox1 = new System.Windows.Forms.PictureBox();
  189. this.label3 = new System.Windows.Forms.Label();
  190. this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
  191. this.panel3 = new System.Windows.Forms.Panel();
  192. this.timer1 = new System.Windows.Forms.Timer(this.components);
  193. this.panel4 = new System.Windows.Forms.Panel();
  194. this.button24 = new System.Windows.Forms.Button();
  195. this.button23 = new System.Windows.Forms.Button();
  196. this.button22 = new System.Windows.Forms.Button();
  197. this.button21 = new System.Windows.Forms.Button();
  198. this.button20 = new System.Windows.Forms.Button();
  199. this.button19 = new System.Windows.Forms.Button();
  200. this.axWindowsMediaPlayer1 = new AxWMPLib.AxWindowsMediaPlayer();
  201. ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
  202. ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
  203. ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).BeginInit();
  204. this.panel1.SuspendLayout();
  205. this.panel2.SuspendLayout();
  206. this.panel3.SuspendLayout();
  207. this.panel4.SuspendLayout();
  208. ((System.ComponentModel.ISupportInitialize)(this.axWindowsMediaPlayer1)).BeginInit();
  209. this.SuspendLayout();
  210. // 
  211. // mainMenu1
  212. // 
  213. this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  214.   this.menuItem1,
  215.   this.menuItem3,
  216.   this.menuItem8,
  217.   this.menuItem10,
  218.   this.menuItem13,
  219.   this.menuItem15,
  220.   this.menuItem17});
  221. // 
  222. // menuItem1
  223. // 
  224. this.menuItem1.Index = 0;
  225. this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  226.   this.menuItem2,
  227.   this.menuItem4,
  228.   this.menuItem5,
  229.   this.menuItem6});
  230. this.menuItem1.Text = "系统";
  231. this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
  232. // 
  233. // menuItem2
  234. // 
  235. this.menuItem2.Index = 0;
  236. this.menuItem2.Text = "用户注册";
  237. this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
  238. // 
  239. // menuItem4
  240. // 
  241. this.menuItem4.Index = 1;
  242. this.menuItem4.Text = "用户管理";
  243. this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
  244. // 
  245. // menuItem5
  246. // 
  247. this.menuItem5.Index = 2;
  248. this.menuItem5.Text = "修改密码";
  249. this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click);
  250. // 
  251. // menuItem6
  252. // 
  253. this.menuItem6.Index = 3;
  254. this.menuItem6.Text = "关闭系统";
  255. this.menuItem6.Click += new System.EventHandler(this.menuItem6_Click);
  256. // 
  257. // menuItem3
  258. // 
  259. this.menuItem3.Index = 1;
  260. this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  261.   this.menuItem7,
  262.   this.menuItem19});
  263. this.menuItem3.Text = "楼盘管理";
  264. this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
  265. // 
  266. // menuItem7
  267. // 
  268. this.menuItem7.Index = 0;
  269. this.menuItem7.Text = "楼盘管理";
  270. this.menuItem7.Click += new System.EventHandler(this.menuItem7_Click);
  271. // 
  272. // menuItem19
  273. // 
  274. this.menuItem19.Index = 1;
  275. this.menuItem19.Text = "添加修改楼盘信息";
  276. this.menuItem19.Click += new System.EventHandler(this.menuItem19_Click);
  277. // 
  278. // menuItem8
  279. // 
  280. this.menuItem8.Index = 2;
  281. this.menuItem8.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  282.   this.menuItem9,
  283.   this.menuItem28});
  284. this.menuItem8.Text = "住户管理";
  285. // 
  286. // menuItem9
  287. // 
  288. this.menuItem9.Index = 0;
  289. this.menuItem9.Text = "住户管理";
  290. this.menuItem9.Click += new System.EventHandler(this.menuItem9_Click);
  291. // 
  292. // menuItem28
  293. // 
  294. this.menuItem28.Index = 1;
  295. this.menuItem28.Text = "添加修改住户信息";
  296. this.menuItem28.Click += new System.EventHandler(this.menuItem28_Click);
  297. // 
  298. // menuItem10
  299. // 
  300. this.menuItem10.Index = 3;
  301. this.menuItem10.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  302.    this.menuItem11,
  303.    this.menuItem12});
  304. this.menuItem10.Text = "停车管理";
  305. // 
  306. // menuItem11
  307. // 
  308. this.menuItem11.Index = 0;
  309. this.menuItem11.Text = "停车管理";
  310. this.menuItem11.Click += new System.EventHandler(this.menuItem11_Click);
  311. // 
  312. // menuItem12
  313. // 
  314. this.menuItem12.Index = 1;
  315. this.menuItem12.Text = "统计查询";
  316. this.menuItem12.Click += new System.EventHandler(this.menuItem12_Click);
  317. // 
  318. // menuItem13
  319. // 
  320. this.menuItem13.Index = 4;
  321. this.menuItem13.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  322.    this.menuItem14,
  323.    this.menuItem20});
  324. this.menuItem13.Text = "收费管理";
  325. // 
  326. // menuItem14
  327. // 
  328. this.menuItem14.Index = 0;
  329. this.menuItem14.Text = "收费管理";
  330. this.menuItem14.Click += new System.EventHandler(this.menuItem14_Click);
  331. // 
  332. // menuItem20
  333. // 
  334. this.menuItem20.Index = 1;
  335. this.menuItem20.Text = "添加修改收费信息";
  336. this.menuItem20.Click += new System.EventHandler(this.menuItem20_Click);
  337. // 
  338. // menuItem15
  339. // 
  340. this.menuItem15.Index = 5;
  341. this.menuItem15.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  342.    this.menuItem16,
  343.    this.menuItem21});
  344. this.menuItem15.Text = "报修管理";
  345. // 
  346. // menuItem16
  347. // 
  348. this.menuItem16.Index = 0;
  349. this.menuItem16.Text = "报修管理";
  350. this.menuItem16.Click += new System.EventHandler(this.menuItem16_Click);
  351. // 
  352. // menuItem21
  353. // 
  354. this.menuItem21.Index = 1;
  355. this.menuItem21.Text = "添加修改报修信息";
  356. this.menuItem21.Click += new System.EventHandler(this.menuItem21_Click);
  357. // 
  358. // menuItem17
  359. // 
  360. this.menuItem17.Index = 6;
  361. this.menuItem17.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
  362.    this.menuItem18});
  363. this.menuItem17.Text = "投诉管理";
  364. // 
  365. // menuItem18
  366. // 
  367. this.menuItem18.Index = 0;
  368. this.menuItem18.Text = "投诉管理";
  369. this.menuItem18.Click += new System.EventHandler(this.menuItem18_Click);
  370. // 
  371. // statusBar1
  372. // 
  373. this.statusBar1.Location = new System.Drawing.Point(0, 387);
  374. this.statusBar1.Name = "statusBar1";
  375. this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
  376.   this.statusBarPanel1,
  377.   this.statusBarPanel2,
  378.   this.statusBarPanel3});
  379. this.statusBar1.ShowPanels = true;
  380. this.statusBar1.Size = new System.Drawing.Size(586, 22);
  381. this.statusBar1.TabIndex = 0;
  382. this.statusBar1.Text = "报修管理";
  383. this.statusBar1.PanelClick += new System.Windows.Forms.StatusBarPanelClickEventHandler(this.statusBar1_PanelClick);
  384. // 
  385. // statusBarPanel1
  386. // 
  387. this.statusBarPanel1.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
  388. this.statusBarPanel1.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents;
  389. this.statusBarPanel1.Text = "欢迎光临";
  390. this.statusBarPanel1.Width = 64;
  391. // 
  392. // statusBarPanel2
  393. // 
  394. this.statusBarPanel2.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
  395. this.statusBarPanel2.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents;
  396. this.statusBarPanel2.Text = "当前位置:小区物业系统";
  397. this.statusBarPanel2.Width = 150;
  398. // 
  399. // statusBarPanel3
  400. // 
  401. this.statusBarPanel3.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
  402. this.statusBarPanel3.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents;
  403. this.statusBarPanel3.Text = "如需帮助请漫游系统";
  404. this.statusBarPanel3.Width = 126;
  405. // 
  406. // toolBar1
  407. // 
  408. this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
  409. this.toolBarButton1,
  410. this.toolBarButton2,
  411. this.toolBarButton3,
  412. this.toolBarButton4,
  413. this.toolBarButton5,
  414. this.toolBarButton6,
  415. this.toolBarButton7,
  416. this.toolBarButton8});
  417. this.toolBar1.DropDownArrows = true;
  418. this.toolBar1.ImageList = this.imageList1;
  419. this.toolBar1.Location = new System.Drawing.Point(0, 0);
  420. this.toolBar1.Name = "toolBar1";
  421. this.toolBar1.ShowToolTips = true;
  422. this.toolBar1.Size = new System.Drawing.Size(586, 28);
  423. this.toolBar1.TabIndex = 1;
  424. this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
  425. // 
  426. // toolBarButton1
  427. // 
  428. this.toolBarButton1.ImageIndex = 0;
  429. // 
  430. // toolBarButton2
  431. // 
  432. this.toolBarButton2.ImageIndex = 1;
  433. // 
  434. // toolBarButton3
  435. // 
  436. this.toolBarButton3.ImageIndex = 7;
  437. // 
  438. // toolBarButton4
  439. // 
  440. this.toolBarButton4.ImageIndex = 2;
  441. // 
  442. // toolBarButton5
  443. // 
  444. this.toolBarButton5.ImageIndex = 3;
  445. // 
  446. // toolBarButton6
  447. // 
  448. this.toolBarButton6.ImageIndex = 6;
  449. // 
  450. // toolBarButton7
  451. // 
  452. this.toolBarButton7.ImageIndex = 4;
  453. // 
  454. // toolBarButton8
  455. // 
  456. this.toolBarButton8.ImageIndex = 5;
  457. // 
  458. // imageList1
  459. // 
  460. this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
  461. this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
  462. this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
  463. // 
  464. // panel1
  465. // 
  466. this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
  467. this.panel1.Controls.Add(this.button7);
  468. this.panel1.Controls.Add(this.button6);
  469. this.panel1.Controls.Add(this.button3);
  470. this.panel1.Controls.Add(this.button2);
  471. this.panel1.Controls.Add(this.button1);
  472. this.panel1.Controls.Add(this.button4);
  473. this.panel1.Controls.Add(this.panel2);
  474. this.panel1.Controls.Add(this.button5);
  475. this.panel1.Location = new System.Drawing.Point(0, 32);
  476. this.panel1.Name = "panel1";
  477. this.panel1.Size = new System.Drawing.Size(120, 356);
  478. this.panel1.TabIndex = 2;
  479. // 
  480. // button7
  481. // 
  482. this.button7.Location = new System.Drawing.Point(0, 328);
  483. this.button7.Name = "button7";
  484. this.button7.Size = new System.Drawing.Size(120, 27);
  485. this.button7.TabIndex = 5;
  486. this.button7.Text = "投诉管理";
  487. this.button7.Click += new System.EventHandler(this.button7_Click);
  488. // 
  489. // button6
  490. // 
  491. this.button6.Location = new System.Drawing.Point(0, 304);
  492. this.button6.Name = "button6";
  493. this.button6.Size = new System.Drawing.Size(120, 25);
  494. this.button6.TabIndex = 4;
  495. this.button6.Text = "报修管理";
  496. this.button6.Click += new System.EventHandler(this.button6_Click);
  497. // 
  498. // button3
  499. // 
  500. this.button3.Location = new System.Drawing.Point(0, 232);
  501. this.button3.Name = "button3";
  502. this.button3.Size = new System.Drawing.Size(120, 25);
  503. this.button3.TabIndex = 2;
  504. this.button3.Text = "住户管理";
  505. this.button3.Click += new System.EventHandler(this.button3_Click);
  506. // 
  507. // button2
  508. // 
  509. this.button2.Location = new System.Drawing.Point(0, 208);
  510. this.button2.Name = "button2";
  511. this.button2.Size = new System.Drawing.Size(120, 25);
  512. this.button2.TabIndex = 1;
  513. this.button2.Text = "楼盘管理";
  514. this.button2.Click += new System.EventHandler(this.button2_Click);
  515. // 
  516. // button1
  517. // 
  518. this.button1.Location = new System.Drawing.Point(0, 0);
  519. this.button1.Name = "button1";
  520. this.button1.Size = new System.Drawing.Size(120, 25);
  521. this.button1.TabIndex = 0;
  522. this.button1.Text = "系  统";
  523. this.button1.Click += new System.EventHandler(this.button1_Click);
  524. // 
  525. // button4
  526. // 
  527. this.button4.Location = new System.Drawing.Point(0, 256);
  528. this.button4.Name = "button4";
  529. this.button4.Size = new System.Drawing.Size(120, 25);
  530. this.button4.TabIndex = 2;
  531. this.button4.Text = "停车管理";
  532. this.button4.Click += new System.EventHandler(this.button4_Click);
  533. // 
  534. // panel2
  535. // 
  536. this.panel2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel2.BackgroundImage")));
  537. this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
  538. this.panel2.Controls.Add(this.button18);
  539. this.panel2.Controls.Add(this.button17);
  540. this.panel2.Controls.Add(this.button16);
  541. this.panel2.Controls.Add(this.button15);
  542. this.panel2.Controls.Add(this.button14);
  543. this.panel2.Controls.Add(this.button13);
  544. this.panel2.Controls.Add(this.button12);
  545. this.panel2.Controls.Add(this.button11);
  546. this.panel2.Controls.Add(this.button10);
  547. this.panel2.Controls.Add(this.button9);
  548. this.panel2.Controls.Add(this.button8);
  549. this.panel2.Location = new System.Drawing.Point(0, 24);
  550. this.panel2.Name = "panel2";
  551. this.panel2.Size = new System.Drawing.Size(120, 184);
  552. this.panel2.TabIndex = 18;
  553. // 
  554. // button18
  555. // 
  556. this.button18.Cursor = System.Windows.Forms.Cursors.Hand;
  557. this.button18.Image = ((System.Drawing.Image)(resources.GetObject("button18.Image")));
  558. this.button18.Location = new System.Drawing.Point(80, 80);
  559. this.button18.Name = "button18";
  560. this.button18.Size = new System.Drawing.Size(40, 40);
  561. this.button18.TabIndex = 10;
  562. this.button18.Text = "投诉管理";
  563. this.button18.Visible = false;
  564. this.button18.Click += new System.EventHandler(this.button18_Click_2);
  565. // 
  566. // button17
  567. // 
  568. this.button17.Cursor = System.Windows.Forms.Cursors.Hand;
  569. this.button17.Image = ((System.Drawing.Image)(resources.GetObject("button17.Image")));
  570. this.button17.Location = new System.Drawing.Point(80, 40);
  571. this.button17.Name = "button17";
  572. this.button17.Size = new System.Drawing.Size(40, 40);
  573. this.button17.TabIndex = 9;
  574. this.button17.Text = "报修管理";
  575. this.button17.Visible = false;
  576. this.button17.Click += new System.EventHandler(this.button17_Click_1);
  577. // 
  578. // button16
  579. // 
  580. this.button16.Cursor = System.Windows.Forms.Cursors.Hand;
  581. this.button16.Image = ((System.Drawing.Image)(resources.GetObject("button16.Image")));
  582. this.button16.Location = new System.Drawing.Point(80, 0);
  583. this.button16.Name = "button16";
  584. this.button16.Size = new System.Drawing.Size(40, 40);
  585. this.button16.TabIndex = 8;
  586. this.button16.Text = "收费管理";
  587. this.button16.Visible = false;
  588. this.button16.Click += new System.EventHandler(this.button16_Click_1);
  589. // 
  590. // button15
  591. // 
  592. this.button15.Cursor = System.Windows.Forms.Cursors.Hand;
  593. this.button15.Image = ((System.Drawing.Image)(resources.GetObject("button15.Image")));
  594. this.button15.Location = new System.Drawing.Point(0, 120);
  595. this.button15.Name = "button15";
  596. this.button15.Size = new System.Drawing.Size(40, 40);
  597. this.button15.TabIndex = 7;
  598. this.button15.Text = "统计查询";
  599. this.button15.Visible = false;
  600. this.button15.Click += new System.EventHandler(this.button15_Click_2);
  601. // 
  602. // button14
  603. // 
  604. this.button14.Cursor = System.Windows.Forms.Cursors.Hand;
  605. this.button14.Image = ((System.Drawing.Image)(resources.GetObject("button14.Image")));
  606. this.button14.Location = new System.Drawing.Point(0, 80);
  607. this.button14.Name = "button14";
  608. this.button14.Size = new System.Drawing.Size(40, 40);
  609. this.button14.TabIndex = 6;
  610. this.button14.Text = "停车管理";
  611. this.button14.Visible = false;
  612. this.button14.Click += new System.EventHandler(this.button14_Click_1);
  613. // 
  614. // button13
  615. // 
  616. this.button13.Cursor = System.Windows.Forms.Cursors.Hand;
  617. this.button13.Image = ((System.Drawing.Image)(resources.GetObject("button13.Image")));
  618. this.button13.Location = new System.Drawing.Point(0, 40);
  619. this.button13.Name = "button13";
  620. this.button13.Size = new System.Drawing.Size(40, 40);
  621. this.button13.TabIndex = 5;
  622. this.button13.Text = "住户管理";
  623. this.button13.Visible = false;
  624. this.button13.Click += new System.EventHandler(this.button13_Click_1);
  625. // 
  626. // button12
  627. // 
  628. this.button12.Cursor = System.Windows.Forms.Cursors.Hand;
  629. this.button12.Image = ((System.Drawing.Image)(resources.GetObject("button12.Image")));
  630. this.button12.Location = new System.Drawing.Point(0, 0);
  631. this.button12.Name = "button12";
  632. this.button12.Size = new System.Drawing.Size(40, 40);
  633. this.button12.TabIndex = 4;
  634. this.button12.Text = "楼盘管理";
  635. this.button12.Visible = false;
  636. this.button12.Click += new System.EventHandler(this.button12_Click_2);
  637. // 
  638. // button11
  639. // 
  640. this.button11.Cursor = System.Windows.Forms.Cursors.Hand;
  641. this.button11.Image = ((System.Drawing.Image)(resources.GetObject("button11.Image")));
  642. this.button11.Location = new System.Drawing.Point(40, 144);
  643. this.button11.Name = "button11";
  644. this.button11.Size = new System.Drawing.Size(40, 40);
  645. this.button11.TabIndex = 3;
  646. this.button11.Text = "关闭系统";
  647. this.button11.Click += new System.EventHandler(this.button11_Click);
  648. // 
  649. // button10
  650. // 
  651. this.button10.Cursor = System.Windows.Forms.Cursors.Hand;
  652. this.button10.Image = ((System.Drawing.Image)(resources.GetObject("button10.Image")));
  653. this.button10.Location = new System.Drawing.Point(40, 96);
  654. this.button10.Name = "button10";
  655. this.button10.Size = new System.Drawing.Size(40, 40);
  656. this.button10.TabIndex = 2;
  657. this.button10.Text = "修改密码";
  658. this.button10.Click += new System.EventHandler(this.button10_Click);
  659. // 
  660. // button9
  661. // 
  662. this.button9.Cursor = System.Windows.Forms.Cursors.Hand;
  663. this.button9.Image = ((System.Drawing.Image)(resources.GetObject("button9.Image")));
  664. this.button9.Location = new System.Drawing.Point(40, 48);
  665. this.button9.Name = "button9";
  666. this.button9.Size = new System.Drawing.Size(40, 40);
  667. this.button9.TabIndex = 1;
  668. this.button9.Text = "用户管理";
  669. this.button9.Click += new System.EventHandler(this.button9_Click);
  670. // 
  671. // button8
  672. // 
  673. this.button8.Cursor = System.Windows.Forms.Cursors.Hand;
  674. this.button8.Image = ((System.Drawing.Image)(resources.GetObject("button8.Image")));
  675. this.button8.Location = new System.Drawing.Point(40, 0);
  676. this.button8.Name = "button8";
  677. this.button8.Size = new System.Drawing.Size(40, 40);
  678. this.button8.TabIndex = 0;
  679. this.button8.Text = "系统登录";
  680. this.button8.Click += new System.EventHandler(this.button8_Click);
  681. // 
  682. // button5
  683. // 
  684. this.button5.Location = new System.Drawing.Point(0, 280);
  685. this.button5.Name = "button5";
  686. this.button5.Size = new System.Drawing.Size(120, 25);
  687. this.button5.TabIndex = 3;
  688. this.button5.Text = "收费管理";
  689. this.button5.Click += new System.EventHandler(this.button5_Click);
  690. // 
  691. // label1
  692. // 
  693. this.label1.Location = new System.Drawing.Point(136, 44);
  694. this.label1.Name = "label1";
  695. this.label1.Size = new System.Drawing.Size(80, 11);
  696. this.label1.TabIndex = 13;
  697. this.label1.Text = "请选择皮肤:";
  698. // 
  699. // label2
  700. // 
  701. this.label2.Location = new System.Drawing.Point(344, 44);
  702. this.label2.Name = "label2";
  703. this.label2.Size = new System.Drawing.Size(104, 14);
  704. this.label2.TabIndex = 14;
  705. this.label2.Text = "请选择背景音乐:";
  706. // 
  707. // comboBox1
  708. // 
  709. this.comboBox1.Items.AddRange(new object[] {
  710.    "皮肤方案一",
  711.    "皮肤方案二",
  712.    "原始皮肤"});
  713. this.comboBox1.Location = new System.Drawing.Point(216, 40);
  714. this.comboBox1.Name = "comboBox1";
  715. this.comboBox1.Size = new System.Drawing.Size(120, 20);
  716. this.comboBox1.TabIndex = 15;
  717. this.comboBox1.TextChanged += new System.EventHandler(this.comboBox1_TextChanged);
  718. // 
  719. // comboBox2
  720. // 
  721. this.comboBox2.Items.AddRange(new object[] {
  722.    "周杰伦-外婆",
  723.    "小  雪——其实我介意",
  724.    "恋上一个人",
  725.    "吴佩慈-闪着泪光的决定",
  726.    "周杰伦 - 七里香 完美cd版",
  727.    "周杰伦-外婆",
  728.    "周杰伦-搁浅",
  729.    "周杰伦-借口"});
  730. this.comboBox2.Location = new System.Drawing.Point(440, 40);
  731. this.comboBox2.Name = "comboBox2";
  732. this.comboBox2.Size = new System.Drawing.Size(120, 20);
  733. this.comboBox2.TabIndex = 16;
  734. this.comboBox2.TextChanged += new System.EventHandler(this.comboBox2_TextChanged);
  735. // 
  736. // pictureBox1
  737. // 
  738. this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
  739. this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
  740. this.pictureBox1.Location = new System.Drawing.Point(120, 64);
  741. this.pictureBox1.Name = "pictureBox1";
  742. this.pictureBox1.Size = new System.Drawing.Size(446, 104);
  743. this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
  744. this.pictureBox1.TabIndex = 25;
  745. this.pictureBox1.TabStop = false;
  746. // 
  747. // label3
  748. // 
  749. this.label3.AutoSize = true;
  750. this.label3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
  751. this.label3.Location = new System.Drawing.Point(136, 5);
  752. this.label3.Name = "label3";
  753. this.label3.Size = new System.Drawing.Size(42, 17);
  754. this.label3.TabIndex = 26;
  755. this.label3.Text = "label3";
  756. this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
  757. // 
  758. // dateTimePicker1
  759. // 
  760. this.dateTimePicker1.Location = new System.Drawing.Point(360, 392);
  761. this.dateTimePicker1.Name = "dateTimePicker1";
  762. this.dateTimePicker1.TabIndex = 27;
  763. this.dateTimePicker1.Visible = false;
  764. // 
  765. // panel3
  766. // 
  767. this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
  768. this.panel3.Controls.Add(this.label3);
  769. this.panel3.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
  770. this.panel3.Location = new System.Drawing.Point(120, 168);
  771. this.panel3.Name = "panel3";
  772. this.panel3.Size = new System.Drawing.Size(446, 24);
  773. this.panel3.TabIndex = 28;
  774. // 
  775. // timer1
  776. // 
  777. this.timer1.Enabled = true;
  778. this.timer1.Interval = 50;
  779. this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
  780. // 
  781. // panel4
  782. // 
  783. this.panel4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel4.BackgroundImage")));
  784. this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
  785. this.panel4.Controls.Add(this.button24);
  786. this.panel4.Controls.Add(this.button23);
  787. this.panel4.Controls.Add(this.button22);
  788. this.panel4.Controls.Add(this.button21);
  789. this.panel4.Controls.Add(this.button20);
  790. this.panel4.Controls.Add(this.button19);
  791. this.panel4.Location = new System.Drawing.Point(120, 192);
  792. this.panel4.Name = "panel4";
  793. this.panel4.Size = new System.Drawing.Size(446, 196);
  794. this.panel4.TabIndex = 29;
  795. // 
  796. // button24
  797. // 
  798. this.button24.BackColor = System.Drawing.Color.Transparent;
  799. this.button24.Cursor = System.Windows.Forms.Cursors.Hand;
  800. this.button24.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
  801. this.button24.Image = ((System.Drawing.Image)(resources.GetObject("button24.Image")));
  802. this.button24.Location = new System.Drawing.Point(336, 104);
  803. this.button24.Name = "button24";
  804. this.button24.Size = new System.Drawing.Size(90, 80);
  805. this.button24.TabIndex = 5;
  806. this.button24.Click += new System.EventHandler(this.button24_Click);
  807. // 
  808. // button23
  809. // 
  810. this.button23.BackColor = System.Drawing.Color.Transparent;
  811. this.button23.Cursor = System.Windows.Forms.Cursors.Hand;
  812. this.button23.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
  813. this.button23.Image = ((System.Drawing.Image)(resources.GetObject("button23.Image")));
  814. this.button23.Location = new System.Drawing.Point(192, 104);
  815. this.button23.Name = "button23";
  816. this.button23.Size = new System.Drawing.Size(90, 80);
  817. this.button23.TabIndex = 4;
  818. this.button23.Click += new System.EventHandler(this.button23_Click);
  819. // 
  820. // button22
  821. // 
  822. this.button22.BackColor = System.Drawing.Color.Transparent;
  823. this.button22.Cursor = System.Windows.Forms.Cursors.Hand;
  824. this.button22.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
  825. this.button22.Image = ((System.Drawing.Image)(resources.GetObject("button22.Image")));
  826. this.button22.Location = new System.Drawing.Point(32, 104);
  827. this.button22.Name = "button22";
  828. this.button22.Size = new System.Drawing.Size(90, 80);
  829. this.button22.TabIndex = 3;
  830. this.button22.Click += new System.EventHandler(this.button22_Click);
  831. // 
  832. // button21
  833. // 
  834. this.button21.BackColor = System.Drawing.Color.Transparent;
  835. this.button21.Cursor = System.Windows.Forms.Cursors.Hand;
  836. this.button21.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
  837. this.button21.Image = ((System.Drawing.Image)(resources.GetObject("button21.Image")));
  838. this.button21.Location = new System.Drawing.Point(336, 8);
  839. this.button21.Name = "button21";
  840. this.button21.Size = new System.Drawing.Size(90, 80);
  841. this.button21.TabIndex = 2;
  842. this.button21.Click += new System.EventHandler(this.button21_Click);
  843. // 
  844. // button20
  845. // 
  846. this.button20.BackColor = System.Drawing.Color.Transparent;
  847. this.button20.Cursor = System.Windows.Forms.Cursors.Hand;
  848. this.button20.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
  849. this.button20.Image = ((System.Drawing.Image)(resources.GetObject("button20.Image")));
  850. this.button20.Location = new System.Drawing.Point(192, 8);
  851. this.button20.Name = "button20";
  852. this.button20.Size = new System.Drawing.Size(90, 80);
  853. this.button20.TabIndex = 1;
  854. this.button20.Click += new System.EventHandler(this.button20_Click);
  855. // 
  856. // button19
  857. // 
  858. this.button19.BackColor = System.Drawing.Color.Transparent;
  859. this.button19.Cursor = System.Windows.Forms.Cursors.Hand;
  860. this.button19.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
  861. this.button19.ForeColor = System.Drawing.Color.Black;
  862. this.button19.Image = ((System.Drawing.Image)(resources.GetObject("button19.Image")));
  863. this.button19.Location = new System.Drawing.Point(32, 8);
  864. this.button19.Name = "button19";
  865. this.button19.Size = new System.Drawing.Size(90, 80);
  866. this.button19.TabIndex = 0;
  867. this.button19.Click += new System.EventHandler(this.button19_Click);
  868. // 
  869. // axWindowsMediaPlayer1
  870. // 
  871. this.axWindowsMediaPlayer1.Enabled = true;
  872. this.axWindowsMediaPlayer1.Location = new System.Drawing.Point(656, 368);
  873. this.axWindowsMediaPlayer1.Name = "axWindowsMediaPlayer1";
  874. this.axWindowsMediaPlayer1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axWindowsMediaPlayer1.OcxState")));
  875. this.axWindowsMediaPlayer1.TabIndex = 30;
  876. // 
  877. // main
  878. // 
  879. this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
  880. this.ClientSize = new System.Drawing.Size(586, 409);
  881. this.Controls.Add(this.axWindowsMediaPlayer1);
  882. this.Controls.Add(this.panel4);
  883. this.Controls.Add(this.panel3);
  884. this.Controls.Add(this.pictureBox1);
  885. this.Controls.Add(this.comboBox2);
  886. this.Controls.Add(this.comboBox1);
  887. this.Controls.Add(this.label2);
  888. this.Controls.Add(this.label1);
  889. this.Controls.Add(this.panel1);
  890. this.Controls.Add(this.toolBar1);
  891. this.Controls.Add(this.statusBar1);
  892. this.Controls.Add(this.dateTimePicker1);
  893. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
  894. this.MaximizeBox = false;
  895. this.Menu = this.mainMenu1;
  896. this.Name = "main";
  897. this.Text = "小区物业系统";
  898. this.Load += new System.EventHandler(this.Form1_Load);
  899. this.Closed += new System.EventHandler(this.main_Closed);
  900. ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
  901. ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit();
  902. ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).EndInit();
  903. this.panel1.ResumeLayout(false);
  904. this.panel2.ResumeLayout(false);
  905. this.panel3.ResumeLayout(false);
  906. this.panel4.ResumeLayout(false);
  907. ((System.ComponentModel.ISupportInitialize)(this.axWindowsMediaPlayer1)).EndInit();
  908. this.ResumeLayout(false);
  909. }
  910. #endregion
  911. /// <summary>
  912. /// 应用程序的主入口点。
  913. /// </summary>
  914. [STAThread]
  915. static void Main() 
  916. {
  917. Application.Run(new login());
  918. }
  919. public void button2_Click(object sender, System.EventArgs e)
  920. {
  921. if(this.button2.Top<208)
  922. {
  923. this.button8.Visible=true;
  924. this.button8.Top=0;
  925. this.button9.Top=48;
  926. this.button10.Top=96;
  927. this.button11.Top=144;
  928. this.button9.Visible=true;
  929. this.button10.Visible=true;
  930. this.button11.Visible=true;
  931. this.button12.Visible=false;
  932. this.button13.Visible=false;
  933. this.button14.Visible=false;
  934. this.button15.Visible=false;
  935. this.button16.Visible=false;
  936. this.button17.Visible=false;
  937. this.button18.Visible=false;
  938. this.button12.Visible=false;
  939. this.button8.Visible=true;
  940. this.button9.Visible=true;
  941. this.button10.Visible=true;
  942. this.button11.Visible=true;
  943. this.button8.Enabled=true;;
  944. this.button9.Enabled=true;
  945. this.button10.Enabled=true;
  946. this.button11.Enabled=true;;
  947. this.button9.Text="用户管理";
  948. this.button2.Top=this.button1.Top+this.button1.Height+this.panel2.Height;
  949. this.panel2.Top=this.button1.Top+this.button1.Height;
  950. this.button3.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.panel2.Height;
  951. this.button4.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.panel2.Height;
  952. this.button5.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.panel2.Height;
  953. this.button6.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.panel2.Height;
  954. this.button7.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.button6.Height+this.panel2.Height;
  955. }
  956. else
  957. {
  958. this.button8.Visible=false;
  959. this.button9.Visible=false;
  960. this.button10.Visible=false;
  961. this.button11.Visible=false;
  962. this.button12.Visible=true;
  963. this.button13.Visible=false;
  964. this.button14.Visible=false;
  965. this.button15.Visible=false;
  966. this.button16.Visible=false;
  967. this.button17.Visible=false;
  968. this.button18.Visible=false;
  969. this.button12.Top=75;
  970. this.button12.Left=this.button9.Left;
  971. this.button8.Visible=false;
  972. this.button9.Visible=false;
  973. this.button10.Visible=false;
  974. this.button11.Visible=false;
  975. this.button12.Visible=true;
  976. this.button8.Enabled=false;
  977. this.button9.Enabled=true;
  978. this.button10.Enabled=false;
  979. this.button11.Enabled=false;
  980. this.button9.Text="楼盘管理";
  981. this.button2.Top=this.button1.Top+this.button1.Height;
  982. this.panel2.Top=24+this.button2.Height;
  983. }
  984. }
  985. private void Form1_Load(object sender, System.EventArgs e)
  986. {
  987. this.label3.Text=mylogin.textBox1.Text+"欢迎你的光临,今天是"+this.dateTimePicker1.Text;
  988. this.panel2.Top=24;
  989. this.button2.Top=this.button1.Top+this.button1.Height+this.panel2.Height;
  990. this.button3.Top=this.button2.Top+this.button2.Height;
  991. this.button4.Top=this.button3.Top+this.button3.Height;
  992. this.button5.Top=this.button4.Top+this.button4.Height;
  993. this.button6.Top=this.button5.Top+this.button5.Height;
  994. this.button7.Top=this.button6.Top+this.button6.Height;//this.button2.Top=this.button1.Top+this.button1.Height+this.pictureBox1.Height;
  995. }
  996. private void button12_Click(object sender, System.EventArgs e)
  997. {
  998. }
  999. public void button3_Click(object sender, System.EventArgs e)
  1000. {
  1001. if(this.button3.Top<200)
  1002. {
  1003. this.button8.Visible=false;
  1004. this.button9.Visible=false;
  1005. this.button10.Visible=false;
  1006. this.button11.Visible=false;
  1007. this.button12.Visible=true;
  1008. this.button13.Visible=false;
  1009. this.button14.Visible=false;
  1010. this.button15.Visible=false;
  1011. this.button16.Visible=false;
  1012. this.button17.Visible=false;
  1013. this.button18.Visible=false;
  1014. this.button13.Visible=false;
  1015. this.button12.Visible=true;
  1016. this.button12.Top=75;
  1017. this.button12.Left=40;
  1018. this.panel2.Top=this.button1.Top+this.button1.Height+this.button2.Height;
  1019. this.button3.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.panel2.Height;
  1020. this.button4.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.panel2.Height+this.button3.Height;
  1021. this.button5.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.panel2.Height+this.button3.Height+this.button4.Height;
  1022. this.button6.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.panel2.Height+this.button3.Height+this.button4.Height+this.button5.Height;
  1023. this.button7.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.panel2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.button6.Height;
  1024. }
  1025. else
  1026. {
  1027. this.button8.Visible=false;
  1028. this.button9.Visible=false;
  1029. this.button10.Visible=false;
  1030. this.button11.Visible=false;
  1031. this.button12.Visible=false;
  1032. this.button13.Visible=true;
  1033. this.button14.Visible=false;
  1034. this.button15.Visible=false;
  1035. this.button16.Visible=false;
  1036. this.button17.Visible=false;
  1037. this.button18.Visible=false;
  1038. this.button8.Visible=false;
  1039. this.button9.Visible=false;
  1040. this.button10.Visible=false;
  1041. this.button11.Visible=false;
  1042. this.button12.Visible=false;
  1043. this.button13.Visible=true;
  1044. this.button13.Left=40;
  1045. this.button13.Top=90;
  1046. this.button2.Top=this.button1.Top+this.button1.Height;
  1047. this.button3.Top=this.button1.Top+this.button1.Height+this.button2.Height;
  1048. this.panel2.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height;
  1049. }
  1050. }
  1051. public void button4_Click(object sender, System.EventArgs e)
  1052. {
  1053. if(this.button4.Top<200)
  1054. {
  1055. this.button8.Visible=false;
  1056. this.button9.Visible=false;
  1057. this.button10.Visible=false;
  1058. this.button11.Visible=false;
  1059. this.button12.Visible=false;
  1060. this.button13.Visible=true;
  1061. this.button14.Visible=false;
  1062. this.button15.Visible=false;
  1063. this.button16.Visible=false;
  1064. this.button17.Visible=false;
  1065. this.button18.Visible=false;
  1066. this.button13.Top=90;
  1067. this.button13.Left=40;
  1068. this.button14.Left=40;
  1069. this.button14.Top=170;
  1070. this.button15.Left=40;
  1071. this.button15.Top=190;
  1072. this.button4.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+panel2.Height;
  1073. this.panel2.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height;
  1074. this.button5.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.panel2.Height+this.button3.Height+this.button4.Height;
  1075. this.button6.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.panel2.Height+this.button3.Height+this.button4.Height+this.button5.Height;
  1076. this.button7.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.panel2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.button6.Height;
  1077. }
  1078. else
  1079. {
  1080. this.button8.Visible=false;
  1081. this.button9.Visible=false;
  1082. this.button10.Visible=false;
  1083. this.button11.Visible=false;
  1084. this.button12.Visible=false;
  1085. this.button13.Visible=false;
  1086. this.button14.Visible=true;
  1087. this.button15.Visible=true;
  1088. this.button16.Visible=false;
  1089. this.button17.Visible=false;
  1090. this.button18.Visible=false;
  1091. this.button8.Visible=false;
  1092. this.button9.Visible=false;
  1093. this.button10.Visible=false;
  1094. this.button11.Visible=false;
  1095. this.button12.Visible=false;
  1096. this.button13.Visible=false;
  1097. this.button14.Left=40;
  1098. this.button14.Top=45;
  1099. this.button15.Left=40;
  1100. this.button15.Top=120;
  1101. this.panel2.Top=24+this.button1.Height+this.button2.Height+this.button3.Height;
  1102. this.button4.Top=this.button3.Top+this.button3.Height;
  1103. this.button2.Top=this.button1.Top+this.button1.Height;
  1104. this.button3.Top=this.button1.Top+this.button1.Height+this.button2.Height;
  1105. this.button4.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height;
  1106. }
  1107. }
  1108. public void button5_Click(object sender, System.EventArgs e)
  1109. {
  1110. if(this.button5.Top<200)
  1111. {
  1112. this.button8.Visible=false;
  1113. this.button9.Visible=false;
  1114. this.button10.Visible=false;
  1115. this.button11.Visible=false;
  1116. this.button12.Visible=false;
  1117. this.button13.Visible=false;
  1118. this.button14.Visible=true;
  1119. this.button15.Visible=true;
  1120. this.button16.Visible=false;
  1121. this.button17.Visible=false;
  1122. this.button18.Visible=false;
  1123. this.button16.Top=210;
  1124. this.button16.Left=40;
  1125. this.button14.Left=40;
  1126. this.button14.Top=45;
  1127. this.button15.Left=40;
  1128. this.button15.Top=120;
  1129. this.button6.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.panel2.Height;
  1130. this.button7.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.button6.Height+this.panel2.Height;
  1131. this.button5.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.panel2.Height;
  1132. this.panel2.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height;
  1133. }
  1134. else
  1135. {
  1136. this.button8.Visible=false;
  1137. this.button9.Visible=false;
  1138. this.button10.Visible=false;
  1139. this.button11.Visible=false;
  1140. this.button12.Visible=false;
  1141. this.button13.Visible=false;
  1142. this.button14.Visible=false;
  1143. this.button15.Visible=false;
  1144. this.button16.Visible=true;
  1145. this.button17.Visible=false;
  1146. this.button18.Visible=false;
  1147. this.button16.Top=80;
  1148. this.button16.Left=40;
  1149. this.button2.Top=this.button1.Top+this.button1.Height;
  1150. this.button3.Top=this.button1.Top+this.button1.Height+this.button2.Height;
  1151. this.button4.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height;
  1152. this.panel2.Top=24+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height;
  1153. this.button5.Top=this.button4.Top+this.button4.Height;
  1154. }
  1155. }
  1156. public void button6_Click(object sender, System.EventArgs e)
  1157. {
  1158. if(this.button6.Top<200)
  1159. {
  1160. this.button8.Visible=false;
  1161. this.button9.Visible=false;
  1162. this.button10.Visible=false;
  1163. this.button11.Visible=false;
  1164. this.button12.Visible=false;
  1165. this.button13.Visible=false;
  1166. this.button14.Visible=false;
  1167. this.button15.Visible=false;
  1168. this.button16.Visible=true;
  1169. this.button16.Top=80;
  1170. this.button16.Left=40;
  1171. this.button17.Visible=false;
  1172. this.button18.Visible=false;
  1173. this.button6.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.panel2.Height;
  1174. this.panel2.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height;
  1175. this.button7.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.button6.Height+this.panel2.Height;
  1176. }
  1177. else
  1178. {
  1179. this.button8.Visible=false;
  1180. this.button9.Visible=false;
  1181. this.button10.Visible=false;
  1182. this.button11.Visible=false;
  1183. this.button12.Visible=false;
  1184. this.button13.Visible=false;
  1185. this.button14.Visible=false;
  1186. this.button15.Visible=false;
  1187. this.button16.Visible=false;
  1188. this.button17.Visible=true;
  1189. this.button18.Visible=false;
  1190. this.button17.Top=80;
  1191. this.button17.Left=40;
  1192. this.button2.Top=this.button1.Top+this.button1.Height;
  1193. this.button3.Top=this.button1.Top+this.button1.Height+this.button2.Height;
  1194. this.button4.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height;
  1195. this.button5.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height;
  1196. this.panel2.Top=24+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height;
  1197. this.button6.Top=this.button5.Top+this.button5.Height;
  1198. }
  1199. }
  1200. public void button7_Click(object sender, System.EventArgs e)
  1201. {
  1202. if(this.button7.Top<325)
  1203. {
  1204. this.button8.Visible=false;
  1205. this.button9.Visible=false;
  1206. this.button10.Visible=false;
  1207. this.button11.Visible=false;
  1208. this.button12.Visible=false;
  1209. this.button13.Visible=false;
  1210. this.button14.Visible=false;
  1211. this.button15.Visible=false;
  1212. this.button16.Visible=false;
  1213. this.button17.Visible=true;
  1214. this.button18.Visible=false;
  1215. this.button17.Top=80;
  1216. this.button17.Left=40;
  1217. this.button7.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.button6.Height+this.panel2.Height;
  1218. this.panel2.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.button6.Height;
  1219. }
  1220. else
  1221. {
  1222. this.button8.Visible=false;
  1223. this.button9.Visible=false;
  1224. this.button10.Visible=false;
  1225. this.button11.Visible=false;
  1226. this.button12.Visible=false;
  1227. this.button13.Visible=false;
  1228. this.button14.Visible=false;
  1229. this.button15.Visible=false;
  1230. this.button16.Visible=false;
  1231. this.button17.Visible=false;
  1232. this.button18.Visible=true;
  1233. this.button18.Left=40;
  1234. this.button18.Top=85;
  1235. this.button2.Top=this.button1.Top+this.button1.Height;
  1236. this.button3.Top=this.button2.Top+this.button2.Height;
  1237. this.button4.Top=this.button3.Top+this.button3.Height;
  1238. this.button5.Top=this.button4.Top+this.button4.Height;
  1239. this.button6.Top=this.button5.Top+this.button5.Height;
  1240. this.panel2.Top=24+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.button6.Height;
  1241. this.button7.Top=this.button6.Top+this.button6.Height;
  1242. }
  1243. }
  1244. public void button1_Click(object sender, System.EventArgs e)
  1245. {
  1246. this.button8.Visible=true;
  1247. this.button9.Visible=true;
  1248. this.button10.Visible=true;
  1249. this.button11.Visible=true;
  1250. this.button12.Visible=false;
  1251. this.button13.Visible=false;
  1252. this.button14.Visible=false;
  1253. this.button15.Visible=false;
  1254. this.button16.Visible=false;
  1255. this.button17.Visible=false;
  1256. this.button18.Visible=false;
  1257. this.button8.Enabled=true;
  1258. this.button9.Enabled=true;
  1259. this.button10.Enabled=true;
  1260. this.button11.Enabled=true;
  1261. this.panel2.Top=24;
  1262. this.button2.Top=this.button1.Top+this.button1.Height+this.panel2.Height;
  1263. this.button3.Top=this.button2.Top+this.button2.Height;
  1264. this.button4.Top=this.button3.Top+this.button3.Height;
  1265. this.button5.Top=this.button4.Top+this.button4.Height;
  1266. this.button6.Top=this.button5.Top+this.button5.Height;
  1267. this.button7.Top=this.button6.Top+this.button6.Height;
  1268. }
  1269. private void button15_Click(object sender, System.EventArgs e)
  1270. {
  1271. }
  1272. private void menuItem3_Click(object sender, System.EventArgs e)
  1273. {
  1274. }
  1275. private void menuItem2_Click(object sender, System.EventArgs e)
  1276. {
  1277. login l=new login();
  1278. //l.MdiParent=this;
  1279. l.Show();
  1280. this.mylogin.button3.Enabled=true;
  1281. }
  1282. private void main_Closed(object sender, System.EventArgs e)
  1283. {
  1284. Application.Exit();
  1285. }
  1286. private void menuItem4_Click(object sender, System.EventArgs e)
  1287. {
  1288. userg1 u=new userg1();
  1289. u.Show();
  1290. //this.Hide();
  1291. }
  1292. private void menuItem5_Click(object sender, System.EventArgs e)
  1293. {
  1294. password p=new password();
  1295. p.Show();
  1296. //this.Hide();
  1297. }
  1298. private void menuItem6_Click(object sender, System.EventArgs e)
  1299. {
  1300. Application.Exit();
  1301. }
  1302. private void menuItem7_Click(object sender, System.EventArgs e)
  1303. {
  1304. lpgl mylpgl=new lpgl();
  1305. mylpgl.Show();
  1306. }
  1307. private void menuItem19_Click(object sender, System.EventArgs e)
  1308. {
  1309. modilp mymodilp=new modilp();
  1310. mymodilp.Show();
  1311. }
  1312. private void menuItem9_Click(object sender, System.EventArgs e)
  1313. {
  1314. zhgl myzhgl=new zhgl();
  1315. myzhgl.Show();
  1316. }
  1317. private void menuItem11_Click(object sender, System.EventArgs e)
  1318. {
  1319. tcgl mytcgl=new tcgl();
  1320. mytcgl.Show();
  1321. }
  1322. private void menuItem12_Click(object sender, System.EventArgs e)
  1323. {
  1324. tctj mytctj=new tctj();
  1325. mytctj.Show();
  1326. }
  1327. private void menuItem14_Click(object sender, System.EventArgs e)
  1328. {
  1329. wgsf mywgsf=new wgsf();
  1330. mywgsf.Show();
  1331. }
  1332. private void menuItem20_Click(object sender, System.EventArgs e)
  1333. {
  1334. modisf mymodisf=new modisf();
  1335. mymodisf.Show();
  1336. }
  1337. private void menuItem16_Click(object sender, System.EventArgs e)
  1338. {
  1339. bxgl mybxgl=new bxgl();
  1340. mybxgl.Show();
  1341. }
  1342. private void menuItem21_Click(object sender, System.EventArgs e)
  1343. {
  1344. modibx mymodibx=new modibx();
  1345. mymodibx.Show();
  1346. }
  1347. private void menuItem18_Click(object sender, System.EventArgs e)
  1348. {
  1349. tsgl mytsgl=new tsgl();
  1350. mytsgl.Show();
  1351. }
  1352. private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
  1353. {
  1354. if(e.Button==this.toolBarButton1)
  1355. {
  1356. Process myProcess = new Process();
  1357. myProcess.StartInfo.FileName = "Notepad";
  1358. myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
  1359. //myProcess.Start();
  1360. //调用计算器
  1361. Process.Start("calc.exe");
  1362. }
  1363. if(e.Button==this.toolBarButton2)
  1364. {
  1365. Process myProcess = new Process();
  1366. myProcess.StartInfo.FileName = "Notepad";
  1367. myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
  1368. myProcess.Start();
  1369. }
  1370. if(e.Button==this.toolBarButton3)
  1371. {
  1372. Process myProcess = new Process();
  1373. myProcess.StartInfo.FileName = "Notepad";
  1374. myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
  1375. //myProcess.Start();
  1376. //调用计算器
  1377. Process.Start("cleanmgr.exe");
  1378. }
  1379. if(e.Button==this.toolBarButton4)
  1380. {
  1381. Net mynet=new Net();
  1382. mynet.Show();
  1383. }
  1384. if(e.Button==this.toolBarButton5)
  1385. {
  1386. Process myProcess = new Process();
  1387. myProcess.StartInfo.FileName = "Notepad";
  1388. myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
  1389. //myProcess.Start();
  1390. //调用计算器
  1391. Process.Start("Mshearts.exe");
  1392. }
  1393. if(e.Button==this.toolBarButton6)
  1394. {
  1395. Process myProcess = new Process();
  1396. myProcess.StartInfo.FileName = "Notepad";
  1397. myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
  1398. //myProcess.Start();
  1399. //调用计算器
  1400. Process.Start(" Winmine.exe ");
  1401. }
  1402. if(e.Button==this.toolBarButton7)
  1403. {
  1404. }
  1405. if(e.Button==this.toolBarButton8)
  1406. {
  1407. }
  1408. }
  1409. private void menuItem28_Click(object sender, System.EventArgs e)
  1410. {
  1411. modizh myzh=new modizh();
  1412. myzh.Show();
  1413. }
  1414. private void comboBox2_TextChanged(object sender, System.EventArgs e)
  1415. {
  1416. string path=Directory.GetCurrentDirectory();//当前程序的路径
  1417. string newpath=Directory.GetParent(Directory.GetParent(path).ToString()).ToString()+"//music//"+this.comboBox2.Text+""+".mp3";
  1418. //this.axRealAudio1.Source=newpath;
  1419. //this.axRealAudio1.DoPlay();
  1420. //this.axRealAudio1.Source="+Application.StartupPath+"\music\"+this.comboBox2.Text+";
  1421. this.axWindowsMediaPlayer1.URL=newpath;
  1422. }
  1423. private void button8_Click(object sender, System.EventArgs e)
  1424. {
  1425. login mylogin=new login();
  1426. mylogin.Show();
  1427. }
  1428. public void button9_Click(object sender, System.EventArgs e)
  1429. {
  1430. userg1 myuser=new userg1();
  1431. myuser.Show();
  1432. }
  1433. private void button10_Click(object sender, System.EventArgs e)
  1434. {
  1435. password mypassword=new password();
  1436. mypassword.Show();
  1437. }
  1438. private void button11_Click(object sender, System.EventArgs e)
  1439. {
  1440. Application.Exit();
  1441. }
  1442. private void button12_Click_1(object sender, System.EventArgs e)
  1443. {
  1444. lpgl mylpgl=new lpgl();
  1445. mylpgl.Show();
  1446. }
  1447. private void button13_Click(object sender, System.EventArgs e)
  1448. {
  1449. zhgl myzhgl=new zhgl();
  1450. myzhgl.Show();
  1451. }
  1452. private void button14_Click(object sender, System.EventArgs e)
  1453. {
  1454. tcgl mytcgl=new tcgl();
  1455. mytcgl.Show();
  1456. }
  1457. private void button15_Click_1(object sender, System.EventArgs e)
  1458. {
  1459. tctj mytctj=new tctj();
  1460. mytctj.Show();
  1461. }
  1462. private void button16_Click(object sender, System.EventArgs e)
  1463. {
  1464. wgsf mywgsf=new wgsf();
  1465. mywgsf.Show();
  1466. }
  1467. private void button17_Click(object sender, System.EventArgs e)
  1468. {
  1469. bxgl mybxgl=new bxgl();
  1470. mybxgl.Show();
  1471. }
  1472. private void button18_Click(object sender, System.EventArgs e)
  1473. {
  1474. tsgl mytsgl=new tsgl();
  1475. mytsgl.Show();
  1476. }
  1477. private void button18_Click_1(object sender, System.EventArgs e)
  1478. {
  1479. tsgl mytsgl=new tsgl();
  1480. mytsgl.Show();
  1481. }
  1482. private void timer1_Tick(object sender, System.EventArgs e)
  1483. {
  1484. if(this.label3.Left>120-this.label3.Width)
  1485. {
  1486. this.label3.Left--;
  1487. }
  1488. else 
  1489. {
  1490. this.label3.Left=this.panel3.Width;
  1491. this.label3.Left--;
  1492. }
  1493. }
  1494. private void button19_Click(object sender, System.EventArgs e)
  1495. {
  1496. Process myProcess = new Process();
  1497. myProcess.StartInfo.FileName = "Notepad";
  1498. myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
  1499. myProcess.Start();
  1500. }
  1501. private void button20_Click(object sender, System.EventArgs e)
  1502. {
  1503. Process myProcess = new Process();
  1504. myProcess.StartInfo.FileName = "Notepad";
  1505. myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
  1506. //myProcess.Start();
  1507. //调用计算器
  1508. Process.Start("calc.exe");
  1509. }
  1510. private void button21_Click(object sender, System.EventArgs e)
  1511. {
  1512. Process myProcess = new Process();
  1513. myProcess.StartInfo.FileName = "Notepad";
  1514. myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
  1515. //myProcess.Start();
  1516. //调用计算器
  1517. Process.Start("Mshearts.exe");
  1518. }
  1519. private void button22_Click(object sender, System.EventArgs e)
  1520. {
  1521. Process myProcess = new Process();
  1522. myProcess.StartInfo.FileName = "Winmine";
  1523. myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
  1524. Process.Start(" Winmine.exe");
  1525. }
  1526. private void button23_Click(object sender, System.EventArgs e)
  1527. {
  1528. Net mynet=new Net();
  1529. mynet.Show();
  1530. }
  1531. private void statusBar1_PanelClick(object sender, System.Windows.Forms.StatusBarPanelClickEventArgs e)
  1532. {
  1533. }
  1534. private void menuItem1_Click(object sender, System.EventArgs e)
  1535. {
  1536. }
  1537. private void comboBox1_TextChanged(object sender, System.EventArgs e)
  1538. {
  1539. if(this.comboBox1.Text=="皮肤方案一")
  1540. {
  1541. string path=Directory.GetCurrentDirectory();//当前程序的路径
  1542. string newpath=Directory.GetParent(Directory.GetParent(path).ToString()).ToString()+"//image//"+"hgkt04_002.jpg";
  1543. this.panel2.BackgroundImage=System.Drawing.Image.FromFile(newpath);
  1544. this.panel4.BackgroundImage=System.Drawing.Image.FromFile(Directory.GetParent(Directory.GetParent(path).ToString()).ToString()+"//image//"+"200562821232822809.gif");
  1545. this.pictureBox1.Image=System.Drawing.Image.FromFile(Directory.GetParent(Directory.GetParent(path).ToString()).ToString()+"//image//"+"14527.gif");
  1546. }
  1547. if(this.comboBox1.Text=="皮肤方案二")
  1548. {
  1549. string path1=Directory.GetCurrentDirectory();//当前程序的路径
  1550. string newpath1=Directory.GetParent(Directory.GetParent(path1).ToString()).ToString()+"//image//"+"2006426191326862.gif";
  1551. this.pictureBox1.Image=System.Drawing.Image.FromFile(newpath1);
  1552. this.panel2.BackgroundImage=System.Drawing.Image.FromFile(Directory.GetParent(Directory.GetParent(path1).ToString()).ToString()+"//image//"+"head.jpg");
  1553. this.panel4.BackgroundImage=System.Drawing.Image.FromFile(Directory.GetParent(Directory.GetParent(path1).ToString()).ToString()+"//image//"+"hgkt04_004.jpg");
  1554. }
  1555. /*if(this.comboBox1.Text== "皮肤方案三")
  1556. {
  1557. string path2=Directory.GetCurrentDirectory();//当前程序的路径
  1558. string newpath2=Directory.GetParent(Directory.GetParent(path2).ToString()).ToString()+"//image//"+"u=996687015,527368705&gp=42.jpg";
  1559. this.panel2.BackgroundImage=System.Drawing.Image.FromFile(newpath2);
  1560. }*/
  1561. if(this.comboBox1.Text== "原始皮肤")
  1562. {
  1563. string path3=Directory.GetCurrentDirectory();//当前程序的路径
  1564. string newpath3=Directory.GetParent(Directory.GetParent(path3).ToString()).ToString()+"//image//"+"060923171360651.jpg";
  1565. this.panel2.BackgroundImage=System.Drawing.Image.FromFile(newpath3);
  1566. this.pictureBox1.Image=System.Drawing.Image.FromFile(Directory.GetParent(Directory.GetParent(path3).ToString()).ToString()+"//image//"+"biaoti.bmp");
  1567. this.panel4.BackgroundImage=System.Drawing.Image.FromFile(Directory.GetParent(Directory.GetParent(path3).ToString()).ToString()+"//image//"+"20075416162662208.gif");
  1568. }
  1569. }
  1570. private void button12_Click_2(object sender, System.EventArgs e)
  1571. {
  1572. lpgl mylpgl=new lpgl();
  1573. mylpgl.Show();
  1574. }
  1575. private void button13_Click_1(object sender, System.EventArgs e)
  1576. {
  1577. zhgl myzhgl=new zhgl();
  1578. myzhgl.Show();
  1579. }
  1580. private void button14_Click_1(object sender, System.EventArgs e)
  1581. {
  1582. tcgl mytcgl=new tcgl();
  1583. mytcgl.Show();
  1584. }
  1585. private void button15_Click_2(object sender, System.EventArgs e)
  1586. {
  1587. tctj mytctj=new tctj();
  1588. mytctj.Show();
  1589. }
  1590. private void button16_Click_1(object sender, System.EventArgs e)
  1591. {
  1592. wgsf mywgsf=new wgsf();
  1593. mywgsf.Show();
  1594. }
  1595. private void button17_Click_1(object sender, System.EventArgs e)
  1596. {
  1597. bxgl mybxgl=new bxgl();
  1598. mybxgl.Show();
  1599. }
  1600. private void button18_Click_2(object sender, System.EventArgs e)
  1601. {
  1602. tsgl mytsgl=new tsgl();
  1603. mytsgl.Show();
  1604. }
  1605. private void button24_Click(object sender, System.EventArgs e)
  1606. {
  1607. /*system.diagnostics.process proc = new system.diagnostics.process(); proc.startinfo.filename = @"winword.exe";
  1608. proc.startinfo.arguments = @" C:Documents and SettingsAdministrator桌面学习部期末工作总结.doc"; 
  1609. try { proc.start(); proc.waitforexit(); } 
  1610.  catch(system.exception exp) { string err = exp.message; } proc = system.diagnostics.process.start(@"C:Documents and SettingsAdministrator桌面学习部期末工作总结.doc");*/
  1611. }
  1612. }
  1613. }