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

📄 mainform.cs

📁 一个简单的学籍管理系统!!!!!!!!!!!!!!!!
💻 CS
📖 第 1 页 / 共 2 页
字号:
            // 
            // statusBar1
            // 
            resources.ApplyResources(this.statusBar1, "statusBar1");
            this.statusBar1.Name = "statusBar1";
            this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
            this.statusBarPanel1,
            this.statusBarPanel2,
            this.statusBarPanel3,
            this.statusBarPanel4,
            this.statusBarPanel5});
            this.statusBar1.ShowPanels = true;
            // 
            // statusBarPanel1
            // 
            resources.ApplyResources(this.statusBarPanel1, "statusBarPanel1");
            // 
            // statusBarPanel2
            // 
            resources.ApplyResources(this.statusBarPanel2, "statusBarPanel2");
            // 
            // statusBarPanel3
            // 
            resources.ApplyResources(this.statusBarPanel3, "statusBarPanel3");
            // 
            // statusBarPanel4
            // 
            resources.ApplyResources(this.statusBarPanel4, "statusBarPanel4");
            // 
            // statusBarPanel5
            // 
            resources.ApplyResources(this.statusBarPanel5, "statusBarPanel5");
            // 
            // timer1
            // 
            this.timer1.Enabled = true;
            this.timer1.Interval = 999;
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            // 
            // MainForm
            // 
            resources.ApplyResources(this, "$this");
            this.BackColor = System.Drawing.SystemColors.Window;
            this.ControlBox = false;
            this.Controls.Add(this.statusBar1);
            this.ForeColor = System.Drawing.SystemColors.ControlText;
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.IsMdiContainer = true;
            this.Menu = this.mainMenu1;
            this.Name = "MainForm";
            this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
            this.TransparencyKey = System.Drawing.SystemColors.Desktop;
            this.Closed += new System.EventHandler(this.MainForm_Closed);
            this.Load += new System.EventHandler(this.MainForm_Load);
            ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.statusBarPanel5)).EndInit();
            this.ResumeLayout(false);

		}
		#endregion
		/// <summary>
		/// 应用程序的主入口点。
		/// </summary>
		[STAThread]

		static void Main() 
		{
			    Login login=new Login();
			    Application.Run(login);			   
		}

        AddClass addclass;
		private void menuItem5_Click(object sender, System.EventArgs e)
		{
			if (addclass==null || addclass.IsDisposed)
			{
				addclass=new AddClass();
				addclass.MdiParent=this;
				addclass.Show();
			}
			
		}

		AddStudent addstudent;
		private void menuItem8_Click(object sender, System.EventArgs e)
		{
			if (addstudent==null || addstudent.IsDisposed)
			{
				addstudent=new AddStudent();
				addstudent.MdiParent=this;
				addstudent.Show();
			}
		}

		AddSpecialty addspecialty;
		private void menuItem11_Click(object sender, System.EventArgs e)
		{
			if (addspecialty==null || addspecialty.IsDisposed)
			{
				addspecialty=new AddSpecialty();
				addspecialty.MdiParent=this;
				addspecialty.Show();
			}
		}


		AddCourse addcourse;
		private void menuItem9_Click(object sender, System.EventArgs e)
		{
			if (addcourse==null || addcourse.IsDisposed)
			{
				addcourse=new AddCourse();
				addcourse.MdiParent=this;
				addcourse.Show();
			}
		}


		BrowseSpecialty browsespecialty;
		private void menuItem12_Click(object sender, System.EventArgs e)
		{
			if (browsespecialty==null || browsespecialty.IsDisposed)
			{
				browsespecialty=new BrowseSpecialty();
				browsespecialty.MdiParent=this;
				browsespecialty.Show();
			}
		}

		BrowseClass browseclass;
		private void menuItem6_Click(object sender, System.EventArgs e)
		{
			if (browseclass==null || browseclass.IsDisposed)
			{
				browseclass=new BrowseClass();
				browseclass.MdiParent=this;
				browseclass.Show();
			}
		}

		BrowseStudent browsestudent;
		private void menuItem13_Click(object sender, System.EventArgs e)
		{
			if (browsestudent==null || browsestudent.IsDisposed)
			{
				browsestudent=new BrowseStudent();
				browsestudent.MdiParent=this;
				browsestudent.Show();
			}
		}

		kcll kcll1;
		private void menuItem14_Click(object sender, System.EventArgs e)
		{
			if (kcll1==null || kcll1.IsDisposed)
			{
				kcll1=new kcll();
				kcll1.MdiParent=this;
				kcll1.Show();
			}
		}

		AddScore addscore;
		private void menuItem15_Click(object sender, System.EventArgs e)
		{
			if (addscore==null || addscore.IsDisposed)
			{
				addscore=new AddScore();
				addscore.MdiParent=this;
				addscore.Show();
			}
		}

		private void Form1_Load(object sender, System.EventArgs e)
		{
			//Login login=new Login();
			//login.Show();
		}


        AddUser adduser;
		private void menuItem17_Click(object sender, System.EventArgs e)
		{
			if (adduser==null || adduser.IsDisposed)
			{
				adduser=new AddUser();
				adduser.MdiParent=this;
				adduser.Show();
			}
		}

		private void menuItem18_Click(object sender, System.EventArgs e)
		{

		}


		private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
		{
		 
			menuItem11_Click(sender,e);
		}

		private void button1_Click(object sender, System.EventArgs e)
		{
			//this.Visible=false;
		}

		private void MainForm_Closed(object sender, System.EventArgs e)
		{
			//Application.Exit();
		}

		BrowseScore browsescore;
		private void menuItem7_Click(object sender, System.EventArgs e)
		{
			if (browsescore==null || browsescore.IsDisposed)
			{
				browsescore=new BrowseScore();
				browsescore.MdiParent=this;
				browsescore.Show();
			}
		}

		ScoreQuery scorequery;
		private void menuItem20_Click(object sender, System.EventArgs e)
		{
			if (scorequery==null || scorequery.IsDisposed)
			{
				scorequery=new ScoreQuery();
				scorequery.MdiParent=this;
				scorequery.Show();
			}
		}

		ClassScoreQuery classscorequery;
		private void menuItem24_Click(object sender, System.EventArgs e)
		{
			if (classscorequery==null || classscorequery.IsDisposed)
			{
				classscorequery=new ClassScoreQuery();
				classscorequery.MdiParent=this;
				classscorequery.Show();
			}
		}

		private void menuItem22_Click(object sender, System.EventArgs e)
		{
			// Report1 report1=new Report1();
			
			
		}

		CreateRole createrole;
		private void menuItem22_Click_1(object sender, System.EventArgs e)
		{
			if (createrole==null || createrole.IsDisposed)
			{
				createrole=new CreateRole();
				createrole.MdiParent=this;
				createrole.Show();
			}
		}

		private void menuItem26_Click(object sender, System.EventArgs e)
		{
			Application.Exit();
		}

		ModifyPassword modifypassword;
		private void menuItem25_Click(object sender, System.EventArgs e)
		{
			if (modifypassword==null || modifypassword.IsDisposed)
			{
				modifypassword=new ModifyPassword();
				modifypassword.MdiParent=this;
				modifypassword.Show();
			}
		}

		private void MainForm_Load(object sender, System.EventArgs e)
		{
			this.statusBarPanel4.Text=DateTime.Now.ToString();
		
		}

		About about;
		private void menuItem23_Click(object sender, System.EventArgs e)
		{
			if (about==null || about.IsDisposed)
			{
				about=new About();
				about.MdiParent=this;
				about.Show();
			}
		}

		private void menuItem27_Click(object sender, System.EventArgs e)
		{
			((System.Windows.Forms.Form)this.Tag).Visible=true;
			this.Close();
		}

        private void timer1_Tick(object sender, EventArgs e)
        {
            this.statusBarPanel4.Text = DateTime.Now.ToString();
        }


	}
}

⌨️ 快捷键说明

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