Пример #1
0
        private void FailGame()
        {
            RoundNum = 0;

            UserLoss = true;

            UserSteps = false;

            DisableButtons();

            centerCtrl.AllowInput(true);
        }
Пример #2
0
        private void MainFrm_Load(object sender, EventArgs e)
        {
            SimonControl sc = new SimonControl(Simon.Properties.Resources.Center_OFF,
                                               Simon.Properties.Resources.Center_ON,
                                               "beep0");

            this.Controls.Add(sc);

            sc.pfCallback = StartButtonPress;

            sc.Size     = Simon.Properties.Resources.Center_OFF.Size;
            sc.Location = new Point(ClientSize.Width / 2 - sc.Width / 2, ClientSize.Height / 2 - sc.Height - 2);

            centerCtrl = sc;

            centerCtrl.AllowInput(true);

            InitializeButtons();
        }