コード例 #1
0
        private void btnAddPlayer_Click(object sender, EventArgs e)
        {
            //open add player form
            FrmAddPlayer addPlayer = new FrmAddPlayer();

            addPlayer.Show();

            //close game form
            this.Close();
        }
コード例 #2
0
        private void lklblNewGame_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            //for a new game set the date to today.
            GameDate.Date = Convert.ToDateTime(DateTime.Today.Date.ToShortDateString().ToString());
            MessageBox.Show("Game Created", "New Game", MessageBoxButtons.OK, MessageBoxIcon.Information);

            //add a new player and close this screen.
            FrmAddPlayer objAdd = new FrmAddPlayer();

            objAdd.Show();
            this.Close();
        }