Пример #1
0
        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);
        }
Пример #2
0
        public static void Minimize(this Window window)
        {
            var pInvoke = new PlatformInvoke();

            pInvoke.Minimize(window.GetHandle());
        }