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(); }