using System;
using System.Drawing;
using System.Collections.Generic;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
// Get the list of all functions
string[] allFunctions = BFS.DisplayFusion.GetFunctions();
// Build a new list with only the Window Position Profile functions
List<string> wppFunctions = new List<string>();
foreach (string function in allFunctions)
{
if (function.Contains("Load Window Position Profile"))
{
string wppName = function.Replace("Load Window Position Profile: ", "");
wppFunctions.Add(wppName);
}
}
// Show the list so the user can choose one
string selectedProfile = "Load Window Position Profile: " + BFS.Dialog.GetUserInputListViewWithFilter("Choose the Window Position Profile to load", wppFunctions.ToArray());
//BFS.Dialog.ShowMessageInfo(selectedProfile);
// Load the selected profile
BFS.DisplayFusion.RunFunction(selectedProfile);
}
}