private void NextVideoTimer_Tick(object sender, EventArgs e)
{
var state = this.player.playState;
Trace.WriteLine("Timer: " + state);
if (state == WMPLib.WMPPlayState.wmppsReady ||
state == WMPLib.WMPPlayState.wmppsUndefined ||
state == WMPLib.WMPPlayState.wmppsStopped)
{
SetNextVideo();
}
this.btnClose.BringToFront();
if (lastInteraction.AddSeconds(-1) < DateTime.Now)
{
this.btnClose.Visible = false;
}
}