Form1.cs
资源名称:xqwy.rar [点击查看]
上传用户:fuyouda
上传日期:2021-03-17
资源大小:8619k
文件大小:18k
源码类别:
Windows编程
开发平台:
C/C++
- using System;
- using System.Drawing;
- using System.Collections;
- using System.ComponentModel;
- using System.Windows.Forms;
- using System.Data;
- namespace WindowsApplication1
- {
- /// <summary>
- /// Form1 的摘要说明。
- /// </summary>
- public class Form1 : 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.PictureBox pictureBox1;
- 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.PictureBox pictureBox2;
- /// <summary>
- /// 必需的设计器变量。
- /// </summary>
- private System.ComponentModel.Container components = null;
- public Form1()
- {
- //
- // Windows 窗体设计器支持所必需的
- //
- 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()
- {
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
- this.mainMenu1 = new System.Windows.Forms.MainMenu();
- this.menuItem1 = new System.Windows.Forms.MenuItem();
- this.menuItem2 = new System.Windows.Forms.MenuItem();
- this.menuItem3 = 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.menuItem7 = new System.Windows.Forms.MenuItem();
- this.menuItem8 = new System.Windows.Forms.MenuItem();
- this.menuItem9 = 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.menuItem15 = new System.Windows.Forms.MenuItem();
- this.menuItem16 = 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.panel1 = new System.Windows.Forms.Panel();
- this.button1 = new System.Windows.Forms.Button();
- this.button2 = new System.Windows.Forms.Button();
- this.button3 = new System.Windows.Forms.Button();
- this.button4 = new System.Windows.Forms.Button();
- this.button5 = new System.Windows.Forms.Button();
- this.button6 = new System.Windows.Forms.Button();
- this.button7 = new System.Windows.Forms.Button();
- this.pictureBox1 = new System.Windows.Forms.PictureBox();
- this.button12 = new System.Windows.Forms.Button();
- this.button13 = new System.Windows.Forms.Button();
- this.button14 = new System.Windows.Forms.Button();
- this.button15 = new System.Windows.Forms.Button();
- this.pictureBox2 = new System.Windows.Forms.PictureBox();
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).BeginInit();
- this.panel1.SuspendLayout();
- 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 = "系统";
- //
- // menuItem2
- //
- this.menuItem2.Index = 0;
- this.menuItem2.Text = "系统登录";
- //
- // menuItem3
- //
- this.menuItem3.Index = 1;
- this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem7});
- this.menuItem3.Text = "楼盘管理";
- //
- // menuItem4
- //
- this.menuItem4.Index = 1;
- this.menuItem4.Text = "用户管理";
- //
- // menuItem5
- //
- this.menuItem5.Index = 2;
- this.menuItem5.Text = "修改密码";
- //
- // menuItem6
- //
- this.menuItem6.Index = 3;
- this.menuItem6.Text = "关闭系统";
- //
- // menuItem7
- //
- this.menuItem7.Index = 0;
- this.menuItem7.Text = "楼盘管理";
- //
- // menuItem8
- //
- this.menuItem8.Index = 2;
- this.menuItem8.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem9});
- this.menuItem8.Text = "住户管理";
- //
- // menuItem9
- //
- this.menuItem9.Index = 0;
- this.menuItem9.Text = "住户管理";
- //
- // 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 = "停车管理";
- //
- // menuItem12
- //
- this.menuItem12.Index = 1;
- this.menuItem12.Text = "统计查询";
- //
- // menuItem13
- //
- this.menuItem13.Index = 4;
- this.menuItem13.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem14});
- this.menuItem13.Text = "收费管理";
- //
- // menuItem14
- //
- this.menuItem14.Index = 0;
- this.menuItem14.Text = "收费管理";
- //
- // menuItem15
- //
- this.menuItem15.Index = 5;
- this.menuItem15.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem16});
- this.menuItem15.Text = "报修管理";
- //
- // menuItem16
- //
- this.menuItem16.Index = 0;
- this.menuItem16.Text = "报修管理";
- //
- // 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 = "投诉管理";
- //
- // 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(552, 22);
- this.statusBar1.TabIndex = 0;
- this.statusBar1.Text = "statusBar1";
- //
- // statusBarPanel1
- //
- this.statusBarPanel1.Text = "statusBarPanel1";
- //
- // statusBarPanel2
- //
- this.statusBarPanel2.Text = "statusBarPanel2";
- //
- // statusBarPanel3
- //
- this.statusBarPanel3.Text = "statusBarPanel3";
- //
- // toolBar1
- //
- this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
- this.toolBarButton1,
- this.toolBarButton2,
- this.toolBarButton3,
- this.toolBarButton4,
- this.toolBarButton5,
- this.toolBarButton6});
- this.toolBar1.DropDownArrows = true;
- this.toolBar1.Location = new System.Drawing.Point(0, 0);
- this.toolBar1.Name = "toolBar1";
- this.toolBar1.ShowToolTips = true;
- this.toolBar1.Size = new System.Drawing.Size(552, 28);
- this.toolBar1.TabIndex = 1;
- //
- // 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.button5);
- 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.button15);
- this.panel1.Controls.Add(this.button14);
- this.panel1.Controls.Add(this.button13);
- this.panel1.Controls.Add(this.button12);
- this.panel1.Controls.Add(this.pictureBox1);
- this.panel1.Location = new System.Drawing.Point(0, 32);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(103, 356);
- this.panel1.TabIndex = 2;
- //
- // button1
- //
- this.button1.Location = new System.Drawing.Point(0, 0);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(100, 25);
- this.button1.TabIndex = 0;
- this.button1.Text = "系统";
- //
- // button2
- //
- this.button2.Location = new System.Drawing.Point(0, 208);
- this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(100, 25);
- this.button2.TabIndex = 1;
- this.button2.Text = "楼盘管理";
- this.button2.Click += new System.EventHandler(this.button2_Click);
- //
- // button3
- //
- this.button3.Location = new System.Drawing.Point(0, 232);
- this.button3.Name = "button3";
- this.button3.Size = new System.Drawing.Size(100, 25);
- this.button3.TabIndex = 2;
- this.button3.Text = "住户管理";
- //
- // button4
- //
- this.button4.Location = new System.Drawing.Point(0, 256);
- this.button4.Name = "button4";
- this.button4.Size = new System.Drawing.Size(100, 25);
- this.button4.TabIndex = 2;
- this.button4.Text = "停车管理";
- //
- // button5
- //
- this.button5.Location = new System.Drawing.Point(0, 280);
- this.button5.Name = "button5";
- this.button5.Size = new System.Drawing.Size(100, 25);
- this.button5.TabIndex = 3;
- this.button5.Text = "收费管理";
- //
- // button6
- //
- this.button6.Location = new System.Drawing.Point(0, 304);
- this.button6.Name = "button6";
- this.button6.Size = new System.Drawing.Size(100, 25);
- this.button6.TabIndex = 4;
- this.button6.Text = "报修管理";
- //
- // button7
- //
- this.button7.Location = new System.Drawing.Point(0, 328);
- this.button7.Name = "button7";
- this.button7.Size = new System.Drawing.Size(100, 25);
- this.button7.TabIndex = 5;
- this.button7.Text = "投诉管理";
- //
- // pictureBox1
- //
- this.pictureBox1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox1.BackgroundImage")));
- this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
- this.pictureBox1.Location = new System.Drawing.Point(0, 24);
- this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new System.Drawing.Size(100, 184);
- this.pictureBox1.TabIndex = 8;
- this.pictureBox1.TabStop = false;
- //
- // button12
- //
- this.button12.Location = new System.Drawing.Point(24, 162);
- this.button12.Name = "button12";
- this.button12.Size = new System.Drawing.Size(40, 40);
- this.button12.TabIndex = 12;
- this.button12.Text = "关闭系统";
- this.button12.Click += new System.EventHandler(this.button12_Click);
- //
- // button13
- //
- this.button13.Location = new System.Drawing.Point(24, 118);
- this.button13.Name = "button13";
- this.button13.Size = new System.Drawing.Size(40, 40);
- this.button13.TabIndex = 11;
- this.button13.Text = "修改密码";
- //
- // button14
- //
- this.button14.Location = new System.Drawing.Point(24, 72);
- this.button14.Name = "button14";
- this.button14.Size = new System.Drawing.Size(40, 40);
- this.button14.TabIndex = 10;
- this.button14.Text = "用户管理";
- //
- // button15
- //
- this.button15.Location = new System.Drawing.Point(24, 26);
- this.button15.Name = "button15";
- this.button15.Size = new System.Drawing.Size(40, 40);
- this.button15.TabIndex = 9;
- this.button15.Text = "系统登录";
- //
- // pictureBox2
- //
- this.pictureBox2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox2.BackgroundImage")));
- this.pictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
- this.pictureBox2.Location = new System.Drawing.Point(160, 48);
- this.pictureBox2.Name = "pictureBox2";
- this.pictureBox2.Size = new System.Drawing.Size(100, 184);
- this.pictureBox2.TabIndex = 13;
- this.pictureBox2.TabStop = false;
- //
- // Form1
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
- this.ClientSize = new System.Drawing.Size(552, 409);
- this.Controls.Add(this.panel1);
- this.Controls.Add(this.toolBar1);
- this.Controls.Add(this.statusBar1);
- this.Controls.Add(this.pictureBox2);
- this.Menu = this.mainMenu1;
- this.Name = "Form1";
- this.Text = "Form1";
- this.Load += new System.EventHandler(this.Form1_Load);
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).EndInit();
- this.panel1.ResumeLayout(false);
- this.ResumeLayout(false);
- }
- #endregion
- /// <summary>
- /// 应用程序的主入口点。
- /// </summary>
- [STAThread]
- static void Main()
- {
- Application.Run(new Form1());
- }
- private void button2_Click(object sender, System.EventArgs e)
- {
- this.pictureBox2.Left=0;
- //this.pictureBox2.Top=this.pictureBox2.Top;
- this.pictureBox1.Height=0;
- this.pictureBox1.Hide();
- this.pictureBox2.Top=this.button1.Top+this.button1.Height+this.button2.Height;
- this.button12.Height=0;
- this.button13.Height=0;
- this.button14.Height=0;
- this.button15.Height=0;
- this.button12.Hide();
- this.button13.Hide();
- this.button14.Hide();
- this.button15.Hide();
- }
- private void Form1_Load(object sender, System.EventArgs e)
- {
- //this.button2.Top=this.button1.Top+this.button1.Height+this.pictureBox1.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.button1.Height+this.button2.Height+this.button3.Height+this.button4.Height+this.button5.Height+this.button6.Height;
- }
- private void button12_Click(object sender, System.EventArgs e)
- {
- }
- }
- }