private void button13_Click(object sender, EventArgs e) { if (hid) { timer2.Start(); } Ps2.Visible = false; DialogResult result = folderBrowserDialog1.ShowDialog(); if (result == DialogResult.OK) { Ps2.Show(); button2.Enabled = true; button2.Visible = true; button3.Enabled = true; button3.Visible = true; button5.Enabled = true; button5.Visible = true; btnTreeView.Enabled = true; btnTreeView.Visible = true; path = folderBrowserDialog1.SelectedPath; try { List <string> s = Directory.GetFiles(path, "*.*", SearchOption.AllDirectories).ToList(); Form2 f = new BgWorker.Form2(s); f.Show(); Parallel.Invoke(() => { ListDirectory(treeView, path); }, () => { listView(path); }); } catch { } } }
// Update is called once per frame void Update() { if (SacandoTazo > 0) { relogio += Time.deltaTime; if (relogio >= tempoLimite) { podeSacarT = true; } } SelectTazo(); SlotReserva(); U1 = Ps1.GetComponent <PosiSlots>().activo; U2 = Ps2.GetComponent <PosiSlots>().activo; U3 = Ps3.GetComponent <PosiSlots>().activo; if (U1 == false && U2 == false && U3 == false || U1 == true && U2 == true && U3 == false || U1 == true && U2 == false && U3 == false || U1 == false && U2 == true && U3 == true || U1 == false && U2 == false && U3 == true || U1 == false && U2 == true && U3 == false || U1 == true && U2 == false && U3 == true) { SaqueTazo = true; } if (U1 == true && U2 == true && U3 == true) { SaqueTazo = false; } if (SaqueTazo == true) { if (!showReset) { if (Input.GetKeyDown(KeyCode.T) || podeSacarT == true) { MoveOrdenaTazo(); SacandoTazo = SacandoTazo - 1; podeSacarT = false; relogio = 0; } } } else { // Reset button if (Input.GetKeyDown(KeyCode.R)) { ResetTazos(); } } }
private void Form1_Load(object sender, EventArgs e) { Ps2.Hide(); }