/// <summary> /// Raises the WizardFinished event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected virtual void OnWizardFinished(object sender, WizardEventArgs e) { try { if (this.WizardFinished != null) { this.WizardFinished(sender, e); } } catch (Exception ex) { Trace.WriteLine(ex); } }
/// <summary> /// Raises the WizardNeedsHelp event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected virtual void OnWizardStarting(object sender, WizardEventArgs e) { try { if (this.WizardStarting != null) { this.WizardStarting(sender, e); } } catch (Exception ex) { Trace.WriteLine(ex); throw new Exception(ex.Message, ex); } }
/// <summary> /// Raises the WizardNeedsHelp event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected virtual void OnWizardStarting(object sender, WizardEventArgs e) { try { if (this.WizardStarting != null) this.WizardStarting(sender, e); } catch(Exception ex) { Trace.WriteLine(ex); throw new Exception(ex.Message, ex); } }
/// <summary> /// Raises the WizardFinished event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected virtual void OnWizardFinished(object sender, WizardEventArgs e) { try { if (this.WizardFinished != null) this.WizardFinished(sender, e); } catch(Exception ex) { Trace.WriteLine(ex); } }
/// <summary> /// Occurs when the Wizard is finished /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnWizardFinished(object sender, WizardEventArgs e) { this.DialogResult = DialogResult.OK; this.Close(); }
// private void OnWizardNeedsHelp(object sender, WizardEventArgs e) // { // // } // private void OnWizardStarting(object sender, EventArgs e) // { // // } // private void OnWizardNavigatedToPage(object sender, EventArgs e) // { // // } /// <summary> /// Occurs when the Wizard is cancelled /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnWizardCancelled(object sender, WizardEventArgs e) { this.DialogResult = DialogResult.Cancel; this.Close(); }
/// <summary> /// Occurs when the Wizard is finished /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnWizardFinished(object sender, WizardEventArgs e) { this.DialogResult = DialogResult.OK; this.Close(); }
// private void OnWizardNeedsHelp(object sender, WizardEventArgs e) // { // // } // private void OnWizardStarting(object sender, EventArgs e) // { // // } // private void OnWizardNavigatedToPage(object sender, EventArgs e) // { // // } /// <summary> /// Occurs when the Wizard is cancelled /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnWizardCancelled(object sender, WizardEventArgs e) { this.DialogResult = DialogResult.Cancel; this.Close(); }