コード例 #1
0
ファイル: SProCoPUI.cs プロジェクト: lgatto/proteowizard
 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);
         }
     }
 }