private void CancelButton_Click(object sender, RoutedEventArgs e) { filters.CancelEdit(); BindingGroup.CancelEdit(); Timeline.Name = _title; DialogResult = false; }
/// <summary> /// Отменить введенные значения /// </summary> public void CancelValidation(object parameter = null) { if (parameter is BindingGroup) { BindingGroup bindGroup = parameter as BindingGroup; bindGroup.CancelEdit(); bindGroup.BeginEdit(); } }
/// <summary> /// Отменить введенные значения /// </summary> public void CancelValidation(object parameter = null) { BindingGroup bindGroup = null; if (parameter is BindingGroup) { bindGroup = parameter as BindingGroup; } else if (parameter is CommandEventParameter) { CommandEventParameter commEvtParam = parameter as CommandEventParameter; if (commEvtParam.CommandParameter is BindingGroup) { bindGroup = commEvtParam.CommandParameter as BindingGroup; } } if (bindGroup != null) { bindGroup.CancelEdit(); bindGroup.BeginEdit(); } }
private void Abort_Click(object sender, RoutedEventArgs e) { BindingGroup.CancelEdit(); DialogResult = false; }
private void buttonRevert_Click(object sender, RoutedEventArgs e) { BindingGroup.CancelEdit(); IsEditing = false; }
private void AbortSettings_Click(object sender, RoutedEventArgs e) { BindingGroup.CancelEdit(); Close(); }