Example #1
0
        private void Connect()
        {
            connection = new XConnection(mXbmcSettings.XbmcIpAddress,mXbmcSettings.XbmcIpPort,mXbmcSettings.XbmcUserName,mXbmcSettings.XbmcUserPassword);

            WireEventListener();
        }
        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();
        }