protected ShowPlayerStatusWithDelay ( IAudioPlayer player ) : void | ||
player | IAudioPlayer | |
return | void |
protected void ShowPlayerStatusWithDelay(IAudioPlayer player)
{
if (displayStatusDelayTimer != null)
{
displayStatusDelayTimer.Dispose();
displayStatusDelayTimer = null;
}
displayStatusDelayTimer = new Timer(delegate
{
ShowPlayerStatus(player);
}, null, displayStatusDelay, 0);
}