示例#1
0
        //////////////////////////////////////////////////////////////
        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();
                }
            }
        }
示例#2
0
        private void Exit_tolbar_Click(object sender, FormClosingEventArgs e)
        {
            TimeWindow.Stop();
            TimeColor.Stop();
            TimeHelpRoom.Stop();

            TimeTrueAnsver.Stop();
            TimeCallHelp.Stop();


            ExitGame?.Invoke(this, EventArgs.Empty);
        }
示例#3
0
 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();
     }
 }
示例#4
0
        //////////////////////////////////////////////////////////////
        #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;
            }
        }