Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }