Exemplo n.º 1
0
        public void Init()
        {
            ClearFanart();

            // if no Streamlist found, load a new List from Web
            if (!StreamlistUpdate.StreamListExists())
            {
                WebradioDlgLoadUpdate.LoadSenderListe();
                return; // Update runs async
            }

            DefaultImage = "DefaultLogo.png";
            StreamlistUpdate.CheckUpdate();
            var ms = MyStreams.Read(StreamlistUpdate.StreamListFile);

            StreamList = ms.Streams;
            FillItemList(StreamList);
        }
Exemplo n.º 2
0
        public static void CheckUpdate()
        {
            if (OfflineVersion() >= OnlineVersion())
            {
                return;
            }
            var mode = ServiceRegistration.Get <ISettingsManager>().Load <WebradioSettings>().StreamlistUpdateMode;

            if (mode == "Manually")
            {
                MakeUpdate();
            }

            if (mode == "Automatically")
            {
                WebradioDlgLoadUpdate.LoadSenderListe();
            }
        }