public override void Grabar() { recursosBindingSource.RaiseListChangedEvents = false; recursosBindingSource.EndEdit(); try { Cursor.Current = Cursors.WaitCursor; m_Recursos = m_Recursos.Save(); XtraMessageBox.Show("Registro grabado correctamente!", Text, MessageBoxButtons.OK, MessageBoxIcon.Information); base.Grabar(); } catch (ValidationException) { XtraMessageBox.Show(m_Recursos.BrokenRulesCollection.ToString(), "Grabar", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } catch (DataPortalException ex) { XtraMessageBox.Show(ex.BusinessException.Message, "Grabar", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } catch (Exception ex) { XtraMessageBox.Show(ex.Message, "Grabar", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } finally { Cursor.Current = Cursors.Default; } recursosBindingSource.RaiseListChangedEvents = true; }