main.cs
资源名称:xqwy.rar [点击查看]
上传用户:fuyouda
上传日期:2021-03-17
资源大小:8619k
文件大小:63k
源码类别:
Windows编程
开发平台:
C/C++
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- using System.Data;
- using System.IO;
- using System.Diagnostics;
- namespace WindowsApplication1
- {
- /// <summary>
- /// Form1 的摘要说明。
- /// </summary>
- public class main : System.Windows.Forms.Form
- {
- private System.Windows.Forms.MainMenu mainMenu1;
- private System.Windows.Forms.MenuItem menuItem1;
- private System.Windows.Forms.MenuItem menuItem2;
- private System.Windows.Forms.MenuItem menuItem3;
- private System.Windows.Forms.MenuItem menuItem4;
- private System.Windows.Forms.MenuItem menuItem5;
- private System.Windows.Forms.MenuItem menuItem6;
- private System.Windows.Forms.MenuItem menuItem7;
- private System.Windows.Forms.MenuItem menuItem8;
- private System.Windows.Forms.MenuItem menuItem9;
- private System.Windows.Forms.MenuItem menuItem10;
- private System.Windows.Forms.MenuItem menuItem11;
- private System.Windows.Forms.MenuItem menuItem12;
- private System.Windows.Forms.MenuItem menuItem13;
- private System.Windows.Forms.MenuItem menuItem14;
- private System.Windows.Forms.MenuItem menuItem15;
- private System.Windows.Forms.MenuItem menuItem16;
- private System.Windows.Forms.MenuItem menuItem17;
- private System.Windows.Forms.MenuItem menuItem18;
- private System.Windows.Forms.StatusBar statusBar1;
- private System.Windows.Forms.StatusBarPanel statusBarPanel1;
- private System.Windows.Forms.StatusBarPanel statusBarPanel2;
- private System.Windows.Forms.StatusBarPanel statusBarPanel3;
- private System.Windows.Forms.ToolBar toolBar1;
- private System.Windows.Forms.ToolBarButton toolBarButton1;
- private System.Windows.Forms.ToolBarButton toolBarButton2;
- private System.Windows.Forms.ToolBarButton toolBarButton3;
- private System.Windows.Forms.ToolBarButton toolBarButton4;
- private System.Windows.Forms.ToolBarButton toolBarButton5;
- private System.Windows.Forms.ToolBarButton toolBarButton6;
- private System.Windows.Forms.Panel panel1;
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.Button button2;
- private System.Windows.Forms.Button button3;
- private System.Windows.Forms.Button button4;
- private System.Windows.Forms.Button button5;
- private System.Windows.Forms.Button button6;
- private System.Windows.Forms.Button button7;
- private System.Windows.Forms.MenuItem menuItem19;
- private System.Windows.Forms.MenuItem menuItem20;
- private System.Windows.Forms.MenuItem menuItem21;
- private login mylogin;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.ComboBox comboBox1;
- private System.Windows.Forms.ComboBox comboBox2;
- private System.Windows.Forms.MenuItem menuItem28;
- //private AxRealAudioObjects.AxRealAudio axRealAudio1;
- private System.Windows.Forms.Panel panel2;
- private System.Windows.Forms.Button button8;
- private System.Windows.Forms.Button button9;
- private System.Windows.Forms.Button button10;
- private System.Windows.Forms.Button button11;
- private System.ComponentModel.IContainer components;
- private System.Windows.Forms.PictureBox pictureBox1;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.DateTimePicker dateTimePicker1;
- private System.Windows.Forms.Panel panel3;
- private System.Windows.Forms.Timer timer1;
- private System.Windows.Forms.Panel panel4;
- private System.Windows.Forms.Button button19;
- private System.Windows.Forms.Button button20;
- private System.Windows.Forms.Button button21;
- private System.Windows.Forms.Button button22;
- private System.Windows.Forms.Button button23;
- private System.Windows.Forms.Button button24;
- private System.Windows.Forms.ToolBarButton toolBarButton7;
- private System.Windows.Forms.ToolBarButton toolBarButton8;
- private System.Windows.Forms.ImageList imageList1;
- private System.Windows.Forms.Button button12;
- private System.Windows.Forms.Button button13;
- private System.Windows.Forms.Button button14;
- private System.Windows.Forms.Button button15;
- private System.Windows.Forms.Button button16;
- private System.Windows.Forms.Button button18;
- private AxWMPLib.AxWindowsMediaPlayer axWindowsMediaPlayer1;
- private System.Windows.Forms.Button button17;
- public main(login my_login)
- {
- //
- // Windows 窗体设计器支持所必需的
- //
- this.mylogin=my_login;
- InitializeComponent();
- //
- // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
- //
- }
- /// <summary>
- /// 清理所有正在使用的资源。
- /// </summary>
- protected override void Dispose( bool disposing )
- {
- if( disposing )
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose( disposing );
- }
- #region Windows 窗体设计器生成的代码
- /// <summary>
- /// 设计器支持所需的方法 - 不要使用代码编辑器修改
- /// 此方法的内容。
- /// </summary>
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(main));
- this.mainMenu1 = new System.Windows.Forms.MainMenu();
- this.menuItem1 = new System.Windows.Forms.MenuItem();
- this.menuItem2 = new System.Windows.Forms.MenuItem();
- this.menuItem4 = new System.Windows.Forms.MenuItem();
- this.menuItem5 = new System.Windows.Forms.MenuItem();
- this.menuItem6 = new System.Windows.Forms.MenuItem();
- this.menuItem3 = new System.Windows.Forms.MenuItem();
- this.menuItem7 = new System.Windows.Forms.MenuItem();
- this.menuItem19 = new System.Windows.Forms.MenuItem();
- this.menuItem8 = new System.Windows.Forms.MenuItem();
- this.menuItem9 = new System.Windows.Forms.MenuItem();
- this.menuItem28 = new System.Windows.Forms.MenuItem();
- this.menuItem10 = new System.Windows.Forms.MenuItem();
- this.menuItem11 = new System.Windows.Forms.MenuItem();
- this.menuItem12 = new System.Windows.Forms.MenuItem();
- this.menuItem13 = new System.Windows.Forms.MenuItem();
- this.menuItem14 = new System.Windows.Forms.MenuItem();
- this.menuItem20 = new System.Windows.Forms.MenuItem();
- this.menuItem15 = new System.Windows.Forms.MenuItem();
- this.menuItem16 = new System.Windows.Forms.MenuItem();
- this.menuItem21 = new System.Windows.Forms.MenuItem();
- this.menuItem17 = new System.Windows.Forms.MenuItem();
- this.menuItem18 = new System.Windows.Forms.MenuItem();
- this.statusBar1 = new System.Windows.Forms.StatusBar();
- this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
- this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
- this.statusBarPanel3 = new System.Windows.Forms.StatusBarPanel();
- this.toolBar1 = new System.Windows.Forms.ToolBar();
- this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
- this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
- this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
- this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
- this.toolBarButton5 = new System.Windows.Forms.ToolBarButton();
- this.toolBarButton6 = new System.Windows.Forms.ToolBarButton();
- this.toolBarButton7 = new System.Windows.Forms.ToolBarButton();
- this.toolBarButton8 = new System.Windows.Forms.ToolBarButton();
- this.imageList1 = new System.Windows.Forms.ImageList(this.components);
- this.panel1 = new System.Windows.Forms.Panel();
- this.button7 = new System.Windows.Forms.Button();
- this.button6 = new System.Windows.Forms.Button();
- this.button3 = new System.Windows.Forms.Button();
- this.button2 = new System.Windows.Forms.Button();
- this.button1 = new System.Windows.Forms.Button();
- this.button4 = new System.Windows.Forms.Button();
- this.panel2 = new System.Windows.Forms.Panel();
- this.button18 = new System.Windows.Forms.Button();
- this.button17 = new System.Windows.Forms.Button();
- this.button16 = new System.Windows.Forms.Button();
- this.button15 = new System.Windows.Forms.Button();
- this.button14 = new System.Windows.Forms.Button();
- this.button13 = new System.Windows.Forms.Button();
- this.button12 = new System.Windows.Forms.Button();
- this.button11 = new System.Windows.Forms.Button();
- this.button10 = new System.Windows.Forms.Button();
- this.button9 = new System.Windows.Forms.Button();
- this.button8 = new System.Windows.Forms.Button();
- this.button5 = new System.Windows.Forms.Button();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.comboBox1 = new System.Windows.Forms.ComboBox();
- this.comboBox2 = new System.Windows.Forms.ComboBox();
- this.pictureBox1 = new System.Windows.Forms.PictureBox();
- this.label3 = new System.Windows.Forms.Label();
- this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
- this.panel3 = new System.Windows.Forms.Panel();
- this.timer1 = new System.Windows.Forms.Timer(this.components);
- this.panel4 = new System.Windows.Forms.Panel();
- this.button24 = new System.Windows.Forms.Button();
- this.button23 = new System.Windows.Forms.Button();
- this.button22 = new System.Windows.Forms.Button();
- this.button21 = new System.Windows.Forms.Button();
- this.button20 = new System.Windows.Forms.Button();
- this.button19 = new System.Windows.Forms.Button();
- this.axWindowsMediaPlayer1 = new AxWMPLib.AxWindowsMediaPlayer();
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).BeginInit();
- this.panel1.SuspendLayout();
- this.panel2.SuspendLayout();
- this.panel3.SuspendLayout();
- this.panel4.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.axWindowsMediaPlayer1)).BeginInit();
- this.SuspendLayout();
- //
- // mainMenu1
- //
- this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem1,
- this.menuItem3,
- this.menuItem8,
- this.menuItem10,
- this.menuItem13,
- this.menuItem15,
- this.menuItem17});
- //
- // menuItem1
- //
- this.menuItem1.Index = 0;
- this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem2,
- this.menuItem4,
- this.menuItem5,
- this.menuItem6});
- this.menuItem1.Text = "系统";
- this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
- //
- // menuItem2
- //
- this.menuItem2.Index = 0;
- this.menuItem2.Text = "用户注册";
- this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
- //
- // menuItem4
- //
- this.menuItem4.Index = 1;
- this.menuItem4.Text = "用户管理";
- this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
- //
- // menuItem5
- //
- this.menuItem5.Index = 2;
- this.menuItem5.Text = "修改密码";
- this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click);
- //
- // menuItem6
- //
- this.menuItem6.Index = 3;
- this.menuItem6.Text = "关闭系统";
- this.menuItem6.Click += new System.EventHandler(this.menuItem6_Click);
- //
- // menuItem3
- //
- this.menuItem3.Index = 1;
- this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem7,
- this.menuItem19});
- this.menuItem3.Text = "楼盘管理";
- this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click);
- //
- // menuItem7
- //
- this.menuItem7.Index = 0;
- this.menuItem7.Text = "楼盘管理";
- this.menuItem7.Click += new System.EventHandler(this.menuItem7_Click);
- //
- // menuItem19
- //
- this.menuItem19.Index = 1;
- this.menuItem19.Text = "添加修改楼盘信息";
- this.menuItem19.Click += new System.EventHandler(this.menuItem19_Click);
- //
- // menuItem8
- //
- this.menuItem8.Index = 2;
- this.menuItem8.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem9,
- this.menuItem28});
- this.menuItem8.Text = "住户管理";
- //
- // menuItem9
- //
- this.menuItem9.Index = 0;
- this.menuItem9.Text = "住户管理";
- this.menuItem9.Click += new System.EventHandler(this.menuItem9_Click);
- //
- // menuItem28
- //
- this.menuItem28.Index = 1;
- this.menuItem28.Text = "添加修改住户信息";
- this.menuItem28.Click += new System.EventHandler(this.menuItem28_Click);
- //
- // menuItem10
- //
- this.menuItem10.Index = 3;
- this.menuItem10.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem11,
- this.menuItem12});
- this.menuItem10.Text = "停车管理";
- //
- // menuItem11
- //
- this.menuItem11.Index = 0;
- this.menuItem11.Text = "停车管理";
- this.menuItem11.Click += new System.EventHandler(this.menuItem11_Click);
- //
- // menuItem12
- //
- this.menuItem12.Index = 1;
- this.menuItem12.Text = "统计查询";
- this.menuItem12.Click += new System.EventHandler(this.menuItem12_Click);
- //
- // menuItem13
- //
- this.menuItem13.Index = 4;
- this.menuItem13.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem14,
- this.menuItem20});
- this.menuItem13.Text = "收费管理";
- //
- // menuItem14
- //
- this.menuItem14.Index = 0;
- this.menuItem14.Text = "收费管理";
- this.menuItem14.Click += new System.EventHandler(this.menuItem14_Click);
- //
- // menuItem20
- //
- this.menuItem20.Index = 1;
- this.menuItem20.Text = "添加修改收费信息";
- this.menuItem20.Click += new System.EventHandler(this.menuItem20_Click);
- //
- // menuItem15
- //
- this.menuItem15.Index = 5;
- this.menuItem15.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem16,
- this.menuItem21});
- this.menuItem15.Text = "报修管理";
- //
- // menuItem16
- //
- this.menuItem16.Index = 0;
- this.menuItem16.Text = "报修管理";
- this.menuItem16.Click += new System.EventHandler(this.menuItem16_Click);
- //
- // menuItem21
- //
- this.menuItem21.Index = 1;
- this.menuItem21.Text = "添加修改报修信息";
- this.menuItem21.Click += new System.EventHandler(this.menuItem21_Click);
- //
- // menuItem17
- //
- this.menuItem17.Index = 6;
- this.menuItem17.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem18});
- this.menuItem17.Text = "投诉管理";
- //
- // menuItem18
- //
- this.menuItem18.Index = 0;
- this.menuItem18.Text = "投诉管理";
- this.menuItem18.Click += new System.EventHandler(this.menuItem18_Click);
- //
- // statusBar1
- //
- this.statusBar1.Location = new System.Drawing.Point(0, 387);
- this.statusBar1.Name = "statusBar1";
- this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
- this.statusBarPanel1,
- this.statusBarPanel2,
- this.statusBarPanel3});
- this.statusBar1.ShowPanels = true;
- this.statusBar1.Size = new System.Drawing.Size(586, 22);
- this.statusBar1.TabIndex = 0;
- this.statusBar1.Text = "报修管理";
- this.statusBar1.PanelClick += new System.Windows.Forms.StatusBarPanelClickEventHandler(this.statusBar1_PanelClick);
- //
- // statusBarPanel1
- //
- this.statusBarPanel1.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
- this.statusBarPanel1.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents;
- this.statusBarPanel1.Text = "欢迎光临";
- this.statusBarPanel1.Width = 64;
- //
- // statusBarPanel2
- //
- this.statusBarPanel2.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
- this.statusBarPanel2.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents;
- this.statusBarPanel2.Text = "当前位置:小区物业系统";
- this.statusBarPanel2.Width = 150;
- //
- // statusBarPanel3
- //
- this.statusBarPanel3.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
- this.statusBarPanel3.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents;
- this.statusBarPanel3.Text = "如需帮助请漫游系统";
- this.statusBarPanel3.Width = 126;
- //
- // toolBar1
- //
- this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
- this.toolBarButton1,
- this.toolBarButton2,
- this.toolBarButton3,
- this.toolBarButton4,
- this.toolBarButton5,
- this.toolBarButton6,
- this.toolBarButton7,
- this.toolBarButton8});
- this.toolBar1.DropDownArrows = true;
- this.toolBar1.ImageList = this.imageList1;
- this.toolBar1.Location = new System.Drawing.Point(0, 0);
- this.toolBar1.Name = "toolBar1";
- this.toolBar1.ShowToolTips = true;
- this.toolBar1.Size = new System.Drawing.Size(586, 28);
- this.toolBar1.TabIndex = 1;
- this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
- //
- // toolBarButton1
- //
- this.toolBarButton1.ImageIndex = 0;
- //
- // toolBarButton2
- //
- this.toolBarButton2.ImageIndex = 1;
- //
- // toolBarButton3
- //
- this.toolBarButton3.ImageIndex = 7;
- //
- // toolBarButton4
- //
- this.toolBarButton4.ImageIndex = 2;
- //
- // toolBarButton5
- //
- this.toolBarButton5.ImageIndex = 3;
- //
- // toolBarButton6
- //
- this.toolBarButton6.ImageIndex = 6;
- //
- // toolBarButton7
- //
- this.toolBarButton7.ImageIndex = 4;
- //
- // toolBarButton8
- //
- this.toolBarButton8.ImageIndex = 5;
- //
- // imageList1
- //
- this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
- this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
- this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
- //
- // panel1
- //
- this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
- this.panel1.Controls.Add(this.button7);
- this.panel1.Controls.Add(this.button6);
- this.panel1.Controls.Add(this.button3);
- this.panel1.Controls.Add(this.button2);
- this.panel1.Controls.Add(this.button1);
- this.panel1.Controls.Add(this.button4);
- this.panel1.Controls.Add(this.panel2);
- this.panel1.Controls.Add(this.button5);
- this.panel1.Location = new System.Drawing.Point(0, 32);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(120, 356);
- this.panel1.TabIndex = 2;
- //
- // button7
- //
- this.button7.Location = new System.Drawing.Point(0, 328);
- this.button7.Name = "button7";
- this.button7.Size = new System.Drawing.Size(120, 27);
- this.button7.TabIndex = 5;
- this.button7.Text = "投诉管理";
- this.button7.Click += new System.EventHandler(this.button7_Click);
- //
- // button6
- //
- this.button6.Location = new System.Drawing.Point(0, 304);
- this.button6.Name = "button6";
- this.button6.Size = new System.Drawing.Size(120, 25);
- this.button6.TabIndex = 4;
- this.button6.Text = "报修管理";
- this.button6.Click += new System.EventHandler(this.button6_Click);
- //
- // button3
- //
- this.button3.Location = new System.Drawing.Point(0, 232);
- this.button3.Name = "button3";
- this.button3.Size = new System.Drawing.Size(120, 25);
- this.button3.TabIndex = 2;
- this.button3.Text = "住户管理";
- this.button3.Click += new System.EventHandler(this.button3_Click);
- //
- // button2
- //
- this.button2.Location = new System.Drawing.Point(0, 208);
- this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(120, 25);
- this.button2.TabIndex = 1;
- this.button2.Text = "楼盘管理";
- this.button2.Click += new System.EventHandler(this.button2_Click);
- //
- // button1
- //
- this.button1.Location = new System.Drawing.Point(0, 0);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(120, 25);
- this.button1.TabIndex = 0;
- this.button1.Text = "系 统";
- this.button1.Click += new System.EventHandler(this.button1_Click);
- //
- // button4
- //
- this.button4.Location = new System.Drawing.Point(0, 256);
- this.button4.Name = "button4";
- this.button4.Size = new System.Drawing.Size(120, 25);
- this.button4.TabIndex = 2;
- this.button4.Text = "停车管理";
- this.button4.Click += new System.EventHandler(this.button4_Click);
- //
- // panel2
- //
- this.panel2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel2.BackgroundImage")));
- this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.panel2.Controls.Add(this.button18);
- this.panel2.Controls.Add(this.button17);
- this.panel2.Controls.Add(this.button16);
- this.panel2.Controls.Add(this.button15);
- this.panel2.Controls.Add(this.button14);
- this.panel2.Controls.Add(this.button13);
- this.panel2.Controls.Add(this.button12);
- this.panel2.Controls.Add(this.button11);
- this.panel2.Controls.Add(this.button10);
- this.panel2.Controls.Add(this.button9);
- this.panel2.Controls.Add(this.button8);
- this.panel2.Location = new System.Drawing.Point(0, 24);
- this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(120, 184);
- this.panel2.TabIndex = 18;
- //
- // button18
- //
- this.button18.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button18.Image = ((System.Drawing.Image)(resources.GetObject("button18.Image")));
- this.button18.Location = new System.Drawing.Point(80, 80);
- this.button18.Name = "button18";
- this.button18.Size = new System.Drawing.Size(40, 40);
- this.button18.TabIndex = 10;
- this.button18.Text = "投诉管理";
- this.button18.Visible = false;
- this.button18.Click += new System.EventHandler(this.button18_Click_2);
- //
- // button17
- //
- this.button17.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button17.Image = ((System.Drawing.Image)(resources.GetObject("button17.Image")));
- this.button17.Location = new System.Drawing.Point(80, 40);
- this.button17.Name = "button17";
- this.button17.Size = new System.Drawing.Size(40, 40);
- this.button17.TabIndex = 9;
- this.button17.Text = "报修管理";
- this.button17.Visible = false;
- this.button17.Click += new System.EventHandler(this.button17_Click_1);
- //
- // button16
- //
- this.button16.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button16.Image = ((System.Drawing.Image)(resources.GetObject("button16.Image")));
- this.button16.Location = new System.Drawing.Point(80, 0);
- this.button16.Name = "button16";
- this.button16.Size = new System.Drawing.Size(40, 40);
- this.button16.TabIndex = 8;
- this.button16.Text = "收费管理";
- this.button16.Visible = false;
- this.button16.Click += new System.EventHandler(this.button16_Click_1);
- //
- // button15
- //
- this.button15.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button15.Image = ((System.Drawing.Image)(resources.GetObject("button15.Image")));
- this.button15.Location = new System.Drawing.Point(0, 120);
- this.button15.Name = "button15";
- this.button15.Size = new System.Drawing.Size(40, 40);
- this.button15.TabIndex = 7;
- this.button15.Text = "统计查询";
- this.button15.Visible = false;
- this.button15.Click += new System.EventHandler(this.button15_Click_2);
- //
- // button14
- //
- this.button14.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button14.Image = ((System.Drawing.Image)(resources.GetObject("button14.Image")));
- this.button14.Location = new System.Drawing.Point(0, 80);
- this.button14.Name = "button14";
- this.button14.Size = new System.Drawing.Size(40, 40);
- this.button14.TabIndex = 6;
- this.button14.Text = "停车管理";
- this.button14.Visible = false;
- this.button14.Click += new System.EventHandler(this.button14_Click_1);
- //
- // button13
- //
- this.button13.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button13.Image = ((System.Drawing.Image)(resources.GetObject("button13.Image")));
- this.button13.Location = new System.Drawing.Point(0, 40);
- this.button13.Name = "button13";
- this.button13.Size = new System.Drawing.Size(40, 40);
- this.button13.TabIndex = 5;
- this.button13.Text = "住户管理";
- this.button13.Visible = false;
- this.button13.Click += new System.EventHandler(this.button13_Click_1);
- //
- // button12
- //
- this.button12.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button12.Image = ((System.Drawing.Image)(resources.GetObject("button12.Image")));
- this.button12.Location = new System.Drawing.Point(0, 0);
- this.button12.Name = "button12";
- this.button12.Size = new System.Drawing.Size(40, 40);
- this.button12.TabIndex = 4;
- this.button12.Text = "楼盘管理";
- this.button12.Visible = false;
- this.button12.Click += new System.EventHandler(this.button12_Click_2);
- //
- // button11
- //
- this.button11.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button11.Image = ((System.Drawing.Image)(resources.GetObject("button11.Image")));
- this.button11.Location = new System.Drawing.Point(40, 144);
- this.button11.Name = "button11";
- this.button11.Size = new System.Drawing.Size(40, 40);
- this.button11.TabIndex = 3;
- this.button11.Text = "关闭系统";
- this.button11.Click += new System.EventHandler(this.button11_Click);
- //
- // button10
- //
- this.button10.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button10.Image = ((System.Drawing.Image)(resources.GetObject("button10.Image")));
- this.button10.Location = new System.Drawing.Point(40, 96);
- this.button10.Name = "button10";
- this.button10.Size = new System.Drawing.Size(40, 40);
- this.button10.TabIndex = 2;
- this.button10.Text = "修改密码";
- this.button10.Click += new System.EventHandler(this.button10_Click);
- //
- // button9
- //
- this.button9.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button9.Image = ((System.Drawing.Image)(resources.GetObject("button9.Image")));
- this.button9.Location = new System.Drawing.Point(40, 48);
- this.button9.Name = "button9";
- this.button9.Size = new System.Drawing.Size(40, 40);
- this.button9.TabIndex = 1;
- this.button9.Text = "用户管理";
- this.button9.Click += new System.EventHandler(this.button9_Click);
- //
- // button8
- //
- this.button8.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button8.Image = ((System.Drawing.Image)(resources.GetObject("button8.Image")));
- this.button8.Location = new System.Drawing.Point(40, 0);
- this.button8.Name = "button8";
- this.button8.Size = new System.Drawing.Size(40, 40);
- this.button8.TabIndex = 0;
- this.button8.Text = "系统登录";
- this.button8.Click += new System.EventHandler(this.button8_Click);
- //
- // button5
- //
- this.button5.Location = new System.Drawing.Point(0, 280);
- this.button5.Name = "button5";
- this.button5.Size = new System.Drawing.Size(120, 25);
- this.button5.TabIndex = 3;
- this.button5.Text = "收费管理";
- this.button5.Click += new System.EventHandler(this.button5_Click);
- //
- // label1
- //
- this.label1.Location = new System.Drawing.Point(136, 44);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(80, 11);
- this.label1.TabIndex = 13;
- this.label1.Text = "请选择皮肤:";
- //
- // label2
- //
- this.label2.Location = new System.Drawing.Point(344, 44);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(104, 14);
- this.label2.TabIndex = 14;
- this.label2.Text = "请选择背景音乐:";
- //
- // comboBox1
- //
- this.comboBox1.Items.AddRange(new object[] {
- "皮肤方案一",
- "皮肤方案二",
- "原始皮肤"});
- this.comboBox1.Location = new System.Drawing.Point(216, 40);
- this.comboBox1.Name = "comboBox1";
- this.comboBox1.Size = new System.Drawing.Size(120, 20);
- this.comboBox1.TabIndex = 15;
- this.comboBox1.TextChanged += new System.EventHandler(this.comboBox1_TextChanged);
- //
- // comboBox2
- //
- this.comboBox2.Items.AddRange(new object[] {
- "周杰伦-外婆",
- "小 雪——其实我介意",
- "恋上一个人",
- "吴佩慈-闪着泪光的决定",
- "周杰伦 - 七里香 完美cd版",
- "周杰伦-外婆",
- "周杰伦-搁浅",
- "周杰伦-借口"});
- this.comboBox2.Location = new System.Drawing.Point(440, 40);
- this.comboBox2.Name = "comboBox2";
- this.comboBox2.Size = new System.Drawing.Size(120, 20);
- this.comboBox2.TabIndex = 16;
- this.comboBox2.TextChanged += new System.EventHandler(this.comboBox2_TextChanged);
- //
- // pictureBox1
- //
- this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
- this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
- this.pictureBox1.Location = new System.Drawing.Point(120, 64);
- this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new System.Drawing.Size(446, 104);
- this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox1.TabIndex = 25;
- this.pictureBox1.TabStop = false;
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
- this.label3.Location = new System.Drawing.Point(136, 5);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(42, 17);
- this.label3.TabIndex = 26;
- this.label3.Text = "label3";
- this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // dateTimePicker1
- //
- this.dateTimePicker1.Location = new System.Drawing.Point(360, 392);
- this.dateTimePicker1.Name = "dateTimePicker1";
- this.dateTimePicker1.TabIndex = 27;
- this.dateTimePicker1.Visible = false;
- //
- // panel3
- //
- this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
- this.panel3.Controls.Add(this.label3);
- this.panel3.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
- this.panel3.Location = new System.Drawing.Point(120, 168);
- this.panel3.Name = "panel3";
- this.panel3.Size = new System.Drawing.Size(446, 24);
- this.panel3.TabIndex = 28;
- //
- // timer1
- //
- this.timer1.Enabled = true;
- this.timer1.Interval = 50;
- this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
- //
- // panel4
- //
- this.panel4.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel4.BackgroundImage")));
- this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
- this.panel4.Controls.Add(this.button24);
- this.panel4.Controls.Add(this.button23);
- this.panel4.Controls.Add(this.button22);
- this.panel4.Controls.Add(this.button21);
- this.panel4.Controls.Add(this.button20);
- this.panel4.Controls.Add(this.button19);
- this.panel4.Location = new System.Drawing.Point(120, 192);
- this.panel4.Name = "panel4";
- this.panel4.Size = new System.Drawing.Size(446, 196);
- this.panel4.TabIndex = 29;
- //
- // button24
- //
- this.button24.BackColor = System.Drawing.Color.Transparent;
- this.button24.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button24.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
- this.button24.Image = ((System.Drawing.Image)(resources.GetObject("button24.Image")));
- this.button24.Location = new System.Drawing.Point(336, 104);
- this.button24.Name = "button24";
- this.button24.Size = new System.Drawing.Size(90, 80);
- this.button24.TabIndex = 5;
- this.button24.Click += new System.EventHandler(this.button24_Click);
- //
- // button23
- //
- this.button23.BackColor = System.Drawing.Color.Transparent;
- this.button23.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button23.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
- this.button23.Image = ((System.Drawing.Image)(resources.GetObject("button23.Image")));
- this.button23.Location = new System.Drawing.Point(192, 104);
- this.button23.Name = "button23";
- this.button23.Size = new System.Drawing.Size(90, 80);
- this.button23.TabIndex = 4;
- this.button23.Click += new System.EventHandler(this.button23_Click);
- //
- // button22
- //
- this.button22.BackColor = System.Drawing.Color.Transparent;
- this.button22.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button22.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
- this.button22.Image = ((System.Drawing.Image)(resources.GetObject("button22.Image")));
- this.button22.Location = new System.Drawing.Point(32, 104);
- this.button22.Name = "button22";
- this.button22.Size = new System.Drawing.Size(90, 80);
- this.button22.TabIndex = 3;
- this.button22.Click += new System.EventHandler(this.button22_Click);
- //
- // button21
- //
- this.button21.BackColor = System.Drawing.Color.Transparent;
- this.button21.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button21.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
- this.button21.Image = ((System.Drawing.Image)(resources.GetObject("button21.Image")));
- this.button21.Location = new System.Drawing.Point(336, 8);
- this.button21.Name = "button21";
- this.button21.Size = new System.Drawing.Size(90, 80);
- this.button21.TabIndex = 2;
- this.button21.Click += new System.EventHandler(this.button21_Click);
- //
- // button20
- //
- this.button20.BackColor = System.Drawing.Color.Transparent;
- this.button20.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button20.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
- this.button20.Image = ((System.Drawing.Image)(resources.GetObject("button20.Image")));
- this.button20.Location = new System.Drawing.Point(192, 8);
- this.button20.Name = "button20";
- this.button20.Size = new System.Drawing.Size(90, 80);
- this.button20.TabIndex = 1;
- this.button20.Click += new System.EventHandler(this.button20_Click);
- //
- // button19
- //
- this.button19.BackColor = System.Drawing.Color.Transparent;
- this.button19.Cursor = System.Windows.Forms.Cursors.Hand;
- this.button19.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
- this.button19.ForeColor = System.Drawing.Color.Black;
- this.button19.Image = ((System.Drawing.Image)(resources.GetObject("button19.Image")));
- this.button19.Location = new System.Drawing.Point(32, 8);
- this.button19.Name = "button19";
- this.button19.Size = new System.Drawing.Size(90, 80);
- this.button19.TabIndex = 0;
- this.button19.Click += new System.EventHandler(this.button19_Click);
- //
- // axWindowsMediaPlayer1
- //
- this.axWindowsMediaPlayer1.Enabled = true;
- this.axWindowsMediaPlayer1.Location = new System.Drawing.Point(656, 368);
- this.axWindowsMediaPlayer1.Name = "axWindowsMediaPlayer1";
- this.axWindowsMediaPlayer1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axWindowsMediaPlayer1.OcxState")));
- this.axWindowsMediaPlayer1.TabIndex = 30;
- //
- // main
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
- this.ClientSize = new System.Drawing.Size(586, 409);
- this.Controls.Add(this.axWindowsMediaPlayer1);
- this.Controls.Add(this.panel4);
- this.Controls.Add(this.panel3);
- this.Controls.Add(this.pictureBox1);
- this.Controls.Add(this.comboBox2);
- this.Controls.Add(this.comboBox1);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.panel1);
- this.Controls.Add(this.toolBar1);
- this.Controls.Add(this.statusBar1);
- this.Controls.Add(this.dateTimePicker1);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
- this.MaximizeBox = false;
- this.Menu = this.mainMenu1;
- this.Name = "main";
- this.Text = "小区物业系统";
- this.Load += new System.EventHandler(this.Form1_Load);
- this.Closed += new System.EventHandler(this.main_Closed);
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).EndInit();
- this.panel1.ResumeLayout(false);
- this.panel2.ResumeLayout(false);
- this.panel3.ResumeLayout(false);
- this.panel4.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.axWindowsMediaPlayer1)).EndInit();
- this.ResumeLayout(false);
- }
- #endregion
- /// <summary>
- /// 应用程序的主入口点。
- /// </summary>
- [STAThread]
- static void Main()
- {
- Application.Run(new login());
- }
- public void button2_Click(object sender, System.EventArgs e)
- {
- if(this.button2.Top<208)
- {
- this.button8.Visible=true;
- this.button8.Top=0;
- this.button9.Top=48;
- this.button10.Top=96;
- this.button11.Top=144;
- this.button9.Visible=true;
- this.button10.Visible=true;
- this.button11.Visible=true;
- this.button12.Visible=false;
- this.button13.Visible=false;
- this.button14.Visible=false;
- this.button15.Visible=false;
- this.button16.Visible=false;
- this.button17.Visible=false;
- this.button18.Visible=false;
- this.button12.Visible=false;
- this.button8.Visible=true;
- this.button9.Visible=true;
- this.button10.Visible=true;
- this.button11.Visible=true;
- this.button8.Enabled=true;;
- this.button9.Enabled=true;
- this.button10.Enabled=true;
- this.button11.Enabled=true;;
- this.button9.Text="用户管理";
- this.button2.Top=this.button1.Top+this.button1.Height+this.panel2.Height;
- this.panel2.Top=this.button1.Top+this.button1.Height;
- this.button3.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.panel2.Height;
- this.button4.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.panel2.Height;
- this.button5.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.panel2.Height;
- this.button6.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.panel2.Height;
- 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;
- }
- else
- {
- this.button8.Visible=false;
- this.button9.Visible=false;
- this.button10.Visible=false;
- this.button11.Visible=false;
- this.button12.Visible=true;
- this.button13.Visible=false;
- this.button14.Visible=false;
- this.button15.Visible=false;
- this.button16.Visible=false;
- this.button17.Visible=false;
- this.button18.Visible=false;
- this.button12.Top=75;
- this.button12.Left=this.button9.Left;
- this.button8.Visible=false;
- this.button9.Visible=false;
- this.button10.Visible=false;
- this.button11.Visible=false;
- this.button12.Visible=true;
- this.button8.Enabled=false;
- this.button9.Enabled=true;
- this.button10.Enabled=false;
- this.button11.Enabled=false;
- this.button9.Text="楼盘管理";
- this.button2.Top=this.button1.Top+this.button1.Height;
- this.panel2.Top=24+this.button2.Height;
- }
- }
- private void Form1_Load(object sender, System.EventArgs e)
- {
- this.label3.Text=mylogin.textBox1.Text+"欢迎你的光临,今天是"+this.dateTimePicker1.Text;
- this.panel2.Top=24;
- this.button2.Top=this.button1.Top+this.button1.Height+this.panel2.Height;
- this.button3.Top=this.button2.Top+this.button2.Height;
- this.button4.Top=this.button3.Top+this.button3.Height;
- this.button5.Top=this.button4.Top+this.button4.Height;
- this.button6.Top=this.button5.Top+this.button5.Height;
- this.button7.Top=this.button6.Top+this.button6.Height;//this.button2.Top=this.button1.Top+this.button1.Height+this.pictureBox1.Height;
- }
- private void button12_Click(object sender, System.EventArgs e)
- {
- }
- public void button3_Click(object sender, System.EventArgs e)
- {
- if(this.button3.Top<200)
- {
- this.button8.Visible=false;
- this.button9.Visible=false;
- this.button10.Visible=false;
- this.button11.Visible=false;
- this.button12.Visible=true;
- this.button13.Visible=false;
- this.button14.Visible=false;
- this.button15.Visible=false;
- this.button16.Visible=false;
- this.button17.Visible=false;
- this.button18.Visible=false;
- this.button13.Visible=false;
- this.button12.Visible=true;
- this.button12.Top=75;
- this.button12.Left=40;
- this.panel2.Top=this.button1.Top+this.button1.Height+this.button2.Height;
- this.button3.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.panel2.Height;
- this.button4.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.panel2.Height+this.button3.Height;
- this.button5.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.panel2.Height+this.button3.Height+this.button4.Height;
- this.button6.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.panel2.Height+this.button3.Height+this.button4.Height+this.button5.Height;
- 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;
- }
- else
- {
- this.button8.Visible=false;
- this.button9.Visible=false;
- this.button10.Visible=false;
- this.button11.Visible=false;
- this.button12.Visible=false;
- this.button13.Visible=true;
- this.button14.Visible=false;
- this.button15.Visible=false;
- this.button16.Visible=false;
- this.button17.Visible=false;
- this.button18.Visible=false;
- this.button8.Visible=false;
- this.button9.Visible=false;
- this.button10.Visible=false;
- this.button11.Visible=false;
- this.button12.Visible=false;
- this.button13.Visible=true;
- this.button13.Left=40;
- this.button13.Top=90;
- this.button2.Top=this.button1.Top+this.button1.Height;
- this.button3.Top=this.button1.Top+this.button1.Height+this.button2.Height;
- this.panel2.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height;
- }
- }
- public void button4_Click(object sender, System.EventArgs e)
- {
- if(this.button4.Top<200)
- {
- this.button8.Visible=false;
- this.button9.Visible=false;
- this.button10.Visible=false;
- this.button11.Visible=false;
- this.button12.Visible=false;
- this.button13.Visible=true;
- this.button14.Visible=false;
- this.button15.Visible=false;
- this.button16.Visible=false;
- this.button17.Visible=false;
- this.button18.Visible=false;
- this.button13.Top=90;
- this.button13.Left=40;
- this.button14.Left=40;
- this.button14.Top=170;
- this.button15.Left=40;
- this.button15.Top=190;
- this.button4.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+panel2.Height;
- this.panel2.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height;
- this.button5.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.panel2.Height+this.button3.Height+this.button4.Height;
- this.button6.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.panel2.Height+this.button3.Height+this.button4.Height+this.button5.Height;
- 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;
- }
- else
- {
- this.button8.Visible=false;
- this.button9.Visible=false;
- this.button10.Visible=false;
- this.button11.Visible=false;
- this.button12.Visible=false;
- this.button13.Visible=false;
- this.button14.Visible=true;
- this.button15.Visible=true;
- this.button16.Visible=false;
- this.button17.Visible=false;
- this.button18.Visible=false;
- this.button8.Visible=false;
- this.button9.Visible=false;
- this.button10.Visible=false;
- this.button11.Visible=false;
- this.button12.Visible=false;
- this.button13.Visible=false;
- this.button14.Left=40;
- this.button14.Top=45;
- this.button15.Left=40;
- this.button15.Top=120;
- this.panel2.Top=24+this.button1.Height+this.button2.Height+this.button3.Height;
- this.button4.Top=this.button3.Top+this.button3.Height;
- this.button2.Top=this.button1.Top+this.button1.Height;
- this.button3.Top=this.button1.Top+this.button1.Height+this.button2.Height;
- this.button4.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height;
- }
- }
- public void button5_Click(object sender, System.EventArgs e)
- {
- if(this.button5.Top<200)
- {
- this.button8.Visible=false;
- this.button9.Visible=false;
- this.button10.Visible=false;
- this.button11.Visible=false;
- this.button12.Visible=false;
- this.button13.Visible=false;
- this.button14.Visible=true;
- this.button15.Visible=true;
- this.button16.Visible=false;
- this.button17.Visible=false;
- this.button18.Visible=false;
- this.button16.Top=210;
- this.button16.Left=40;
- this.button14.Left=40;
- this.button14.Top=45;
- this.button15.Left=40;
- this.button15.Top=120;
- this.button6.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.panel2.Height;
- 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;
- this.button5.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.panel2.Height;
- this.panel2.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height;
- }
- else
- {
- this.button8.Visible=false;
- this.button9.Visible=false;
- this.button10.Visible=false;
- this.button11.Visible=false;
- this.button12.Visible=false;
- this.button13.Visible=false;
- this.button14.Visible=false;
- this.button15.Visible=false;
- this.button16.Visible=true;
- this.button17.Visible=false;
- this.button18.Visible=false;
- this.button16.Top=80;
- this.button16.Left=40;
- this.button2.Top=this.button1.Top+this.button1.Height;
- this.button3.Top=this.button1.Top+this.button1.Height+this.button2.Height;
- this.button4.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height;
- this.panel2.Top=24+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height;
- this.button5.Top=this.button4.Top+this.button4.Height;
- }
- }
- public void button6_Click(object sender, System.EventArgs e)
- {
- if(this.button6.Top<200)
- {
- this.button8.Visible=false;
- this.button9.Visible=false;
- this.button10.Visible=false;
- this.button11.Visible=false;
- this.button12.Visible=false;
- this.button13.Visible=false;
- this.button14.Visible=false;
- this.button15.Visible=false;
- this.button16.Visible=true;
- this.button16.Top=80;
- this.button16.Left=40;
- this.button17.Visible=false;
- this.button18.Visible=false;
- this.button6.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.panel2.Height;
- this.panel2.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height;
- 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;
- }
- else
- {
- this.button8.Visible=false;
- this.button9.Visible=false;
- this.button10.Visible=false;
- this.button11.Visible=false;
- this.button12.Visible=false;
- this.button13.Visible=false;
- this.button14.Visible=false;
- this.button15.Visible=false;
- this.button16.Visible=false;
- this.button17.Visible=true;
- this.button18.Visible=false;
- this.button17.Top=80;
- this.button17.Left=40;
- this.button2.Top=this.button1.Top+this.button1.Height;
- this.button3.Top=this.button1.Top+this.button1.Height+this.button2.Height;
- this.button4.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height;
- this.button5.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height;
- this.panel2.Top=24+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height;
- this.button6.Top=this.button5.Top+this.button5.Height;
- }
- }
- public void button7_Click(object sender, System.EventArgs e)
- {
- if(this.button7.Top<325)
- {
- this.button8.Visible=false;
- this.button9.Visible=false;
- this.button10.Visible=false;
- this.button11.Visible=false;
- this.button12.Visible=false;
- this.button13.Visible=false;
- this.button14.Visible=false;
- this.button15.Visible=false;
- this.button16.Visible=false;
- this.button17.Visible=true;
- this.button18.Visible=false;
- this.button17.Top=80;
- this.button17.Left=40;
- 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;
- this.panel2.Top=this.button1.Top+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.button6.Height;
- }
- else
- {
- this.button8.Visible=false;
- this.button9.Visible=false;
- this.button10.Visible=false;
- this.button11.Visible=false;
- this.button12.Visible=false;
- this.button13.Visible=false;
- this.button14.Visible=false;
- this.button15.Visible=false;
- this.button16.Visible=false;
- this.button17.Visible=false;
- this.button18.Visible=true;
- this.button18.Left=40;
- this.button18.Top=85;
- this.button2.Top=this.button1.Top+this.button1.Height;
- this.button3.Top=this.button2.Top+this.button2.Height;
- this.button4.Top=this.button3.Top+this.button3.Height;
- this.button5.Top=this.button4.Top+this.button4.Height;
- this.button6.Top=this.button5.Top+this.button5.Height;
- this.panel2.Top=24+this.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.button6.Height;
- this.button7.Top=this.button6.Top+this.button6.Height;
- }
- }
- public void button1_Click(object sender, System.EventArgs e)
- {
- this.button8.Visible=true;
- this.button9.Visible=true;
- this.button10.Visible=true;
- this.button11.Visible=true;
- this.button12.Visible=false;
- this.button13.Visible=false;
- this.button14.Visible=false;
- this.button15.Visible=false;
- this.button16.Visible=false;
- this.button17.Visible=false;
- this.button18.Visible=false;
- this.button8.Enabled=true;
- this.button9.Enabled=true;
- this.button10.Enabled=true;
- this.button11.Enabled=true;
- this.panel2.Top=24;
- this.button2.Top=this.button1.Top+this.button1.Height+this.panel2.Height;
- this.button3.Top=this.button2.Top+this.button2.Height;
- this.button4.Top=this.button3.Top+this.button3.Height;
- this.button5.Top=this.button4.Top+this.button4.Height;
- this.button6.Top=this.button5.Top+this.button5.Height;
- this.button7.Top=this.button6.Top+this.button6.Height;
- }
- private void button15_Click(object sender, System.EventArgs e)
- {
- }
- private void menuItem3_Click(object sender, System.EventArgs e)
- {
- }
- private void menuItem2_Click(object sender, System.EventArgs e)
- {
- login l=new login();
- //l.MdiParent=this;
- l.Show();
- this.mylogin.button3.Enabled=true;
- }
- private void main_Closed(object sender, System.EventArgs e)
- {
- Application.Exit();
- }
- private void menuItem4_Click(object sender, System.EventArgs e)
- {
- userg1 u=new userg1();
- u.Show();
- //this.Hide();
- }
- private void menuItem5_Click(object sender, System.EventArgs e)
- {
- password p=new password();
- p.Show();
- //this.Hide();
- }
- private void menuItem6_Click(object sender, System.EventArgs e)
- {
- Application.Exit();
- }
- private void menuItem7_Click(object sender, System.EventArgs e)
- {
- lpgl mylpgl=new lpgl();
- mylpgl.Show();
- }
- private void menuItem19_Click(object sender, System.EventArgs e)
- {
- modilp mymodilp=new modilp();
- mymodilp.Show();
- }
- private void menuItem9_Click(object sender, System.EventArgs e)
- {
- zhgl myzhgl=new zhgl();
- myzhgl.Show();
- }
- private void menuItem11_Click(object sender, System.EventArgs e)
- {
- tcgl mytcgl=new tcgl();
- mytcgl.Show();
- }
- private void menuItem12_Click(object sender, System.EventArgs e)
- {
- tctj mytctj=new tctj();
- mytctj.Show();
- }
- private void menuItem14_Click(object sender, System.EventArgs e)
- {
- wgsf mywgsf=new wgsf();
- mywgsf.Show();
- }
- private void menuItem20_Click(object sender, System.EventArgs e)
- {
- modisf mymodisf=new modisf();
- mymodisf.Show();
- }
- private void menuItem16_Click(object sender, System.EventArgs e)
- {
- bxgl mybxgl=new bxgl();
- mybxgl.Show();
- }
- private void menuItem21_Click(object sender, System.EventArgs e)
- {
- modibx mymodibx=new modibx();
- mymodibx.Show();
- }
- private void menuItem18_Click(object sender, System.EventArgs e)
- {
- tsgl mytsgl=new tsgl();
- mytsgl.Show();
- }
- private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
- {
- if(e.Button==this.toolBarButton1)
- {
- Process myProcess = new Process();
- myProcess.StartInfo.FileName = "Notepad";
- myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
- //myProcess.Start();
- //调用计算器
- Process.Start("calc.exe");
- }
- if(e.Button==this.toolBarButton2)
- {
- Process myProcess = new Process();
- myProcess.StartInfo.FileName = "Notepad";
- myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
- myProcess.Start();
- }
- if(e.Button==this.toolBarButton3)
- {
- Process myProcess = new Process();
- myProcess.StartInfo.FileName = "Notepad";
- myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
- //myProcess.Start();
- //调用计算器
- Process.Start("cleanmgr.exe");
- }
- if(e.Button==this.toolBarButton4)
- {
- Net mynet=new Net();
- mynet.Show();
- }
- if(e.Button==this.toolBarButton5)
- {
- Process myProcess = new Process();
- myProcess.StartInfo.FileName = "Notepad";
- myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
- //myProcess.Start();
- //调用计算器
- Process.Start("Mshearts.exe");
- }
- if(e.Button==this.toolBarButton6)
- {
- Process myProcess = new Process();
- myProcess.StartInfo.FileName = "Notepad";
- myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
- //myProcess.Start();
- //调用计算器
- Process.Start(" Winmine.exe ");
- }
- if(e.Button==this.toolBarButton7)
- {
- }
- if(e.Button==this.toolBarButton8)
- {
- }
- }
- private void menuItem28_Click(object sender, System.EventArgs e)
- {
- modizh myzh=new modizh();
- myzh.Show();
- }
- private void comboBox2_TextChanged(object sender, System.EventArgs e)
- {
- string path=Directory.GetCurrentDirectory();//当前程序的路径
- string newpath=Directory.GetParent(Directory.GetParent(path).ToString()).ToString()+"//music//"+this.comboBox2.Text+""+".mp3";
- //this.axRealAudio1.Source=newpath;
- //this.axRealAudio1.DoPlay();
- //this.axRealAudio1.Source="+Application.StartupPath+"\music\"+this.comboBox2.Text+";
- this.axWindowsMediaPlayer1.URL=newpath;
- }
- private void button8_Click(object sender, System.EventArgs e)
- {
- login mylogin=new login();
- mylogin.Show();
- }
- public void button9_Click(object sender, System.EventArgs e)
- {
- userg1 myuser=new userg1();
- myuser.Show();
- }
- private void button10_Click(object sender, System.EventArgs e)
- {
- password mypassword=new password();
- mypassword.Show();
- }
- private void button11_Click(object sender, System.EventArgs e)
- {
- Application.Exit();
- }
- private void button12_Click_1(object sender, System.EventArgs e)
- {
- lpgl mylpgl=new lpgl();
- mylpgl.Show();
- }
- private void button13_Click(object sender, System.EventArgs e)
- {
- zhgl myzhgl=new zhgl();
- myzhgl.Show();
- }
- private void button14_Click(object sender, System.EventArgs e)
- {
- tcgl mytcgl=new tcgl();
- mytcgl.Show();
- }
- private void button15_Click_1(object sender, System.EventArgs e)
- {
- tctj mytctj=new tctj();
- mytctj.Show();
- }
- private void button16_Click(object sender, System.EventArgs e)
- {
- wgsf mywgsf=new wgsf();
- mywgsf.Show();
- }
- private void button17_Click(object sender, System.EventArgs e)
- {
- bxgl mybxgl=new bxgl();
- mybxgl.Show();
- }
- private void button18_Click(object sender, System.EventArgs e)
- {
- tsgl mytsgl=new tsgl();
- mytsgl.Show();
- }
- private void button18_Click_1(object sender, System.EventArgs e)
- {
- tsgl mytsgl=new tsgl();
- mytsgl.Show();
- }
- private void timer1_Tick(object sender, System.EventArgs e)
- {
- if(this.label3.Left>120-this.label3.Width)
- {
- this.label3.Left--;
- }
- else
- {
- this.label3.Left=this.panel3.Width;
- this.label3.Left--;
- }
- }
- private void button19_Click(object sender, System.EventArgs e)
- {
- Process myProcess = new Process();
- myProcess.StartInfo.FileName = "Notepad";
- myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
- myProcess.Start();
- }
- private void button20_Click(object sender, System.EventArgs e)
- {
- Process myProcess = new Process();
- myProcess.StartInfo.FileName = "Notepad";
- myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
- //myProcess.Start();
- //调用计算器
- Process.Start("calc.exe");
- }
- private void button21_Click(object sender, System.EventArgs e)
- {
- Process myProcess = new Process();
- myProcess.StartInfo.FileName = "Notepad";
- myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
- //myProcess.Start();
- //调用计算器
- Process.Start("Mshearts.exe");
- }
- private void button22_Click(object sender, System.EventArgs e)
- {
- Process myProcess = new Process();
- myProcess.StartInfo.FileName = "Winmine";
- myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
- Process.Start(" Winmine.exe");
- }
- private void button23_Click(object sender, System.EventArgs e)
- {
- Net mynet=new Net();
- mynet.Show();
- }
- private void statusBar1_PanelClick(object sender, System.Windows.Forms.StatusBarPanelClickEventArgs e)
- {
- }
- private void menuItem1_Click(object sender, System.EventArgs e)
- {
- }
- private void comboBox1_TextChanged(object sender, System.EventArgs e)
- {
- if(this.comboBox1.Text=="皮肤方案一")
- {
- string path=Directory.GetCurrentDirectory();//当前程序的路径
- string newpath=Directory.GetParent(Directory.GetParent(path).ToString()).ToString()+"//image//"+"hgkt04_002.jpg";
- this.panel2.BackgroundImage=System.Drawing.Image.FromFile(newpath);
- this.panel4.BackgroundImage=System.Drawing.Image.FromFile(Directory.GetParent(Directory.GetParent(path).ToString()).ToString()+"//image//"+"200562821232822809.gif");
- this.pictureBox1.Image=System.Drawing.Image.FromFile(Directory.GetParent(Directory.GetParent(path).ToString()).ToString()+"//image//"+"14527.gif");
- }
- if(this.comboBox1.Text=="皮肤方案二")
- {
- string path1=Directory.GetCurrentDirectory();//当前程序的路径
- string newpath1=Directory.GetParent(Directory.GetParent(path1).ToString()).ToString()+"//image//"+"2006426191326862.gif";
- this.pictureBox1.Image=System.Drawing.Image.FromFile(newpath1);
- this.panel2.BackgroundImage=System.Drawing.Image.FromFile(Directory.GetParent(Directory.GetParent(path1).ToString()).ToString()+"//image//"+"head.jpg");
- this.panel4.BackgroundImage=System.Drawing.Image.FromFile(Directory.GetParent(Directory.GetParent(path1).ToString()).ToString()+"//image//"+"hgkt04_004.jpg");
- }
- /*if(this.comboBox1.Text== "皮肤方案三")
- {
- string path2=Directory.GetCurrentDirectory();//当前程序的路径
- string newpath2=Directory.GetParent(Directory.GetParent(path2).ToString()).ToString()+"//image//"+"u=996687015,527368705&gp=42.jpg";
- this.panel2.BackgroundImage=System.Drawing.Image.FromFile(newpath2);
- }*/
- if(this.comboBox1.Text== "原始皮肤")
- {
- string path3=Directory.GetCurrentDirectory();//当前程序的路径
- string newpath3=Directory.GetParent(Directory.GetParent(path3).ToString()).ToString()+"//image//"+"060923171360651.jpg";
- this.panel2.BackgroundImage=System.Drawing.Image.FromFile(newpath3);
- this.pictureBox1.Image=System.Drawing.Image.FromFile(Directory.GetParent(Directory.GetParent(path3).ToString()).ToString()+"//image//"+"biaoti.bmp");
- this.panel4.BackgroundImage=System.Drawing.Image.FromFile(Directory.GetParent(Directory.GetParent(path3).ToString()).ToString()+"//image//"+"20075416162662208.gif");
- }
- }
- private void button12_Click_2(object sender, System.EventArgs e)
- {
- lpgl mylpgl=new lpgl();
- mylpgl.Show();
- }
- private void button13_Click_1(object sender, System.EventArgs e)
- {
- zhgl myzhgl=new zhgl();
- myzhgl.Show();
- }
- private void button14_Click_1(object sender, System.EventArgs e)
- {
- tcgl mytcgl=new tcgl();
- mytcgl.Show();
- }
- private void button15_Click_2(object sender, System.EventArgs e)
- {
- tctj mytctj=new tctj();
- mytctj.Show();
- }
- private void button16_Click_1(object sender, System.EventArgs e)
- {
- wgsf mywgsf=new wgsf();
- mywgsf.Show();
- }
- private void button17_Click_1(object sender, System.EventArgs e)
- {
- bxgl mybxgl=new bxgl();
- mybxgl.Show();
- }
- private void button18_Click_2(object sender, System.EventArgs e)
- {
- tsgl mytsgl=new tsgl();
- mytsgl.Show();
- }
- private void button24_Click(object sender, System.EventArgs e)
- {
- /*system.diagnostics.process proc = new system.diagnostics.process(); proc.startinfo.filename = @"winword.exe";
- proc.startinfo.arguments = @" C:Documents and SettingsAdministrator桌面学习部期末工作总结.doc";
- try { proc.start(); proc.waitforexit(); }
- catch(system.exception exp) { string err = exp.message; } proc = system.diagnostics.process.start(@"C:Documents and SettingsAdministrator桌面学习部期末工作总结.doc");*/
- }
- }
- }