using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
// Set the process name here (leave the asterisk at the start)
string processName = "*ts3client_win64.exe";
// Set the full path to the process here
string processFullPath = @"D:\APPS\TSClient\ts3client_win64.exe";
// Check if the app is running
bool isAppRunning = BFS.Application.IsAppRunningByFile(processName);
if (isAppRunning)
{
// If it's already running, show a message
BFS.Dialog.ShowMessageInfo("App is already running");
}
else
{
// If it's not, then launch it
BFS.Application.Start(processFullPath, "");
}
}
}