public SAS.Shared.AddIns.ShowResult Show(System.Windows.Forms.IWin32Window Owner) { // Show the default form for this custom task TopNReportForm dlg = new TopNReportForm(); dlg.Model = this; dlg.Text = sLabel; if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { return(SAS.Shared.AddIns.ShowResult.RunNow); } else { return(SAS.Shared.AddIns.ShowResult.Canceled); } }
public SAS.Shared.AddIns.ShowResult Show(System.Windows.Forms.IWin32Window Owner) { // Show the default form for this custom task TopNReportForm dlg = new TopNReportForm(); dlg.Model = this; dlg.Text = sLabel; if (dlg.ShowDialog()==System.Windows.Forms.DialogResult.OK) return SAS.Shared.AddIns.ShowResult.RunNow; else return SAS.Shared.AddIns.ShowResult.Canceled; }