Пример #1
0
 private void materialRaisedButton1_Click(object sender, EventArgs e)
 {
     if (materialSingleLineTextField1.Text.Equals("1"))
     {
         Staff_Management f = new Staff_Management();
         f.Show();
         this.Hide();
     }
     else if (materialSingleLineTextField1.Text.Equals("2"))
     {
         Admin_OverWatch f = new Admin_OverWatch();
         f.Show();
         this.Hide();
     }
     else if (materialSingleLineTextField1.Text.Equals("3"))
     {
         Conservation f = new Conservation();
         f.Show();
         this.Hide();
     }
     else if (materialSingleLineTextField1.Text.Equals("4"))
     {
         Excavation f = new Excavation();
         f.Show();
         this.Hide();
     }
     else if (materialSingleLineTextField1.Text.Equals("5"))
     {
         Exploration f = new Exploration();
         f.Show();
         this.Hide();
     }
     else if (materialSingleLineTextField1.Text.Equals("6"))
     {
         Planing f = new Planing();
         f.Show();
         this.Hide();
     }
     else if (materialSingleLineTextField1.Text.Equals("7"))
     {
         Finanacial f = new Finanacial();
         f.Show();
         this.Hide();
     }
 }
Пример #2
0
 private void materialRaisedButton1_Click(object sender, EventArgs e)
 {
     if (materialSingleLineTextField1.Text.Equals("1"))
     {
         Staff_Management f = new Staff_Management();
         f.Show();
         this.Hide();
     }
     else if (materialSingleLineTextField1.Text.Equals("2"))
     {
         Admin_OverWatch f = new Admin_OverWatch();
         f.Show();
         this.Hide();
     }
     else if (materialSingleLineTextField1.Text.Equals("3"))
     {
         Conservation f = new Conservation();
         f.Show();
         this.Hide();
     }
     else if (materialSingleLineTextField1.Text.Equals("4"))
     {
         Excavation f = new Excavation();
         f.Show();
         this.Hide();
     }
     else if (materialSingleLineTextField1.Text.Equals("5"))
     {
         Exploration f = new Exploration();
         f.Show();
         this.Hide();
     }
     else if (materialSingleLineTextField1.Text.Equals("6"))
     {
         Planing f = new Planing();
         f.Show();
         this.Hide();
     }
     else if (materialSingleLineTextField1.Text.Equals("7"))
     {
         Finanacial f = new Finanacial();
         f.Show();
         this.Hide();
     }
 }