Example #1
0
 private void pictureBox2_Click(object sender, EventArgs e)
 {
     if (labelUser.Text == "Admin")
     {
         this.Close();
         Progress_Report_List progRepList = new Progress_Report_List();
         progRepList.Show();
     }
     else if (labelUser.Text == "Sailfish Team Leader")
     {
         this.Close();
         Sailfish_Progress_Report sailfishProgRep = new Sailfish_Progress_Report();
         sailfishProgRep.Show();
     }
     else if (labelUser.Text == "Grenfin Team Leader")
     {
         this.Close();
         Grenfin_Progress_Report GrenProgrep = new Grenfin_Progress_Report();
         GrenProgrep.Show();
     }
     else if (labelUser.Text == "Dolphin Team Leader")
     {
         this.Close();
         Dolphin_Progress_Report dolphinProgRep = new Dolphin_Progress_Report();
         dolphinProgRep.Show();
     }
     else if (labelUser.Text == "Grenada Team Leader")
     {
         this.Close();
         Grenada_Team_Progress_Report grenProgRep = new Grenada_Team_Progress_Report();
         grenProgRep.Show();
     }
 }
        private void progressReportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Sailfish_Progress_Report sailfishProgRep = new Sailfish_Progress_Report();

            sailfishProgRep.Show();
        }