Skip to content

Commit

Permalink
Clear all hotkey button
Browse files Browse the repository at this point in the history
Fixes #829
  • Loading branch information
xenolightning committed Apr 28, 2015
1 parent 8e66f5d commit c0190d9
Show file tree
Hide file tree
Showing 4 changed files with 864 additions and 819 deletions.
120 changes: 67 additions & 53 deletions FortyOne.AudioSwitcher/AudioSwitcher.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions FortyOne.AudioSwitcher/AudioSwitcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -589,12 +589,24 @@ private void btnDeleteHotKey_Click(object sender, EventArgs e)
}
}

private void btnClearAllHotKeys_Click(object sender, EventArgs e)
{
HotKeyManager.ClearAll();
RefreshGrid();

MessageBox.Show("Hotkeys Cleared!");
}

private void RefreshGrid()
{
if (InvokeRequired)
{
Invoke(new Action(RefreshGrid));
else
dataGridView1.Refresh();
return;
}

hotKeyBindingSource.ResetBindings(false);
dataGridView1.Refresh();
}

#endregion
Expand Down
Loading

0 comments on commit c0190d9

Please sign in to comment.