Beispiel #1
0
        private void ExcuteInsert()
        {
            LossReport lossReport = new LossReport();

            lossReport.LossReportId = DataRepository.LossReport.GetMaxId() + 1;

            LossReportAdminForm form = new LossReportAdminForm(lossReport);
            form.ShowDialog();
        }
Beispiel #2
0
        private void ExecuteEdit()
        {
            LossReport lossReport = lossReportBindingSource.Current as LossReport;

            if (lossReport == null)
                return;

            LossReportAdminForm form = new LossReportAdminForm(lossReport);
            form.ShowDialog();
        }