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(); } }
//BUILD NEW MODEL private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e) { Form frm = new FrmNewModel(); frm.Show(); }