public void ReadEPGInfo(object sender, DoWorkEventArgs e)
        {
            XmlSerializer e2eventlist_serializer = new XmlSerializer(typeof(e2eventlist));
            XDocument document;
            string result;

            result = SSHUtils.SSHExecute("wget -q -O - http://" + settings.DreamboxAddressSetting + "/web/epgservice?sRef=" + HttpUtility.UrlEncode(e.Argument.ToString()));
            System.Diagnostics.Debug.WriteLine(result);
            document = XDocument.Parse(result);
            e2eventlist = (e2eventlist)e2eventlist_serializer.Deserialize(document.CreateReader());
        }
        public void ReadNowrunningAndTimers(object sender, DoWorkEventArgs e)
        {
            BackgroundWorker worker = sender as BackgroundWorker;

            XmlSerializer e2servicelistrecursive_serializer = new XmlSerializer(typeof(e2servicelistrecursive));
            XmlSerializer e2eventlist_serializer = new XmlSerializer(typeof(e2eventlist));
            XmlSerializer e2timerlist_serializer = new XmlSerializer(typeof(e2timerlist));
            XDocument document;
            string result;

            SSHUtils.SSHConnect();

            worker.ReportProgress(30);

            // Get all services to read the current bouquet reference (bRef)

            result = SSHUtils.SSHExecute("wget -q -O - http://" + settings.DreamboxAddressSetting + "/web/getallservices");
            System.Diagnostics.Debug.WriteLine(result);
            document = XDocument.Parse(result);
            e2servicelistrecursive = (e2servicelistrecursive)e2servicelistrecursive_serializer.Deserialize(document.CreateReader());

            worker.ReportProgress(50);

            // Get the 'now running' information using the bRef

            result = SSHUtils.SSHExecute("wget -q -O - http://" + settings.DreamboxAddressSetting + "/web/epgnow?bRef=" + HttpUtility.UrlEncode(e2servicelistrecursive.e2bouquet.e2servicereference));
            System.Diagnostics.Debug.WriteLine(result);
            document = XDocument.Parse(result);
            e2eventlist = (e2eventlist)e2eventlist_serializer.Deserialize(document.CreateReader());

            worker.ReportProgress(80);

            // Get the timer list

            result = SSHUtils.SSHExecute("wget -q -O - http://" + settings.DreamboxAddressSetting + "/web/timerlist");
            System.Diagnostics.Debug.WriteLine(result);
            document = XDocument.Parse(result);
            e2timerlist = (e2timerlist)e2timerlist_serializer.Deserialize(document.CreateReader());
        }