private void ViewButton_Click(object sender, EventArgs e) { StudentProfile spFobj = new StudentProfile(teacher, selectedID); t.Start(); while (t.IsAlive) { this.Hide(); spFobj.ShowDialog(); } t.Abort(); this.Close(); }
private void ViewProfile() { StudentProfile spFobj = new StudentProfile(teacher, selectedID); t.Start(); while (t.IsAlive) { this.Hide(); spFobj.ShowDialog(); } t.Abort(); this.Close(); }