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