Esempio n. 1
0
 public static string[] CollectArgs(IWin32Window parent, string report, string[] args)
 {
     using (var dlg = new SampleSizeUi(args))
     {
         if (parent != null)
         {
             return((dlg.ShowDialog(parent) == DialogResult.OK) ? dlg.Arguments : null);
         }
         return((dlg.ShowDialog() == DialogResult.OK) ? dlg.Arguments : null);
     }
 }
Esempio n. 2
0
 public static string[] CollectArgs(IWin32Window parent, string report, string[] args)
 {
     using (var dlg = new SampleSizeUi(args))
     {
         if (parent != null)
         {
             return (dlg.ShowDialog(parent) == DialogResult.OK) ? dlg.Arguments : null;
         }
         return (dlg.ShowDialog() == DialogResult.OK) ? dlg.Arguments : null;
     }
 }