Exemplo n.º 1
0
 private void SwitchButtonText()
 {
     if (btnScan.InvokeRequired)
     {
         SwitchButtonTextCB d = new SwitchButtonTextCB(SwitchButtonText);
         this.Invoke(d);
     }
     else
     {
         if (scanning == true)
         {
             btnScan.Text = Language.strButtonStop;
         }
         else
         {
             btnScan.Text = Language.strButtonScan;
         }
     }
 }
Exemplo n.º 2
0
 private void SwitchButtonText()
 {
     if (btnScan.InvokeRequired)
     {
         SwitchButtonTextCB d = new SwitchButtonTextCB(SwitchButtonText);
         this.Invoke(d);
     }
     else
     {
         if (scanning == true)
         {
             btnScan.Text = Language.strButtonStop;
         }
         else
         {
             btnScan.Text = Language.strButtonScan;
         }
     }
 }