예제 #1
0
 private void CancelButton_Click(object sender, RoutedEventArgs e)
 {
     filters.CancelEdit();
     BindingGroup.CancelEdit();
     Timeline.Name = _title;
     DialogResult  = false;
 }
예제 #2
0
 /// <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();
            }
        }
예제 #4
0
 private void Abort_Click(object sender, RoutedEventArgs e)
 {
     BindingGroup.CancelEdit();
     DialogResult = false;
 }
예제 #5
0
 private void buttonRevert_Click(object sender, RoutedEventArgs e)
 {
     BindingGroup.CancelEdit();
     IsEditing = false;
 }
예제 #6
0
 private void AbortSettings_Click(object sender, RoutedEventArgs e)
 {
     BindingGroup.CancelEdit();
     Close();
 }