Пример #1
0
 private void timerGo_Tick(object sender, EventArgs e)
 {
     Teste.frmRomaInicio comecar = new Teste.frmRomaInicio(nick);
     player.Stop();
     comecar.Show();
     this.Close();
 }
Пример #2
0
        private void btnContinuar_Click(object sender, EventArgs e)
        {
            string[] Cap = uso.DesfragmentarLinha(3, ';', nick);
            player.Stop();
            switch (Convert.ToInt16(Cap[0]))
            {
            case 1: PreHistoria comecar = new PreHistoria(nick);
                comecar.Show();
                break;

            case 2:  frmMeso comecar2 = new frmMeso(nick);
                comecar2.Show();
                break;

            case 3: Teste.frmRomaInicio comecar3 = new Teste.frmRomaInicio(nick);
                comecar3.Show();
                break;

            case 4: Feudo.frmFeudalismo comecar4 = new Feudo.frmFeudalismo(nick);
                comecar4.Show();
                break;

            case 8: _7._1.FuturoBom.FuturoB comecar8 = new _7._1.FuturoBom.FuturoB(nick);
                comecar8.Show();
                break;

            case 9:
                _7._2.FuturoRuim.FuturoR comecar9 = new _7._2.FuturoRuim.FuturoR(nick);
                comecar9.Show();
                break;
            }

            this.Close();
        }
Пример #3
0
        private void Nadar()
        {
            Random rnd  = new Random();
            int    step = rnd.Next(9) + 1;
            int    pos  = pbSpermMain.Location.Y;

            if (pos - step > 125)
            {
                pbSpermMain.Location = new Point(227, pos - step);
                pgsBar.Value        += step;
                plc.table.Rows[0][1] = pgsBar.Value;
            }
            else
            {
                tmr.Stop();
                btnNadar1.Visible    = false;
                btnNadar2.Visible    = false;
                pbSpermMain.Location = new Point(227, 125);
                pgsBar.Value         = pgsBar.Maximum;
                MessageBox.Show("Parabêns, você acaba de ganhar o direito de renascer! \n\n=D", "Ganhou!");

                uso.RescreverLinha(4, nick, "10;0;0;0;0");
                player.Stop();
                switch (Cap)
                {
                case 1: PreHistoria PH = new PreHistoria(nick);
                    PH.Show();
                    break;

                case 2: frmMeso meso = new frmMeso(nick);
                    meso.Show();
                    break;

                case 3: Teste.frmRomaInicio Roma = new Teste.frmRomaInicio(nick);
                    Roma.Show();
                    break;

                case 4: Feudo.frmFeudalismo feudo = new Feudo.frmFeudalismo(nick);
                    feudo.Show();
                    break;

                case 9: _7._2.FuturoRuim.FuturoR r = new _7._2.FuturoRuim.FuturoR(nick);
                    r.Show();
                    break;

                case 8: _7._1.FuturoBom.FuturoB b = new _7._1.FuturoBom.FuturoB(nick);
                    b.Show();
                    break;
                }
                this.Close();
            }
        }