Exemplo n.º 1
0
 private void WireEventListener()
 {
     var eventListener = new XEventListener(mXbmcSettings.XbmcIpAddress, mXbmcSettings.XbmcEventPort);
     eventListener.OnXEventReceived += new XEventReceivedEventHandler(eventListener_OnXEventReceived);
     eventListener.Connect();
 }
Exemplo n.º 2
0
        private void WindowLoaded(object sender, RoutedEventArgs e)
        {
            mConnection = new XConnection(ipAddress, port, userName, password);
            mConnection.AudioLibrary.GetAlbums(null, GetArtistsCallback);
            //mConnection.VideoLibrary.GetMovies(null, GetMoviesCallback);
            //mConnection.VideoLibrary.GetTvShows(null, GetTvShowsCallback);

            var eventListener = new XEventListener(ipAddress, 9090);
            eventListener.OnXEventReceived += new XEventReceivedEventHandler(eventListener_OnXEventReceived);
            eventListener.Connect();
        }