Example #1
0
 private void btnNextScan_Click(object sender, EventArgs e)
 {
     try
     {
         if (btnNextScan.Text == "Next Scan")
         {
             memoryHelper.InitNextScanMemoryHandler((string)cbCompareTypeList.SelectedItem);
             setButtons(false);
             btnNextScan.Enabled = true;
             btnNextScan.Text    = CONSTANT.STOP;
             bwNextScan.RunWorkerAsync();
         }
         else if (btnNextScan.Text == CONSTANT.STOP)
         {
             bwNextScan.CancelAsync();
         }
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message);
     }
 }