public static bool Run(this FileInfo fileInfo, string arguments, string userName, string password) { if (fileInfo.Exists) { var pInvoke = new PlatformInvoke(); return(pInvoke.RunProgram(fileInfo.FullName, arguments, userName, password)); } return(false); }
public static void Minimize(this Window window) { var pInvoke = new PlatformInvoke(); pInvoke.Minimize(window.GetHandle()); }