protected virtual void OnNextButtonClick()
 {
     WizardResult = ContinueDirection.Next;
     Close();
 }
 protected virtual void OnPreviousButtonClick()
 {
     WizardResult = ContinueDirection.Previous;
     Close();
 }
 public ContinueDirection ShowWizardDialog()
 {
     WizardResult = ContinueDirection.Cancel;
     if (ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         return WizardResult;
     }
     else
     {
         return ContinueDirection.Cancel;
     }
 }