protected override void DeleteWorkReportAction() { if (WorkReport_DGW.CurrentRow == null) { return; } if (WorkReport_DGW.CurrentRow.Index < 0) { return; } if (WorkReport_DGW.CurrentRow.DataBoundItem == null) { return; } if (PgMng.ShowDeleteConfirmation() == DialogResult.Yes) { WorkReportInfo item = (WorkReportInfo)WorkReport_DGW.CurrentRow.DataBoundItem; WorkReport.Delete(item.Oid); _work_reports.Remove(item); WorkReport_BS.ResetBindings(false); UpdateWorkReportsTotals(); LoadCategoriesExpenses(true); } }
public override void DeleteAction() { WorkReport.Delete(ActiveOID); _action_result = DialogResult.OK; }