Exemple #1
0
 public Form1()
 {
     InitializeComponent();
     zmijica             = new Zmija();
     hranica             = new Hrana();
     timer2.Tick        += Update;
     label1.Visible      = false;
     pictureBox1.Visible = false;
 }
Exemple #2
0
 private void Restart()
 {
     timer2.Stop();
     Refresh();
     pictureBox1.Visible = true;
     label1.Visible      = true;
     label1.BringToFront();
     zmijica  = new Zmija();
     hranica  = new Hrana();
     smer     = "desno";
     rezultat = 0;
 }