Ejemplo n.º 1
0
        private void Playbuttonbox_Click(object sender, EventArgs e)
        {
            RunningState = true;

            timer2.Start();
            timer3.Start();
            SkillTimer1.Start();
            SkillTimer2.Start();
            SkillTimer3.Start();
            SkillTimer4.Start();
            RespawnTimer.Start();
            HpTimer.Start();

            Timer2Runtime = DateTime.Now;
            Timer3Runtime = DateTime.Now;

            PauseButtonBox.Enabled = true;
            Playbuttonbox.Enabled  = false;
        }
Ejemplo n.º 2
0
        private void PauseButtonBox_Click(object sender, EventArgs e)
        {
            TimeSpan timer2span = DateTime.Now - Timer2Runtime;
            TimeSpan timer3span = DateTime.Now - Timer3Runtime;

            Timer2SpanTime += Convert.ToInt32(timer2span.TotalMilliseconds);
            Timer3SpanTime += Convert.ToInt32(timer3span.TotalMilliseconds);

            timer2.Stop();
            timer3.Stop();
            SkillTimer1.Stop();
            SkillTimer2.Stop();
            SkillTimer3.Stop();
            SkillTimer4.Stop();
            HpTimer.Stop();
            RespawnTimer.Stop();

            RunningState           = false;
            PauseButtonBox.Enabled = false;
            Playbuttonbox.Enabled  = true;
        }