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); } }
private void OnSourceKeyChanged(object sender, KeyChangedEventArgs args) { if (SourceKeyChanged != null) { SourceKeyChanged(sender, args); } }