async Task updateBomModel(BOM_Model_Model model) { String message = "Update bom model successfully"; try { BomModelService.getInstance().updateBomModel(model); await reloadBomModel(); }catch (Exception e) { message = e.Message; } MessageBox.Show(message); }
async Task saveBomModel() { string message = "model save successfully"; try { BomModelService.getInstance().saveBomModel(getBomDetail()); await reloadBomModel(); }catch (Exception e) { message = e.Message; } MessageBox.Show(message); }
async Task deleteBomModelAsync(BOM_Model_Model model) { string message = "model delete successfully"; try { //BomModelModelDAO.getInstance().delete(model); BomModelService.getInstance().delete(model); await reloadBomModel(); }catch (Exception e) { message = e.Message; } MessageBox.Show(message); }