/// <summary> /// Guarda en la bd el objeto actual /// </summary> protected override bool SaveObject() { this.Datos.RaiseListChangedEvents = false; Traspaso temp = _entity.Clone(); temp.ApplyEdit(); // do the save try { _entity = temp.Save(); _entity.ApplyEdit(); return(true); } catch (Exception ex) { PgMng.FillUp(); PgMng.ShowInfoException(iQExceptionHandler.GetAllMessages(ex)); return(false); } finally { this.Datos.RaiseListChangedEvents = true; } }
public TraspasoAddForm(Traspaso source) : base() { InitializeComponent(); _entity = source.Clone(); _entity.BeginEdit(); SetFormData(); _mf_type = ManagerFormType.MFAdd; }