コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
 /// <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);
     }
 }
コード例 #3
0
		/// <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);
			}
		}
コード例 #4
0
		/// <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);
			}
		}
コード例 #5
0
		/// <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();
		}
コード例 #6
0
//		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();
		}
コード例 #7
0
 /// <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();
 }
コード例 #8
0
//		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();
        }