Exemple #1
0
        }//pollBalances()

        /// <summary>
        /// Attached to announceBalanceTimer.
        /// Iterate through all balances in dictionary and call announceBalance() for each.
        /// </summary>
        /// <param name="Sender"></param>
        /// <param name="E"></param>
        private void announceBalances(object Sender, EventArgs E)
        {
            foreach (Balance Balance in _balanceList.Values)
            {
                Balance.BalanceAsynchronousTask AnnounceBalance = Balance.announceBalance;
                AnnounceBalance.BeginInvoke(null, null);
            }
        }//announceBalances()
Exemple #2
0
        }//constructPollTimer()

        /// <summary>
        /// Attached to pollBalancesTimer.
        /// Iterate through all balances in dictionary and call performBalanceCheck() for each.
        /// </summary>
        /// <param name="Sender"></param>
        /// <param name="E"></param>
        private void pollBalances(object Sender, EventArgs E)
        {
            foreach (Balance Balance in _balanceList.Values)
            {
                Balance.BalanceAsynchronousTask CheckBalance = Balance.performBalanceCheck;
                CheckBalance.BeginInvoke(null, null);
            }
        }//pollBalances()