internal void RaiseDataModelValidationEvent(DataModelErrorEventArgs error)
 {
     if (OnError != null)
     {
         OnError(this, error);
     }
 }
 private void Validator_OnError(object sender, DataModelErrorEventArgs e)
 {
     _isModelValid = false;
     if (OnError != null)
     {
         OnError(sender, e);
     }
 }