public static DialogResult Show(string title, string description, out HotKey hotKey) { var form = new HotKeyForm(title, description); DialogResult dialogResult = form.ShowDialog(); hotKey = form.hotKeyPressed; return(dialogResult); }
public static HotKey Show(IWin32Window owner, string title, string description) { var form = new HotKeyForm(title, description); if (owner != null) { form.ShowDialog(owner); } else { form.ShowDialog(); } return(form.hotKeyPressed); }