public static void LoadValues(string currentProfile) { headerFont1 = SharedSettings.HeaderFont1(currentProfile); headerFont2 = SharedSettings.HeaderFont2(currentProfile); valueFont = SharedSettings.ValueFont(currentProfile); headerFontColor1 = SharedSettings.HeaderFontColor1(currentProfile); headerFontColor2 = SharedSettings.HeaderFontColor2(currentProfile); valuesFontColor = SharedSettings.ValuesFontColor(currentProfile); headerFont1Position = SharedSettings.HeaderFont1Position(currentProfile); headerFont2Position = SharedSettings.HeaderFont2Position(currentProfile); valuesFontPosition = SharedSettings.ValuesFontPosition(currentProfile); backgroundFillColor = SharedSettings.BackgroundFillColor(currentProfile); headerFontSize1 = int.Parse(SharedSettings.HeaderFontSize1(currentProfile).ToString()); headerFontSize2 = int.Parse(SharedSettings.HeaderFontSize2(currentProfile).ToString()); valueFontSize = int.Parse(SharedSettings.ValueFontSize(currentProfile).ToString()); displayBrightness = int.Parse(SharedSettings.DisplayBrightness(currentProfile).ToString()); framesToProcess = int.Parse(SharedSettings.FramesToProcess(currentProfile).ToString()); animFramerate = int.Parse(SharedSettings.AnimFramerate(currentProfile).ToString()); imageName = SharedSettings.ImageName(currentProfile); animName = SharedSettings.AnimName(currentProfile); isAnimationEnabled = SharedSettings.IsAnimationEnabled(currentProfile); //clock settings timeFont = SharedSettings.TimeFontType(); colonFont = SharedSettings.ColonFontType(); dateFont = SharedSettings.DateFontType(); timeFontSize = int.Parse(SharedSettings.TimeFontSize().ToString()); colonFontSize = int.Parse(SharedSettings.ColonFontSize().ToString()); dateFontSize = int.Parse(SharedSettings.DateFontSize().ToString()); timeFontColor = SharedSettings.TimeFontColor(); colonFontColor = SharedSettings.ColonFontColor(); dateFontColor = SharedSettings.DateFontColor(); clockBackgroundColor = SharedSettings.ClockBackgroundColor(); isCompactView = SharedSettings.IsCompactView(); isDateShown = SharedSettings.IsDateShown(); timePosition = int.Parse(SharedSettings.TimePosition().ToString()); colonPosition = int.Parse(SharedSettings.ColonPosition().ToString()); datePosition = int.Parse(SharedSettings.DatePosition().ToString()); //create file list of fonts in fontDir fontList = new List <string> { }; foreach (var font in Directory.GetFiles(SharedSettings.fontDir)) { fontList.Add((Path.GetFileNameWithoutExtension(font))); } //create file list of images in staticImgDir imageList = new List <string> { }; foreach (var img in Directory.GetFiles(SharedSettings.staticImgDir)) { if (img.Contains(".png")) { imageList.Add((Path.GetFileNameWithoutExtension(img))); } } //create file list of videos in animationImgDir animList = new List <string> { }; foreach (var vid in Directory.GetFiles(SharedSettings.animationImgDir)) { if (vid.Contains(".mp4")) { animList.Add((Path.GetFileNameWithoutExtension(vid))); } } //create list of available StreamDeckMonitor colors string[] colors = { "Beige", "Black", "Blue", "Brown", "Cyan", "Gold", "Green", "Grey", "HoneyDew", "Khaki", "Lime", "Mint", "Olive", "Orange", "Pink", "Purple", "Red", "Salmon", "Silver", "SkyBlue", "Teal", "White", "Yellow" }; colorList = new List <string> { }; foreach (var color in colors) { colorList.Add(color); } //create list of profiles string[] profiles = { "Profile 1", "Profile 2", "Profile 3" }; profileList = new List <string> { }; foreach (var profile in profiles) { profileList.Add(profile); } }