Beispiel #1
0
        public static DLSettingsForDual Load(string id)
        {
            DLSettingsForDual returnSettings = null;
            var    name = System.AppDomain.CurrentDomain.FriendlyName;
            string adp  = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\" + name;

            adp += "\\" + id + "-decklink_settings.xml";
            if (File.Exists(adp))
            {
                try {
                    StreamReader  reader = new StreamReader(adp);
                    XmlSerializer xms    = new XmlSerializer(typeof(DLSettingsForDual));
                    returnSettings = (DLSettingsForDual)xms.Deserialize(reader);
                    reader.Close();
                }
                catch {
                    returnSettings = GetNewShowSettings();
                }
            }
            else
            {
                return(GetNewShowSettings());
            }

            return(returnSettings);
        }
Beispiel #2
0
        public static DLSettingsForDual GetNewShowSettings()
        {
            var settings = new DLSettingsForDual();

            return(settings);
        }
Beispiel #3
0
 public DLAccessForDual(string uniqueId)
 {
     settings      = DLSettingsForDual.Load(uniqueId);
     this.uniqueId = uniqueId;
 }