private void PrintingCompleted(object sender, RunWorkerCompletedEventArgs e) { PleaseWaitForm.Hide(); PleaseWaitForm.Dispose(); PleaseWaitForm = null; Program.FamilyId = 0; classlist = new List <ClassInfo>(); PrintAll.Text = string.Empty; if (Program.AskLabels) { var f = new DidItWork(); var ret = f.ShowDialog(); f.Hide(); f.Dispose(); if (ret == DialogResult.No) { Util.ReportPrinterProblem(); var fa = new AdminLogin(); fa.ShowDialog(); } } this.GoHome(string.Empty); }
private void PrintingCompleted(object sender, RunWorkerCompletedEventArgs e) { PleaseWaitForm.Hide(); PleaseWaitForm.Dispose(); PleaseWaitForm = null; Program.FamilyId = 0; classlist = new List<ClassInfo>(); PrintAll.Text = string.Empty; if (Program.AskLabels) { var f = new DidItWork(); var ret = f.ShowDialog(); f.Hide(); f.Dispose(); if (ret == DialogResult.No) { Util.ReportPrinterProblem(); var fa = new AdminLogin(); fa.ShowDialog(); } } this.GoHome(string.Empty); }