////////////////////////////////////////////////////////////// private void Stop_Click(object sender, EventArgs e) { if (!win && !lose && !trueAnsver && !IsStop && StartGameQ) { IsStop = true; TimeAnsver.Stop(); if (!IsCall) { TimeCallHelp.Stop(); if (CallPictureBox.Visible == true) { isVisibleCall = true; CallPictureBox.Visible = false; CallLabel.Visible = false; } } if (!IsFandF) { } if (!IsHelpRoom) { GroupRoomHelp(false); TimeHelpRoom.Stop(); } player.Stop(); StopVisible(false); } else if (!win && !lose && !trueAnsver && IsStop && StartGameQ) { IsStop = false; TimeAnsver.Start(); StopVisible(true); if (!IsCall) { TimeCallHelp.Start(); if (isVisibleCall == true) { CallPictureBox.Visible = false; CallLabel.Visible = false; } } if (!IsFandF) { Ansver_A.Visible = isButtonV[0]; Ansver_B.Visible = isButtonV[1]; Ansver_C.Visible = isButtonV[2]; Ansver_D.Visible = isButtonV[3]; } if (!IsHelpRoom) { GroupRoomHelp(true); TimeHelpRoom.Start(); } } }
private void HelpRoom_Click(object sender, EventArgs e) { if (IsHelpRoom) { HelpRoomImage(false); IsHelpRoom = false; ZalHelp?.Invoke(this, EventArgs.Empty); TimeAnsver.Stop(); GroupRoomHelp(true); TimeHelpRoom.Start(); player = new SoundPlayer("../../Resurses/sound/begin.wav"); player.Play(); } }