public async void Uredi_vse() { Ne(); if (Piskotki.stopnja < Piskotki.stevec) { Piskotki.stopnja++; Piskotki.Trenutni_glasek = Piskotki.Vrni_Trenutno_Stevilko_Glas(); for (int indeks = 0; indeks < panel1.Controls.Count; indeks++) { if ((panel1.Controls[indeks] is Label) && (Convert.ToInt32(panel1.Controls[indeks].Text) == Piskotki.Sedajsnji_glas)) { for (int indekss = 0; indekss < panel1.Controls.Count; indekss++) { if ((panel1.Controls[indekss] is PictureBox) && (panel1.Controls[indekss].Location.X == (panel1.Controls[indeks].Location.X - 54))) { panel1.Controls[indeks].ForeColor = Color.Chocolate; panel1.Controls[indekss].BackgroundImage = Properties.Resources.kk; player.URL = "smeh.wav"; await Task.Delay(900); panel1.Controls[indeks].ForeColor = Color.White; panel1.Controls[indekss].BackgroundImage = Properties.Resources.image__7_; } } } } } }
public Krasni_piškotki() { InitializeComponent(); Piskotki.Serija_glasov.Clear(); Piskotki.Polni_glasove(); Piskotki.Vrni_Trenutno_Stevilko_Glas(); Uredi_vse(); }