示例#1
0
        public void StartCheckersGame()
        {
            FormGame      form;
            SettingsLogin formNameLogin = new SettingsLogin();

            formNameLogin.ShowDialog();
            form = new FormGame(formNameLogin);
            while (form.WantsToPlay)
            {
                form.ShowDialog();
                if (!form.StartOverGame)
                {
                    formNameLogin = new SettingsLogin();
                    formNameLogin.ShowDialog();
                }

                form = new FormGame(formNameLogin);
            }
        }