Exemple #1
0
 public static string[] CollectArgs(IWin32Window parent, string report, string[] oldArgs)
 {
     using (var dlg = new ExampleToolUI(oldArgs))
     {
         if (parent != null)
         {
             return (dlg.ShowDialog(parent) == DialogResult.OK) ? dlg.Arguments : null;
         }
         dlg.StartPosition = FormStartPosition.WindowsDefaultLocation;
         return (dlg.ShowDialog() == DialogResult.OK) ? dlg.Arguments : null;
     }
 }
Exemple #2
0
 public static string[] CollectArgs(IWin32Window parent, string report, string[] oldArgs)
 {
     using (var dlg = new ExampleToolUI(oldArgs))
     {
         if (parent != null)
         {
             return((dlg.ShowDialog(parent) == DialogResult.OK) ? dlg.Arguments : null);
         }
         dlg.StartPosition = FormStartPosition.WindowsDefaultLocation;
         return((dlg.ShowDialog() == DialogResult.OK) ? dlg.Arguments : null);
     }
 }