コード例 #1
0
        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);
        }
コード例 #2
0
        async Task saveBomModel()
        {
            string message = "model save successfully";

            try
            {
                BomModelService.getInstance().saveBomModel(getBomDetail());
                await reloadBomModel();
            }catch (Exception e)
            {
                message = e.Message;
            }
            MessageBox.Show(message);
        }
コード例 #3
0
        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);
        }