Ejemplo n.º 1
0
 private void ValidationBorder_BindingValidationError(object sender, ValidationErrorEventArgs e)
 {
     if (Validation.GetHasError(NameTextBoxForValidation) || Validation.GetHasError(AgeTextBoxForValidation))
     {
         (MyButtonForValidation).IsEnabled = false;
     }
     else
     {
         (MyButtonForValidation).IsEnabled = true;
     }
 }
Ejemplo n.º 2
0
 private void Validation_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         AddressViewModel.Errors += 1;
     }
     if (e.Action == ValidationErrorEventAction.Removed)
     {
         AddressViewModel.Errors -= 1;
     }
 }
Ejemplo n.º 3
0
 private void My_Validation_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         btnAdd.IsEnabled = false; //e.Error.Exception.Message;
     }
     else
     {
         btnAdd.IsEnabled = true;
     };                             //errorMessages.Remove(e.Error.Exception.Message);
 }
Ejemplo n.º 4
0
 private void Validation_OnError(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         _errors.Add(e.Error);
     }
     else
     {
         _errors.Remove(e.Error);
     }
 }
Ejemplo n.º 5
0
 private void filtersListError(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         _filtersValidationErrors++;
     }
     else
     {
         _filtersValidationErrors--;
     }
 }
Ejemplo n.º 6
0
 private void ScopeElement_BindingValidationError(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Removed)
     {
         Errors.Remove(e.Error);
     }
     else if (e.Action == ValidationErrorEventAction.Added)
     {
         Errors.Add(e.Error);
     }
 }
Ejemplo n.º 7
0
 private void TextBox_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         ((Control)sender).ToolTip = e.Error.ErrorContent.ToString();
     }
     else
     {
         ((Control)sender).ToolTip = "";
     }
 }
Ejemplo n.º 8
0
 protected void Validation_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         AddError();
     }
     else
     {
         RemoveError();
     }
 }
Ejemplo n.º 9
0
 private void Validation_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         ((System.Windows.Controls.Control)sender).ToolTip = e.Error.ErrorContent.ToString();
     }
     else
     {
         ((System.Windows.Controls.Control)sender).ToolTip = "";
     }
 }
Ejemplo n.º 10
0
 private void TextBoxCuit_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         ViewModel.AddError(e.Error);
     }
     else
     {
         ViewModel.RemoveError(e.Error);
     }
 }
 private void Count_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         _errCount++;
     }
     else if (e.Action == ValidationErrorEventAction.Removed)
     {
         _errCount--;
     }
 }
Ejemplo n.º 12
0
 private void Validation_LineError(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         TransactionsViewModel.LineErrors += 1;
     }
     if (e.Action == ValidationErrorEventAction.Removed)
     {
         TransactionsViewModel.LineErrors -= 1;
     }
 }
Ejemplo n.º 13
0
 private void Validation_Error_Updating(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         StudentViewModel.ErrorsUpd += 1;
     }
     if (e.Action == ValidationErrorEventAction.Removed)
     {
         StudentViewModel.ErrorsUpd -= 1;
     }
 }
Ejemplo n.º 14
0
        private static void ValidationErrorEventHandler(object sender, ValidationErrorEventArgs e)
        {
            var lookup = sender as ICrudLookupMode;

            if (lookup != null)
            {
                lookup.LookupControl.BindingGroup.ValidationRules.Clear();
                lookup.LookupControl.BindingGroup.ValidationRules.Add(new BubbleErrorValidationRule(e.Error));
                lookup.LookupControl.BindingGroup.ValidateWithoutUpdate();
            }
        }
Ejemplo n.º 15
0
 private void TargetProperty_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         __property_error_counter++;
     }
     else
     {
         __property_error_counter--;
     }
 }
Ejemplo n.º 16
0
 private void Validation_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         EmployeeMedicalInsuranceViewModel.Errors += 1;
     }
     if (e.Action == ValidationErrorEventAction.Removed)
     {
         EmployeeMedicalInsuranceViewModel.Errors -= 1;
     }
 }
Ejemplo n.º 17
0
 private void Email_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         ((Control)sender).ToolTip = e.Error.ErrorContent.ToString();
     }
     else
     {
         ((Control)sender).ClearValue(ToolTipProperty);
     }
 }
Ejemplo n.º 18
0
 private void Element_ValidationError(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added && !_errorMessages.Contains(e.Error.ErrorContent.ToString()))
     {
         _errorMessages.Add(e.Error.ErrorContent.ToString());
     }
     else if (e.Action == ValidationErrorEventAction.Removed && _errorMessages.Contains(e.Error.ErrorContent.ToString()))
     {
         _errorMessages.Remove(e.Error.ErrorContent.ToString());
     }
 }
 private void validation_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         errorMessage.Add((string)e.Error.ErrorContent);
     }
     else
     {
         errorMessage.Remove((string)e.Error.ErrorContent);
     }
 }
Ejemplo n.º 20
0
 private void InputValidationError(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         BTNStartPlanner.IsEnabled = false;
     }
     else if (!HasErrors(InputGrid))
     {
         BTNStartPlanner.IsEnabled = true;
     }
 }
Ejemplo n.º 21
0
 private void OnDataBindingError(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         (DataContext as SoftDeviceDataModel).BindingErrors++;
     }
     else
     {
         (DataContext as SoftDeviceDataModel).BindingErrors--;
     }
 }
Ejemplo n.º 22
0
 private void SettingsInputValidationError(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         BTNSaveSettings.IsEnabled = false;
     }
     else if (!HasErrors(SettingsInputGrid))
     {
         BTNSaveSettings.IsEnabled = true;
     }
 }
Ejemplo n.º 23
0
 private void Validation_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         _noOfErrorsOnScreen++;
     }
     else
     {
         _noOfErrorsOnScreen--;
     }
 }
Ejemplo n.º 24
0
 private void Validation_ErrorLine(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         WarehouseViewModel.LineErrors += 1;
     }
     if (e.Action == ValidationErrorEventAction.Removed)
     {
         WarehouseViewModel.LineErrors -= 1;
     }
 }
Ejemplo n.º 25
0
 private void TextBox_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         ErrorCnt++;
     }
     else
     {
         ErrorCnt--;
     }
 }
Ejemplo n.º 26
0
 private void TextValidationError(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         isValid--;
     }
     else
     {
         isValid++;
     }
 }
Ejemplo n.º 27
0
 private void Validation_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         _errors++;
     }
     else
     {
         _errors--;
     }
 }
Ejemplo n.º 28
0
 private void TableName_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         this.buttons.IsEnabled = false;
     }
     else if (e.Action == ValidationErrorEventAction.Removed)
     {
         this.buttons.IsEnabled = true;
     }
 }
Ejemplo n.º 29
0
 private void validation_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         errorMessages.Add(e.Error.Exception.Message);
     }
     else
     {
         errorMessages.Remove(e.Error.Exception.Message);
     }
 }
Ejemplo n.º 30
0
 private void Validation_Rueckzahlung_Error(object sender, ValidationErrorEventArgs e)
 {
     if (e.Action == ValidationErrorEventAction.Added)
     {
         RechnungViewModel.RueckzahlungErrors += 1;
     }
     if (e.Action == ValidationErrorEventAction.Removed)
     {
         RechnungViewModel.RueckzahlungErrors -= 1;
     }
 }