internal override async Task AddRecord() { try { _mark = new EditingMarkForm(); _presenter = new MarkPresenter(_mark); _mark.ShowDialog(); await Update(); } catch (Exception ex) { ShowError(ex.Message); } }
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); } }