Пример #1
0
 async void BalanceTimer_Tick(object sender, EventArgs e)
 {
     if (BettingInProgress)
     {
         return;
     }
     await DiceWebAPI.GetBalanceAsync(Session, Currency);
 }
Пример #2
0
        async void BalanceTimer_Tick(object sender)
        {
            if (_model.Session != null)
            {
                GetBalanceResponse response = await DiceWebAPI.GetBalanceAsync(_model.Session, _model.Currency);

                if (response.Success)
                {
                    _model.InitModel();
                }
            }
        }