示例#1
0
 private void btnRefreshBalance_Click(object sender, RoutedEventArgs e)
 {
     _getBalance = null;
     btnRefreshBalance.IsEnabled = false;
     prgProgreso.IsIndeterminate = true;
     _balanceWorker.RunWorkerAsync();
 }
示例#2
0
 private void worker_DoWork(object sender, DoWorkEventArgs e)
 {
     checkLogin = currentSite.Login(username, password, twofactor);
     if (checkLogin.status)
     {
         checkBalance = currentSite.Balance();
     }
 }
示例#3
0
 private void tipWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     _tip = null;
     _tip = _CurrentSite.Tip(_payee, _tipAmount);
     if (_tip.status)
     {
         _balance = _tip.balance;
     }
 }
示例#4
0
 private void BalanceWorkerOnDoWork(object sender, DoWorkEventArgs doWorkEventArgs)
 {
     _getBalance = _CurrentSite.Balance();
 }