Exemplo n.º 1
0
        public void LoadSettings()
        {
            string s = P2pProxyApp.MySettings.GetSetting("dlna", "udn", Guid.NewGuid().ToString());

            serialNumber = s;
            udn          = Guid.Parse(s);

            var label = P2pProxyApp.MySettings.GetSetting("dlna", "label", "P2pProxy DLNA");

            friendlyName = label + " (" + Environment.MachineName + ")";

            _maxAge = P2pProxyApp.MySettings.GetSetting("dlna", "max-age", 148);

            _ssdport = P2pProxyApp.MySettings.GetSetting("dlna", "port", 1900);

            UpnpSettings = new UpnpSettingManager(P2pProxyApp.MySettings.GetSetting("dlna", "profile", "default"));
            Filter       = ContentFilter.Load();
        }
Exemplo n.º 2
0
 public void UpdateFilter()
 {
     Filter = ContentFilter.Load();
 }