private void FailGame() { RoundNum = 0; UserLoss = true; UserSteps = false; DisableButtons(); centerCtrl.AllowInput(true); }
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(); }