예제 #1
0
        internal override async Task AddRecord()
        {
            try
            {
                _mark      = new EditingMarkForm();
                _presenter = new MarkPresenter(_mark);
                _mark.ShowDialog();

                await Update();
            }
            catch (Exception ex)
            {
                ShowError(ex.Message);
            }
        }
예제 #2
0
        internal override async Task EditRecord()
        {
            try
            {
                if (ExistsRecord)
                {
                    _mark      = new EditingMarkForm();
                    _presenter = new MarkPresenter(_mark, Item.ID);
                    _mark.ShowDialog();

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