////////////////////////////////////////////////////////////// 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(); } } }
////////////////////////////////////////////////////////////// #region Call private void HelpCall_Click(object sender, EventArgs e) { if (IsCall) { TimeAnsver.Stop(); CallHelp?.Invoke(this, EventArgs.Empty); player = new SoundPlayer("../../Resurses/sound/zvonok.wav"); player.Play(); CAllHelpImage(false); TimeCallHelp.Start(); IsCall = false; } }