/// <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); } }
public override void RestoreStateFromXml(string xmlState) { settings = new DataSqueezerTaskSettings(); settings.FromXml(xmlState); }
public override bool Initialize() { settings = new DataSqueezerTaskSettings(); return(true); }
/// <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; }
public override void RestoreStateFromXml(string xmlState) { settings = new DataSqueezerTaskSettings(); settings.FromXml(xmlState); }
public override bool Initialize() { settings = new DataSqueezerTaskSettings(); return true; }