private void btnOptimize_Click(object sender, EventArgs e) { this.Hide(); Form frm = new FrmOptimize(); frm.Show(); this.Close(); }
private void btnView_Optimize_ItemClick(object sender, ItemClickEventArgs e) { GRBLinExpr func = (GRBLinExpr)MyGlobals.model.GetObjective(); if (func.Size != 0) { Form frm = new FrmOptimize(); frm.Show(); } else { MessageBox.Show("Your Objective Function is not initialized. \nPlease build your model."); } }