private void Button_Click(object sender, RoutedEventArgs e) { if (Selector == null) { Selector = new LetterSelector(Key.A, LetterMappings.KeysToSymbols[Key.A]); } Selector.Show(); Selector.SelectNext(); }
public static void UpdateKey(Key key, Char[] lowerCase, Char[] upperCase) { //if (lowerCase.Length != upperCase.Length) throw new ArgumentException("lower and upper case letter arrays must be of equal length"); var pair = Tuple.Create(lowerCase, upperCase); KeysToSymbols[key] = pair; if (lowerCase.Length > 0) { KeyToWindowMap[key] = new LetterSelector(key, pair); } _UpdateCustomKeyBindings(); }