Exemple #1
0
        /// <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)
        {
            DataSqueezerTaskForm dlg = new DataSqueezerTaskForm(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)
 {
     DataSqueezerTaskForm dlg = new DataSqueezerTaskForm(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;
 }