private void bttImp_Click(object sender, EventArgs e) { Form newFrm = new frmImpostazioni(); ((frmImpostazioni)newFrm).EnableOtherParam = false; newFrm.ShowDialog(); //clsSetting.LoadParam(); //clsDataBase.DbDisconnect(); //clsDataBase.DbConnect(); }
private void tsmiToolsImp_Click(object sender, EventArgs e) { int count = 0; foreach (Form childForm in MdiChildren) { if (childForm.GetType().ToString() == "Trucks.frmImpostazioni") { childForm.Focus(); count++; } } if (count == 0) { Form childForm = new frmImpostazioni(); childForm.MdiParent = this; childFormNumber++; childForm.Show(); } }