コード例 #1
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form frm = new FrmAddVar();

            frm.Show();
            this.Close();
        }
コード例 #2
0
 private void btnModify_AddVar_ItemClick(object sender, ItemClickEventArgs e)
 {
     //Checking if model is initialized
     if (MyGlobals.model.GetVars().Length >= 1)
     {
         Form frm = new FrmAddVar();
         frm.Show();
     }
     else
     {
         Form frm = new FrmNewModel();
         frm.Show();
     }
 }
コード例 #3
0
        private void btnBuild_Click(object sender, EventArgs e)
        {
            MyGlobals.model.Dispose();
            MyGlobals.env.Dispose();

            MyGlobals.env = new GRBEnv();
            // GRBEnv env = new GRBEnv("firstapp.log");
            MyGlobals.model = new GRBModel(MyGlobals.env);


            string model_name = txtName.Text;

            MyGlobals.model.Set(GRB.StringAttr.ModelName, model_name);


            this.Hide();
            Form frm = new FrmAddVar();

            frm.Show();
            this.Close();
        }