コード例 #1
0
ファイル: Form1.cs プロジェクト: nlpsl202/API
 private void GetTickets_API_Stop_btn_Click(object sender, EventArgs e)
 {
     checkBox1.Enabled = true;
     checkBox2.Enabled = true;
     label3.Text       = "批次已停止";
     GetTickets_timer.Stop();
     GetTickets_API_Start_btn.Enabled = true;
     GetTickets_API_Stop_btn.Enabled  = false;
 }
コード例 #2
0
 private void GetTickets_API_Start_btn_Click(object sender, EventArgs e)
 {
     if (!checkBox1.Checked && !checkBox2.Checked)
     {
         MessageBox.Show("請勾選商品代碼");
         return;
     }
     label3.Text = "批次執行中......";
     GetTickets_timer.Start();
     checkBox1.Enabled = false;
     checkBox2.Enabled = false;
     GetTickets_API_Start_btn.Enabled = false;
     GetTickets_API_Stop_btn.Enabled  = true;
     GetTickets_timer_Tick(null, null);
 }