/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnLanzar_Click(object sender, EventArgs e) { int i = 0; foreach (System.Windows.Forms.CheckBox item in lstCB) { if (item.Checked == true) { Boolean found = false; foreach (kemen kem in lstKEMEN) { if (kem.Text.CompareTo(cnfValues["nombreGrua" + i]) == 0) { found = true; break; } } if (found == false) { kemen kk = new kemen(cnfValues["urlGrua" + i], this); kk.Show(); kk.Text = cnfValues["nombreGrua" + i]; lstKEMEN.Add(kk); } } i++; } if (threadKEMENMonitor == null) { threadKEMENMonitor = new Thread(this.executeKEMENMonitor); threadKEMENMonitor.Start(); } this.Hide(); }
public KemenMini(kemen kwnd, int indx) { InitializeComponent(); this.kmnWnd = kwnd; this.Text = kwnd.Text; this.indice = indx; InitializeKemenMini(); }