⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cs

📁 物业管理系统
💻 CS
📖 第 1 页 / 共 5 页
字号:
			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;

			}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -