示例#1
0
        private void Exit_Button_Click(object sender, EventArgs e)
        {
            //hide Mode button
            ModeButton.Focus();
            ShowPlayModeButton(false);
            //Show exitForm;
            Point    location = new Point(Location.X + 200, Location.Y + 200);
            ExitForm eform    = new ExitForm(location);

            sound.Play(sound.announce);
            eform.ShowDialog();
        }
示例#2
0
        private void ExitButton_Click(object sender, EventArgs e)
        {
            sound.Play(sound.announce);
            //stop time
            timer.Stop();
            CheckBoard.HideChessBoard(true);
            //Show exit form
            Point    location = new Point(Location.X + 295, Location.Y + 200);
            ExitForm eform    = new ExitForm(location);

            eform.ShowDialog();
            //unpause
            timer.Start();
            CheckBoard.HideChessBoard(false);
            Focus_Panel();
        }