void HandleClick(object sender, EventArgs e) { if (null == SaveAppearance) { throw new Exception("No proper save method for appearances has been initalized"); } AppearancePanelForm form = new AppearancePanelForm(App); if (DialogResult.OK == form.ShowDialog()) { AppearanceClass ThisAppearance = form.GetAppearance(); SaveAppearance(ThisAppearance); } }
void HandleAddAppearanceClick1(object sender, EventArgs e) { if (null == SaveAppearance) { throw new Exception("No proper save method for appearances has been initalized"); } // Add options // We build off the selected Appearance Type but will rename it [No. We do not. Don't want to mess up an existing object] AppearancePanelForm form = new AppearancePanelForm(null); if (DialogResult.OK == form.ShowDialog()) { AppearanceClass ThisAppearance = form.GetAppearance(); SaveAppearance(ThisAppearance); } }
void HandleClick(object sender, EventArgs e) { if (null == SaveAppearance) { throw new Exception ("No proper save method for appearances has been initalized"); } AppearancePanelForm form = new AppearancePanelForm (App); if (DialogResult.OK ==form.ShowDialog() ) { AppearanceClass ThisAppearance = form.GetAppearance(); SaveAppearance (ThisAppearance); } }
void HandleAddAppearanceClick1(object sender, EventArgs e) { if (null == SaveAppearance) { throw new Exception ("No proper save method for appearances has been initalized"); } // Add options // We build off the selected Appearance Type but will rename it [No. We do not. Don't want to mess up an existing object] AppearancePanelForm form = new AppearancePanelForm (null); if (DialogResult.OK ==form.ShowDialog() ) { AppearanceClass ThisAppearance = form.GetAppearance(); SaveAppearance (ThisAppearance); } }