예제 #1
0
 private void BotStart_Botton_Click(object sender, EventArgs e)
 {
     try
     {
         BackgroundWorker_GetUpdate.RunWorkerAsync();
         BotStart_Botton.BackColor = Color.Olive;
         BotStart_Botton.Text      = " ... در حال اتصال";
         BotStart_Botton.Enabled   = false;
     }
     catch (Exception ex)
     {
         warning_log(ex.Message);
     }
 }
예제 #2
0
 private void BotStop_Botton_Click(object sender, EventArgs e)
 {
     BackgroundWorker_GetUpdate.CancelAsync();
 }