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

📄 main.cs

📁 此为本人和同学所开发的酒店管理系统.C#.net.也是软件工程课程的作业.
💻 CS
📖 第 1 页 / 共 3 页
字号:
			this.pictureBox1.Size = new System.Drawing.Size(352, 24);
			this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
			this.pictureBox1.TabIndex = 0;
			this.pictureBox1.TabStop = false;
			// 
			// timer1
			// 
			this.timer1.Enabled = true;
			this.timer1.Interval = 1000;
			this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
			// 
			// compro
			// 
			this.compro.StartInfo.FileName = "calc.exe";
			this.compro.SynchronizingObject = this;
			// 
			// processhelp
			// 
			this.processhelp.StartInfo.FileName = "happybook.exe";
			this.processhelp.SynchronizingObject = this;
			// 
			// main
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(592, 493);
			this.Controls.Add(this.groupBox2);
			this.Controls.Add(this.panel1);
			this.Controls.Add(this.groupBox1);
			this.Cursor = System.Windows.Forms.Cursors.Hand;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MaximizeBox = false;
			this.MaximumSize = new System.Drawing.Size(600, 520);
			this.Menu = this.mainMenu1;
			this.MinimizeBox = false;
			this.MinimumSize = new System.Drawing.Size(600, 520);
			this.Name = "main";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "客房管理系统";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.main_Closing);
			this.Load += new System.EventHandler(this.main_Load);
			this.groupBox1.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// 应用程序的主入口点。
		/// </summary>
		///[STAThread]
		
		private void main_Load(object sender, System.EventArgs e)
		{	
			StreamReader sr=new StreamReader("start.txt",System.Text .Encoding.Default);
			oper=this.nam ;
			switch(this.pur )
			{
				case '0':
					this.chushi1 ();
					this.chushi2 ();
					break;
				case '1':
					this.huifu1 ();
					this.huifu2 ();
					break;
				case '2':
					this.chushi1 ();
					this.huifu2 ();
					break;
				case '3':
					this.huifu1 ();
					this.chushi2 ();
					break;

			}
			//启动每日一帖
			if(sr.ReadLine ()=="1")
			{
				sr.Close ();
				tips t=new tips ();
				t.ShowDialog ();
			}
			

		}
		private void button8_Click(object sender, System.EventArgs e)
		{
			dc.exit();
		}

		private void menuItem6_Click(object sender, System.EventArgs e)
		{
			dc.exit();
		}

		private void button1_Click(object sender, System.EventArgs e)
		{
			this.kfyd ();
		}

		private void chushi1()
		{
			this.button1 .Enabled =false;
			this.button2 .Enabled =false;
			this.button3 .Enabled =false;
			this.button4 .Enabled =false;
			this.button5 .Enabled =false;
			this.button7 .Enabled =false;
			this.menuItem2.Enabled =false;
			this.menuItem3 .Enabled =false;
			this.menuItem4 .Enabled =false;
			this.menuItem5 .Enabled =false;
			this.menuItem11 .Enabled =false;
		}
		private void chushi2()
		{
			this.menuItem23 .Enabled =false;
			this.menuItem32 .Enabled =false;
		}
		private void huifu1()
		{
			this.button1 .Enabled =true;
			this.button2 .Enabled =true;
			this.button3 .Enabled =true;
			this.button4 .Enabled =true;
			this.button5 .Enabled =true;
			this.button7 .Enabled =true;
			this.menuItem2.Enabled =true;
			this.menuItem3 .Enabled =true;
			this.menuItem4 .Enabled =true;
			this.menuItem5 .Enabled =true;
			this.menuItem11 .Enabled =true;
		}
		private void huifu2()
		{
			this.menuItem23 .Enabled =true;
			this.menuItem32 .Enabled =true;
		}
		private void kfyd()
		{
			kfyd kfyd1=new kfyd (oper);
			kfyd1.ShowDialog ();
		}
		private void zsdj()
		{
			zsdj zsdj1=new zsdj (oper);
			zsdj1.ShowDialog ();
		}
		private void tsjz()
		{
			tsjz tsjz1=new tsjz (oper);
			tsjz1.ShowDialog ();
		}
		private void zscx()
		{
			zscx zscx1=new zscx (oper);
			zscx1.ShowDialog ();
		}
		private void kfcx()
		{
			kfcx kfcx1=new kfcx (oper);
			kfcx1.ShowDialog ();
		}
		private void sftx()
		{
			sftx sftx1=new sftx (oper);
			sftx1.ShowDialog ();
		}
		private void button5_Click(object sender, System.EventArgs e)
		{
			this.kfcx ();
		}
		private void menuItem33_Click(object sender, System.EventArgs e)
		{
			opermana op=new opermana (pur,nam);
			op.ShowDialog ();
		}

		private void menuItem2_Click(object sender, System.EventArgs e)
		{
			this.kfyd ();
		}

		private void menuItem3_Click(object sender, System.EventArgs e)
		{
			this.zsdj ();
		}

		private void button2_Click(object sender, System.EventArgs e)
		{
			this.zsdj ();
		}

		private void menuItem4_Click(object sender, System.EventArgs e)
		{
			zjyj zjyj1=new zjyj (oper);
			zjyj1.ShowDialog ();
		}

		private void menuItem5_Click(object sender, System.EventArgs e)
		{
			this.tsjz ();
		}

		private void button3_Click(object sender, System.EventArgs e)
		{
			this.tsjz ();
		}

		private void menuItem12_Click(object sender, System.EventArgs e)
		{
			this.zscx ();
		}

		private void button4_Click(object sender, System.EventArgs e)
		{
			this.zscx ();
		}

		private void menuItem17_Click(object sender, System.EventArgs e)
		{
			this.kfcx ();
		}

		private void menuItem48_Click(object sender, System.EventArgs e)
		{
			this.sftx ();
		}

		private void button7_Click(object sender, System.EventArgs e)
		{
			this.sftx ();
		}



		private void menuItem14_Click(object sender, System.EventArgs e)
		{
			tscx tscx1=new tscx (oper);
			tscx1.ShowDialog ();
		}

		private void main_Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			dc.exit ();
		}

		private void menuItem20_Click(object sender, System.EventArgs e)
		{
			tips t=new tips ();
			t.ShowDialog ();
		}

		private void timer1_Tick(object sender, System.EventArgs e)
		{
			this.label3 .Text =System.DateTime.Now .ToLongTimeString();
		}

		private void button6_Click(object sender, System.EventArgs e)
		{
			compro.Start ();
		}

		private void menuItem24_Click(object sender, System.EventArgs e)
		{
			kfinfo kk=new kfinfo ();
			kk.ShowDialog ();
		}

		private void menuItem29_Click(object sender, System.EventArgs e)
		{
			yginfo yg=new yginfo ();
			yg.ShowDialog ();
		}

		private void menuItem39_Click(object sender, System.EventArgs e)
		{
			backup bk=new backup ();
			bk.ShowDialog ();
		}

		private void menuItem45_Click(object sender, System.EventArgs e)
		{
			this.processhelp.Start();
		}

		private void menuItem44_Click(object sender, System.EventArgs e)
		{
			dwinfo di=new dwinfo (oper);
			di.ShowDialog ();
		}

		private void menuItem31_Click(object sender, System.EventArgs e)
		{
			bminfo bm=new bminfo ();
			bm.ShowDialog ();
		}

		private void menuItem37_Click(object sender, System.EventArgs e)
		{
			sysivn sys=new sysivn ();
			sys.ShowDialog ();
		}

		private void menuItem47_Click(object sender, System.EventArgs e)
		{
			about ab=new about ();
			ab.ShowDialog ();
		}

	}
}

⌨️ 快捷键说明

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