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);
            }
        }
        protected override void EditWorkReportAction()
        {
            if (WorkReport_DGW.CurrentRow == null)
            {
                return;
            }
            if (WorkReport_DGW.CurrentRow.Index < 0)
            {
                return;
            }
            if (WorkReport_DGW.CurrentRow.DataBoundItem == null)
            {
                return;
            }

            WorkReportInfo item = (WorkReportInfo)WorkReport_DGW.CurrentRow.DataBoundItem;

            WorkReportEditForm form = new WorkReportEditForm(item.Oid, this);

            form.ShowDialog(this);

            item.CopyFrom(form.Entity);

            WorkReport_BS.ResetBindings(false);
            UpdateWorkReportsTotals();
            LoadCategoriesExpenses(true);
        }
        protected override void AddWorkReportAction()
        {
            WorkReportAddForm form = new WorkReportAddForm(_entity, this);

            form.ShowDialog(this);

            if (form.ActionResult == DialogResult.OK)
            {
                _work_reports.AddItem(form.Entity.GetInfo());
            }

            WorkReport_BS.ResetBindings(false);
            UpdateWorkReportsTotals();
            LoadCategoriesExpenses(true);
        }