Пример #1
0
        internal override async Task AddRecord()
        {
            try
            {
                _materail  = new EditingMaterialForm();
                _presenter = new MaterialPresenter(_materail, (Guid)ReasonCustomerID, Customer);
                _materail.ShowDialog();

                await Update();
            }
            catch (Exception ex)
            {
                ShowError(ex.Message);
            }
        }
Пример #2
0
        internal override async Task EditRecord()
        {
            try
            {
                if (ExistsRecord)
                {
                    _materail  = new EditingMaterialForm();
                    _presenter = new MaterialPresenter(_materail, Item.ID);
                    _materail.ShowDialog();

                    await Update();
                }
            }
            catch (Exception ex)
            {
                ShowError(ex.Message);
            }
        }