using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run() { string monitorProfile = "Home-Dev"; string theme = "EyeSaverFinal"; string localAppData = System.Environment.GetEnvironmentVariable("LOCALAPPDATA"); BFS.DisplayFusion.LoadMonitorProfile(monitorProfile); BFS.Application.Start(localAppData + "\\Microsoft\\Windows\\Themes\\" + theme + ".theme", ""); BFS.General.ThreadWait(5000); IntPtr windowHandle = BFS.Window.GetWindowByText("Personalization"); BFS.Window.Close(windowHandle); } }