using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
IntPtr window_by_file = BFS.Application.GetMainWindowByFile ("*Firefox*");
IntPtr window_by_title = BFS.Window.GetWindowByText ("*Firefox*");
decimal alpha = BFS.Window.GetTransparency(BFS.Window.GetWindowByText("*Firefox*"));
if (alpha < 100m)
{
alpha = 100m;
}
else
{
alpha = 2m;
}
//alpha = Math.Round(alpha/10) * 10m;
BFS.Window.SetTransparency(BFS.Window.GetWindowByText("*Firefox*"), Math.Floor(alpha));
}
}