예제 #1
0
        private void btnSaveas_Click(object sender, EventArgs e)
        {
            DBCtrl.DAO.RecipesDao dao = new DBCtrl.DAO.RecipesDao();
            int maxid = dao.MaxRecipeId();

            txtRcpId.Text    = maxid.ToString();
            ndpVersion.Value = 1;
            txtRcpName.Text  = "";
        }
예제 #2
0
 private void NewRecipe()
 {
     try
     {
         DBCtrl.DAO.RecipesDao dao = new DBCtrl.DAO.RecipesDao();
         int maxid = dao.MaxRecipeId();
         txtRcpId.Text    = maxid.ToString();
         ndpVersion.Value = 1;
         txtRcpName.Text  = "";
         CameraRecipe camrcp = new CameraRecipe();
         DisplayCamera(camrcp);
         ScanRecipe scanrcp = new ScanRecipe();
         DisplayScan(scanrcp);
         ControlRecipe ctrlrcp = new ControlRecipe();
         DisplayControl(ctrlrcp);
     }
     catch (Exception ex)
     {
         Dialogs.Show(ex);
     }
 }