Exemplo n.º 1
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            frmRekordi f = new frmRekordi(this.Location.X, this.Location.Y);

            f.Show();
            this.Hide();
        }
Exemplo n.º 2
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;
                }
            }
        }
Exemplo n.º 3
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     frmRekordi f = new frmRekordi(this.Location.X, this.Location.Y);
     f.Show();
     this.Hide();
 }
Exemplo n.º 4
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;
         }
     }
 }