private void zipCode_Validate(object sender, ValidationEventArgs e)
 {
     detailsModifyValid.zipCode = true;
     if (e.Value == null)
     {
         e.SetError("A mező kitöltése nem kötelező", DevExpress.XtraEditors.DXErrorProvider.ErrorType.Information);
         DetailsModifyVM.ItemSourceSearcher("zipCode", null);
     }
     else if (!e.Value.ToString().Where(char.IsNumber).Count().Equals(e.Value.ToString().Length))
     {
         e.SetError("A mező csak számokat tartalmazhat", DevExpress.XtraEditors.DXErrorProvider.ErrorType.Critical);
         detailsModifyValid.zipCode = false;
         DetailsModifyVM.ItemSourceSearcher("zipCode", "false");
     }
     else if (!DetailsModifyVM.ListChecker(e.Value.ToString(), typeof(zipcode_fx)))
     {
         e.SetError("A mező tartalma nem megfelelő", DevExpress.XtraEditors.DXErrorProvider.ErrorType.Critical);
         detailsModifyValid.zipCode = false;
         DetailsModifyVM.ItemSourceSearcher("zipCode", "false");
     }
     else
     {
         e.SetError("A mező tartalma megfelelő", DevExpress.XtraEditors.DXErrorProvider.ErrorType.User1);
         DetailsModifyVM.ItemSourceSearcher("zipCode", e.Value.ToString());
     }
     ForceBinding(sender, e);
 }
 private void settlement_Validate(object sender, ValidationEventArgs e)
 {
     detailsModifyValid.settlement = true;
     if (string.IsNullOrEmpty(e.Value as string))
     {
         e.SetError("A mező kitöltése nem kötelező", DevExpress.XtraEditors.DXErrorProvider.ErrorType.Information);
         DetailsModifyVM.ItemSourceSearcher("settlement", null);
     }
     else if (!DetailsModifyVM.ListChecker(e.Value.ToString(), typeof(settlement_fx)))
     {
         e.SetError("A mező tartalma nem megfelelő", DevExpress.XtraEditors.DXErrorProvider.ErrorType.Critical);
         detailsModifyValid.settlement = false;
         DetailsModifyVM.ItemSourceSearcher("settlement", "false");
     }
     else
     {
         e.SetError("A mező tartalma megfelelő", DevExpress.XtraEditors.DXErrorProvider.ErrorType.User1);
         DetailsModifyVM.ItemSourceSearcher("settlement", e.Value.ToString());
     }
     ForceBinding(sender, e);
 }
 private void settlementErase(object sender, RoutedEventArgs e)
 {
     settlement.Clear();
     DetailsModifyVM.ItemSourceSearcher("settlement", null);
 }
 private void zipCodeErase(object sender, RoutedEventArgs e)
 {
     zipCode.Clear();
     DetailsModifyVM.ItemSourceSearcher("zipCode", null);
 }