private void button2_Click(object sender, EventArgs e) { this.Hide(); AssignTraining assignTraining = new AssignTraining(users); assignTraining.Show(); }
private void assign_update_Click(object sender, EventArgs e) { if (LoggedIn.userTypeIdFK == 1) { this.Hide(); var form = new AssignTraining(LoggedIn); form.Closed += (s, args) => this.Close(); form.Show(); } else { this.Hide(); var form = new UpdateExpert(LoggedIn); form.Closed += (s, args) => this.Close(); form.Show(); } }