/// <summary>
 /// Show the task user interface
 /// </summary>
 /// <param name="Owner"></param>
 /// <returns>whether to cancel the task, or run now</returns>
 public override ShowResult Show(System.Windows.Forms.IWin32Window Owner)
 {
     DataCardinalityTaskForm dlg = new DataCardinalityTaskForm(this.Consumer);
     dlg.Settings = settings;
     if (System.Windows.Forms.DialogResult.OK == dlg.ShowDialog(Owner))
     {
         // gather settings values from the dialog
         settings = dlg.Settings;
         return ShowResult.RunNow;
     }
     else
         return ShowResult.Canceled;
 }
        /// <summary>
        /// Show the task user interface
        /// </summary>
        /// <param name="Owner"></param>
        /// <returns>whether to cancel the task, or run now</returns>
        public override ShowResult Show(System.Windows.Forms.IWin32Window Owner)
        {
            DataCardinalityTaskForm dlg = new DataCardinalityTaskForm(this.Consumer);

            dlg.Settings = settings;
            if (System.Windows.Forms.DialogResult.OK == dlg.ShowDialog(Owner))
            {
                // gather settings values from the dialog
                settings = dlg.Settings;
                return(ShowResult.RunNow);
            }
            else
            {
                return(ShowResult.Canceled);
            }
        }
 public override void RestoreStateFromXml(string xmlState)
 {
     settings = new DataCardinalityTaskSettings();
     settings.FromXml(xmlState);
 }
 public override bool Initialize()
 {
     settings = new DataCardinalityTaskSettings();
     return true;
 }
 public override void RestoreStateFromXml(string xmlState)
 {
     settings = new DataCardinalityTaskSettings();
     settings.FromXml(xmlState);
 }
 public override bool Initialize()
 {
     settings = new DataCardinalityTaskSettings();
     return(true);
 }