public static DLSettingsForKeyFill Load(string id)
        {
            DLSettingsForKeyFill 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(DLSettingsForKeyFill));
                    returnSettings = (DLSettingsForKeyFill)xms.Deserialize(reader);
                    reader.Close();
                }
                catch {
                    returnSettings = GetNewShowSettings();
                }
            }
            else
            {
                return(GetNewShowSettings());
            }

            return(returnSettings);
        }
 public DLAccessForKeyFill(string uniqueId)
 {
     settings      = DLSettingsForKeyFill.Load(uniqueId);
     this.uniqueId = uniqueId;
 }
        public static DLSettingsForKeyFill GetNewShowSettings()
        {
            var settings = new DLSettingsForKeyFill();

            return(settings);
        }