Ejemplo n.º 1
0
        private void BtnNext_Click(object sender, EventArgs e)
        {
            TmGame.Start();

            NextSong();

            BtnNext.Text     = "Пропустить";
            BtnPause.Enabled = true;
        }
Ejemplo n.º 2
0
        void GameEnd()
        {
            TmGame.Stop();
            WMP.Ctlcontrols.stop();

            if (Convert.ToInt32(LbPlayerPoints1.Text) > Convert.ToInt32(LbPlayerPoints2.Text))
            {
                MessageBox.Show("Игрок " + LbPlayerName1.Text + " победил!");
            }
            else if (Convert.ToInt32(LbPlayerPoints1.Text) < Convert.ToInt32(LbPlayerPoints2.Text))
            {
                MessageBox.Show("Игрок " + LbPlayerName2.Text + " победил!");
            }
            else if (Convert.ToInt32(LbPlayerPoints1.Text) == Convert.ToInt32(LbPlayerPoints2.Text))
            {
                MessageBox.Show("Ничья!");
            }

            Close();
        }
Ejemplo n.º 3
0
 private void FrmGame_FormClosed(object sender, FormClosedEventArgs e)
 {
     TmGame.Stop();
     WMP.Ctlcontrols.stop();
 }
Ejemplo n.º 4
0
 void GameResume()
 {
     TmGame.Start();
     WMP.Ctlcontrols.play();
 }
Ejemplo n.º 5
0
 void GamePause()
 {
     TmGame.Stop();
     WMP.Ctlcontrols.pause();
 }