Esempio n. 1
0
        private void btnAddHotKey_Click(object sender, EventArgs e)
        {
            var hkf = new HotKeyForm();

            hkf.ShowDialog(this);
            RefreshGrid();
        }
Esempio n. 2
0
        private void ButtonHotKey_Click(object sender, EventArgs e)
        {
            Program.Settings.HotKeys = "";
            HotKeyManager.ClearAll();
            var hkf = new HotKeyForm();

            hkf.ShowDialog(this);
        }
Esempio n. 3
0
 private void btnEditHotKey_Click(object sender, EventArgs e)
 {
     if (hotKeyBindingSource.Current != null)
     {
         var hkf = new HotKeyForm((HotKey)hotKeyBindingSource.Current);
         hkf.ShowDialog(this);
         RefreshGrid();
     }
 }
Esempio n. 4
0
        private void setHotKeyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            HotKeyForm hkf = null;

            foreach (HotKey hk in HotKeyManager.HotKeys)
            {
                if (hk.DeviceID == SelectedRecordingDevice.ID)
                {
                    hkf = new HotKeyForm(hk);
                    hkf.ShowDialog(this);
                    return;
                }
            }
            var newHotKey = new HotKey();

            newHotKey.DeviceID = SelectedRecordingDevice.ID;
            hkf = new HotKeyForm(newHotKey);
            hkf.ShowDialog(this);
        }
Esempio n. 5
0
        private void setHotKeyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (SelectedRecordingDevice == null)
            {
                return;
            }

            var hotkey = HotKeyManager.HotKeys.FirstOrDefault(x => x.DeviceId == SelectedRecordingDevice.Id);

            if (hotkey == null)
            {
                hotkey          = new HotKey();
                hotkey.DeviceId = SelectedRecordingDevice.Id;
            }

            var hkf = new HotKeyForm(hotkey);

            hkf.ShowDialog(this);
        }
 private void btnEditHotKey_Click(object sender, EventArgs e)
 {
     if (hotKeyBindingSource.Current != null)
     {
         var hkf = new HotKeyForm((HotKey) hotKeyBindingSource.Current);
         hkf.ShowDialog(this);
         RefreshGrid();
     }
 }
 private void btnAddHotKey_Click(object sender, EventArgs e)
 {
     var hkf = new HotKeyForm();
     hkf.ShowDialog(this);
     RefreshGrid();
 }
 private void setHotKeyToolStripMenuItem_Click(object sender, EventArgs e)
 {
     HotKeyForm hkf = null;
     foreach (HotKey hk in HotKeyManager.HotKeys)
     {
         if (hk.DeviceID == SelectedRecordingDevice.ID)
         {
             hkf = new HotKeyForm(hk);
             hkf.ShowDialog(this);
             return;
         }
     }
     var newHotKey = new HotKey();
     newHotKey.DeviceID = SelectedRecordingDevice.ID;
     hkf = new HotKeyForm(newHotKey);
     hkf.ShowDialog(this);
 }
Esempio n. 9
0
        private void setHotKeyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (SelectedRecordingDevice == null)
                return;

            var hotkey = HotKeyManager.HotKeys.FirstOrDefault(x => x.DeviceId == SelectedRecordingDevice.Id);

            if (hotkey == null)
            {
                hotkey = new HotKey();
                hotkey.DeviceId = SelectedRecordingDevice.Id;
            }

            var hkf = new HotKeyForm(hotkey);
            hkf.ShowDialog(this);
        }