Example #1
0
 public void Connect()
 {
     _connection    = new XConnection(_ip, _port, _username, _password);
     _eventListener = new XEventListener(_ip, 9090);
     _eventListener.OnXEventReceived += new XEventReceivedEventHandler(eventListener_OnXEventReceived);
     _eventListener.Connect();
 }
Example #2
0
        private void WindowLoaded(object sender, RoutedEventArgs e)
        {
            _Connection = new XConnection("192.168.1.105", 8080, "xbmc", "test");
            _Connection.AudioLibrary.GetArtists(null, GetArtistsCallback);
            _Connection.VideoLibrary.GetMovies(null, GetMoviesCallback);
            _Connection.VideoLibrary.GetTvShows(null, GetTvShowsCallback);

            var eventListener = new XEventListener("192.168.1.105", 9090);

            eventListener.OnXEventReceived += new XEventReceivedEventHandler(eventListener_OnXEventReceived);
            eventListener.Connect();
        }