////////////////////////////////////////////////////////////// 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 Exit_tolbar_Click(object sender, FormClosingEventArgs e) { TimeWindow.Stop(); TimeColor.Stop(); TimeHelpRoom.Stop(); TimeTrueAnsver.Stop(); TimeCallHelp.Stop(); ExitGame?.Invoke(this, EventArgs.Empty); }
public void OnTickCallHelp(object sender, EventArgs e) { nowTimeCall += 1; if (nowTimeCall >= endTimeCall / 2 && CallPictureBox.Visible == false) { CallLableGroup(true, Ansver); } if (nowTimeCall >= endTimeCall) { TimeAnsver.Start(); CallLableGroup(false, ""); TimeCallHelp.Stop(); } }