private void btnBack_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form frm = new FrmAddObj();

            frm.Show();
            this.Close();
        }
Exemple #2
0
 private void btnBuild_AddObj_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (MyGlobals.model.GetVars().Length >= 1)
     {
         Form frm = new FrmAddObj();
         frm.Show();
     }
     else
     {
         MessageBox.Show("You have not added any variables!");
     }
 }
 //direct to addobjective
 private void btnNext_Click(object sender, EventArgs e)
 {
     if (MyGlobals.model.GetVars().Length >= 1)
     {
         MyGlobals.model.Update();
         this.Hide();
         Form frm = new FrmAddObj();
         frm.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("You have not added any variables!");
     }
 }