public static string[] CollectArgs(IWin32Window parent, string report, string[] oldArgs) { using (var dlg = new MS1Probe(oldArgs)) { if (parent != null) { return((dlg.ShowDialog(parent) == DialogResult.OK) ? dlg.Arguments : null); } return((dlg.ShowDialog() == DialogResult.OK) ? dlg.Arguments : null); } }
public static string[] CollectArgs(IWin32Window parent, string report, string[] oldArgs) { using (var dlg = new MS1Probe(oldArgs)) { if (parent != null) return (dlg.ShowDialog(parent) == DialogResult.OK) ? dlg.Arguments : null; return (dlg.ShowDialog() == DialogResult.OK) ? dlg.Arguments : null; } }