示例#1
0
 public static string[] CollectArgs(IWin32Window parent, string report, string[] oldArgs)
 {
     using (var dlg = new SProCoPUI(oldArgs))
     {
         if (parent != null)
         {
             return (dlg.ShowDialog(parent) == DialogResult.OK) ? dlg.Arguments : null;
         }
         else
         {
             dlg.StartPosition = FormStartPosition.WindowsDefaultLocation;
             return (dlg.ShowDialog() == DialogResult.OK) ? dlg.Arguments : null;
         }
     }
 }
示例#2
0
文件: SProCoPUI.cs 项目: zrolfs/pwiz
 public static string[] CollectArgs(IWin32Window parent, string report, string[] oldArgs)
 {
     using (var dlg = new SProCoPUI(oldArgs))
     {
         if (parent != null)
         {
             return((dlg.ShowDialog(parent) == DialogResult.OK) ? dlg.Arguments : null);
         }
         else
         {
             dlg.StartPosition = FormStartPosition.WindowsDefaultLocation;
             return((dlg.ShowDialog() == DialogResult.OK) ? dlg.Arguments : null);
         }
     }
 }