/// <summary> /// Guarda en la bd el objeto actual /// </summary> protected override bool SaveObject() { this.Datos.RaiseListChangedEvents = false; //Creamos los cobros Fomento de los expedientes seleccionados if (!Asignar()) { return(false); } // do the save try { Charge temp = _entity.Clone(); temp.ApplyEdit(); _entity = temp.Save(); _entity.ApplyEdit(); return(true); } catch (Exception ex) { PgMng.ShowInfoException(ex); return(false); } finally { this.Datos.RaiseListChangedEvents = true; } }