public void SetShortKey(ShortKey key, bool newShortKey) { cbxCategory.DataSource = ShortKeyConfiguration.GetCategories(); shortKeyBindingSource.DataSource = key; cbxCategory.Text = key.Category; cbxCategory.Enabled = newShortKey; }
public bool IsMatched(string key) { return(ShortKey?.Equals(key, StringComparison.OrdinalIgnoreCase) == true || LongKey?.Equals(key, StringComparison.OrdinalIgnoreCase) == true); }