public HotKeyForm(HotKey hk)
            : this()
        {
            linkedHotKey = hk;

            hotkey.DeviceID = hk.DeviceID;
            hotkey.Key = hk.Key;
            hotkey.Modifiers = hk.Modifiers;

            txtHotKey.Text = hk.HotKeyString;
            FirstFocus = false;

            Mode = HotKeyFormMode.Edit;

            btnAdd.Text = "Save";
        }
Exemple #2
0
        public HotKeyForm(HotKey hk)
            : this()
        {
            linkedHotKey = hk;

            hotkey.DeviceID  = hk.DeviceID;
            hotkey.Key       = hk.Key;
            hotkey.Modifiers = hk.Modifiers;

            txtHotKey.Text = hk.HotKeyString;
            FirstFocus     = false;

            Mode = HotKeyFormMode.Edit;

            btnAdd.Text = "Save";
        }
        public HotKeyForm(HotKey hk)
            : this()
        {
            _linkedHotKey = hk;

            _hotkey.DeviceId = hk.DeviceId;
            _hotkey.Key = hk.Key;
            _hotkey.Modifiers = hk.Modifiers;

            txtHotKey.Text = hk.HotKeyString;
            _firstFocus = false;

            _mode = HotKeyFormMode.Edit;

            btnAdd.Text = "Save";
        }
Exemple #4
0
        public HotKeyForm(HotKey hk)
            : this()
        {
            _linkedHotKey = hk;

            _hotkey.DeviceId  = hk.DeviceId;
            _hotkey.Key       = hk.Key;
            _hotkey.Modifiers = hk.Modifiers;

            txtHotKey.Text = hk.HotKeyString;
            _firstFocus    = false;

            _mode = HotKeyFormMode.Edit;

            btnAdd.Text = "Save";
        }