Пример #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     label2.Text = "0";
     coada       = new Coada();
     avion       = new Avion(panel1);
     multe       = new Multe(coada, avion, panel1, button1, button2, label2);
     multe.Start();
     button1.Hide();
     timer.Start();
 }
Пример #2
0
 public Multe(Coada cozi, Avion avioane, Panel panele, Button butoane1, Button butoane2, Label labele)
 {
     label   = labele;
     button1 = butoane1;
     button2 = butoane2;
     this.CreateHandle();
     coada  = cozi;
     avion  = avioane;
     panel  = panele;
     random = new Random();
     task1  = new Task(F1);
     task2  = new Task(F2);
     task3  = new Task(F3);
     task4  = new Task(F4);
     task5  = new Task(F5);
 }