/// <summary> /// This method is called when values have been commited by the form. /// </summary> /// <param name="form"></param> /// <param name="args"></param> protected virtual void OnValuesCommited(object form, EventArgs args) { //delegate operation to active view EditorControl.CommitValues(); if (ValuesCommited != null) { ValuesCommited(form, args); } }
private static void OnCommitValuesCommandExecuted(object source, ExecutedRoutedEventArgs args) { EditorControl control = (EditorControl)source; if (control != null) { control.CommitValues(); args.Handled = true; } }