{ "name": "Maximize/Restore Program B", "language": 0, "code": "using System;\r\nusing System.Drawing;\r\n\r\npublic static class DisplayFusionFunction\r\n{\r\n\tpublic static void Run(IntPtr windowHandle)\r\n\t{\r\n // Set the window title here\r\n\t\tstring windowTitle = \"Notepad++\";\r\n\t\t\r\n\t\t// Find the window by the title\r\n\t\tIntPtr window = BFS.Window.GetWindowByText(\"*\" + windowTitle + \"*\");\r\n\t\t\r\n\t\t// Maximize or restore the window\r\n\t\tif (BFS.Window.IsMaximized(window))\r\n\t\t{\r\n BFS.Window.Restore(window);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n BFS.Window.Maximize(window);\r\n }\t\t\r\n\t}\r\n}", "description": "", "references": "System.Core.dll | System.Data.dll | System.dll | System.Drawing.dll | System.Management.dll | System.Web.dll | System.Windows.Forms.dll | System.Xml.dll" }