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

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

            hkf.ShowDialog(this);
        }
Ejemplo 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();
     }
 }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo n.º 6
0
 private void btnEditHotKey_Click(object sender, EventArgs e)
 {
     if (hotKeyBindingSource.Current != null)
     {
         var hkf = new HotKeyForm((HotKey) hotKeyBindingSource.Current);
         hkf.ShowDialog(this);
         RefreshGrid();
     }
 }
Ejemplo n.º 7
0
 private void btnAddHotKey_Click(object sender, EventArgs e)
 {
     var hkf = new HotKeyForm();
     hkf.ShowDialog(this);
     RefreshGrid();
 }
Ejemplo n.º 8
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);
 }
Ejemplo 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);
        }