Beispiel #1
0
        public static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            FormLoginD newFormLogin = new FormLoginD();
            FormGame   newFormGame  = new FormGame(newFormLogin);

            Application.Run(newFormGame);
        }
Beispiel #2
0
        public FormGame(FormLoginD i_SettingForm)
        {
            m_SettingForm = i_SettingForm;
            if (i_SettingForm.ShowDialog() == DialogResult.OK)
            {
                m_NewOtheloGame = new Game(m_SettingForm.SecondUserIsPC, m_SettingForm.SizeOfBoard);
                this.setButtonMatrixOnForm();
                InitializeComponent();
                this.ClientSize = new System.Drawing.Size((50 * m_SettingForm.SizeOfBoard) + 20, (50 * m_SettingForm.SizeOfBoard) + 20);
            }

            ShowActivePlayerTurn();
            bool start = m_NewOtheloGame.IsMoveExist();

            this.ChangeButtonsStatusOncePotenial();
        }