private void ViewButton_Click(object sender, EventArgs e) { View_Result vrFobj = new View_Result(teacher, tbname, id, classes, year); t.Start(); while (t.IsAlive) { this.Hide(); vrFobj.ShowDialog(); } t.Abort(); this.Close(); }
private void MarksheetButton_Click(object sender, EventArgs e) { View_Result vrFobj = new View_Result(teacher, "final", selectedID, "Graduated", year.ToString()); t.Start(); while (t.IsAlive) { this.Hide(); vrFobj.ShowDialog(); } t.Abort(); this.Close(); }