Exemple #1
0
 private void btnStart_Click(object sender, EventArgs e)
 {
     if (btnStart.Text.Equals("开始"))
     {
         btnStart.Text      = "暂停";
         btnStart.ForeColor = Color.Red;
         if (!Regex.IsMatch(txtGameTime.Text, pattern))
         {
             lblInputInfo.Visible = true;
             return;
         }
         string[] nowGameTime = txtGameTime.Text.Split(':', ':');
         gameTime.SetGametime(nowGameTime[0], nowGameTime[1]);
         summonerFlashTime.StartInput(lblTopETA, lblJgETA, lblMidETA, lblAdcETA, lblSupETA);
         timer1.Enabled = true;
     }
     else
     {
         timer1.Enabled     = false;
         btnStart.Text      = "开始";
         btnStart.ForeColor = Color.OliveDrab;
     }
 }