public KaraokePane(ContextPage context_page) { ShowBorder = false; ShowTabs = false; this.context_page = context_page; timer = new Timer(TimerTimedOut, null, System.Threading.Timeout.Infinite, System.Threading.Timeout.Infinite); ServiceManager.PlayerEngine.ConnectEvent(OnTrackChange, PlayerEvent.StateChange); ServiceManager.PlayerEngine.ConnectEvent(OnSeek, PlayerEvent.Seek); disconnected = new Label(AddinManager.CurrentLocalizer.GetString( "You are disconnected from the internet, so karaoke lyrics are not available.")); Add(disconnected); ShowAll(); }
public KaraokePane(ContextPage context_page) { ShowBorder = false; ShowTabs = false; this.context_page = context_page; timer = new Timer (TimerTimedOut, null, System.Threading.Timeout.Infinite, System.Threading.Timeout.Infinite); ServiceManager.PlayerEngine.ConnectEvent (OnTrackChange, PlayerEvent.StateChange); ServiceManager.PlayerEngine.ConnectEvent (OnSeek, PlayerEvent.Seek); disconnected = new Label (AddinManager.CurrentLocalizer.GetString ( "You are disconnected from the internet, so karaoke lyrics are not available.")); Add (disconnected); ShowAll (); }