예제 #1
0
 public void OnSourceKeyChange(object sender, KeyChangedEventArgs args)
 {
     SourceField sourceField;
     if (sender is SourceField)
     {
         sourceField = sender as SourceField;
         keys[keys.IndexOf(args.OldKey)] = args.NewKey;
         KeysComboBox.Items.Remove(args.OldKey);
         KeysComboBox.Items.Add(args.NewKey);
     }
 }
예제 #2
0
 private void OnSourceKeyChanged(object sender, KeyChangedEventArgs args)
 {
     if (SourceKeyChanged != null)
     {
         SourceKeyChanged(sender, args);
     }
 }