private void lnkAppendix_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { ProductWizard_Combination wizCombin = null; ProductWizard_Combination.FormLayoutType formType = ProductWizard_Combination.FormLayoutType.All; LinkLabel lnk = sender as LinkLabel; switch (lnk.Name.ToLower()) { case "lnkappendix1": formType = ProductWizard_Combination.FormLayoutType.Appendix1; break; case "lnkappendix2": formType = ProductWizard_Combination.FormLayoutType.Appendix2; break; case "lnkappendix3": formType = ProductWizard_Combination.FormLayoutType.Appendix3; break; } wizCombin = new ProductWizard_Combination(formType); wizCombin.FormClosed += new FormClosedEventHandler(wizCombin_FormClosed); wizCombin.ShowDialog(); }
private void Clear() { this.Close(); ProductWizard_Combination wizCombin = new ProductWizard_Combination(this.FormType); wizCombin.ShowDialog(); }
void wizCombin_FormClosed(object sender, FormClosedEventArgs e) { ProductWizard_Combination wizCombin = sender as ProductWizard_Combination; if (wizCombin != null) { switch (wizCombin.FormType) { case ProductWizard_Combination.FormLayoutType.Appendix1: FillAppendix1List(); break; case ProductWizard_Combination.FormLayoutType.Appendix2: FillAppendix2List(); break; case ProductWizard_Combination.FormLayoutType.Appendix3: FillAppendix3List(); break; } } }