예제 #1
0
 private void AnimacijaIz_Tick(object sender, EventArgs e)
 {
     if (btnNazad.Location.X >= -208)
     {
         btnNazad.Location    = new Point(btnNazad.Location.X - 5, btnNazad.Location.Y);
         lblAutori.Location   = new Point(lblAutori.Location.X + 5, lblAutori.Location.Y);
         linkAdresa.Location  = new Point(linkAdresa.Location.X + 5, linkAdresa.Location.Y);
         lblProjekat.Location = new Point(lblProjekat.Location.X + 5, lblProjekat.Location.Y);
     }
     else
     {
         AnimacijaIz.Stop();
         frmGlavna f = new frmGlavna(this.Location.X, this.Location.Y);
         f.Show();
         this.Hide();
     }
 }
예제 #2
0
 private void AnimacijaIz_Tick(object sender, EventArgs e)
 {
     if (btnNazad.Location.X <= -212)
     {
         btnNazad.Location    = new Point(btnNazad.Location.X - 4, btnNazad.Location.Y);
         btnOsvezi.Location   = new Point(btnOsvezi.Location.X + 5, btnOsvezi.Location.Y);
         lblRekordi.Location  = new Point(lblRekordi.Location.X + 5, lblRekordi.Location.Y);
         dataRekordi.Location = new Point(dataRekordi.Location.X + 5, dataRekordi.Location.Y);
     }
     else
     {
         AnimacijaIz.Stop();
         frmGlavna f = new frmGlavna(this.Location.X, this.Location.Y);
         f.Show();
         this.Hide();
     }
 }
예제 #3
0
        private void AnimacijaIz_Tick(object sender, EventArgs e)
        {
            if (btnZapocni.Location.X < 400)
            {
                btnZapocni.Location = new Point(btnZapocni.Location.X + 5, btnZapocni.Location.Y);
                btnIzadji.Location  = new Point(btnIzadji.Location.X + 5, btnIzadji.Location.Y);
                btnO.Location       = new Point(btnO.Location.X + 5, btnO.Location.Y);
                btnRekordi.Location = new Point(btnRekordi.Location.X + 5, btnRekordi.Location.Y);
            }
            else
            {
                btnZapocni.Enabled = false;
                btnIzadji.Enabled  = false;
                btnO.Enabled       = false;
                btnRekordi.Enabled = false;
                AnimacijaIz.Stop();
                switch (Destinacija)
                {
                case 1:
                    frmIgra g = new frmIgra(this.Location.X, this.Location.Y, client);
                    g.Show();
                    this.Hide();
                    break;

                case 2:
                    frmRekordi r = new frmRekordi(this.Location.X, this.Location.Y, client);
                    r.Show();
                    this.Hide();
                    break;

                case 3:
                    frmO o = new frmO(this.Location.X, this.Location.Y);
                    o.Show();
                    this.Hide();
                    break;
                }
            }
        }