public override void Eliminar() { base.Eliminar(); try { Cursor.Current = Cursors.WaitCursor; CargaDatosActuales(); if (XtraMessageBox.Show("Desea eliminar el registro?", Text, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.No) { return; } Aplicacion.DeleteAplicacion(_Aplicacion.ID); Buscar(); } catch (DataPortalException ex) { XtraMessageBox.Show(ex.BusinessException.Message, "Eliminar", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } catch (Exception ex) { XtraMessageBox.Show(ex.Message, "Eliminar", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } finally { Cursor.Current = Cursors.Default; } }