public string ShowOptionsDialog(IntPtr hParentWnd, string parameters) { OptionsForm form = new OptionsForm( ); if (form.ShowDialog( ) != DialogResult.OK) { return(""); } string options = form.checkBox1.Checked ? "option1" : ""; options += form.checkBox2.Checked ? "option2" : ""; return(options); }
public string ShowOptionsDialog( IntPtr hParentWnd, string parameters ) { OptionsForm form = new OptionsForm( ); if ( form.ShowDialog( ) != DialogResult.OK ) return ""; string options = form.checkBox1.Checked ? "option1" : ""; options += form.checkBox2.Checked ? "option2" : ""; return options; }