using System;
using System.Drawing;
using System.Linq;
using System.Collections.Generic;
public class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
string CurrentProfile = BFS.DisplayFusion.GetCurrentWallpaperProfile();
string selectedMonitorProfile = BFS.Dialog.GetUserInputList("Current Profile: " + CurrentProfile + "\r\r Please select new wallpaper profile:", RemoveCurrentProfile(BFS.DisplayFusion.GetWallpaperProfiles(), CurrentProfile) );
BFS.DisplayFusion.LoadWallpaperProfile(selectedMonitorProfile);
}
private static string[] RemoveCurrentProfile( string[] WallProfiles, string CurrentProfile)
{
List<string> list = WallProfiles.ToList();
list.Remove( CurrentProfile );
WallProfiles = list.ToArray();
return WallProfiles;
}
}