Example #1
0
        private void pbO_Click(object sender, EventArgs e)
        {
            frmO f = new frmO(this.Location.X, this.Location.Y);

            f.Show();
            this.Hide();
        }
Example #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;
                }
            }
        }
Example #3
0
 private void pbO_Click(object sender, EventArgs e)
 {
     frmO f = new frmO(this.Location.X, this.Location.Y);
     f.Show();
     this.Hide();
 }
Example #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;
         }
     }
 }