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(); }
private void FrmGame_FormClosed(object sender, FormClosedEventArgs e) { TmGame.Stop(); WMP.Ctlcontrols.stop(); }
void GamePause() { TmGame.Stop(); WMP.Ctlcontrols.pause(); }