internal override async Task AddRecord() { try { InitializeNomenclatureForm(); _presenter = new NomenclaturePresenter(_nomencature); _nomencature.ShowDialog(); await Update(); } catch (Exception ex) { ShowError(ex.Message); } }
internal override async Task EditRecord() { try { if (ExistsRecord) { InitializeNomenclatureForm(); _presenter = new NomenclaturePresenter(_nomencature, Item.Number); _nomencature.ShowDialog(); await Update(); } } catch (Exception ex) { ShowError(ex.Message); } }