public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
// Start Outlook
BFS.Application.StartMaximized ("C:\\Program Files\\Microsoft Office\\root\\Office16\\OUTLOOK.EXE", "/select outlook:Inspections");
// Move Inspections window to main monitor
BFS.Window.MoveToMonitorMaximized(BFS.Monitor.GetPrimaryMonitorID(), BFS.Window.GetWindowByText("Inspections*"));
}
}public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
// Get the AppID for AutoCAD
bool appID = BFS.Application.IsAppRunningByAppID(BFS.Application.GetAppIDByFile("*acad.exe"));
//Check to see if another instance of AutoCAD is running. If it is, leave the wallpaper off
if (appID) BFS.DisplayFusion.LoadWallpaperProfile("None");
//If AutoCAD has completely shutdown, restore the normal wallpaper
else BFS.DisplayFusion.LoadWallpaperProfile("Span");
}
}