public FREObject HideWindow(FREContext ctx, uint argc, FREObject[] argv)
 {
     if (WinApi.IsWindow(_foundWindow))
     {
         WinApi.ShowWindow(_foundWindow, SW_HIDE);
     }
     return(FREObject.Zero);
 }
 public FREObject SetForegroundWindow(FREContext ctx, uint argc, FREObject[] argv)
 {
     if (WinApi.IsWindow(_foundWindow))
     {
         WinApi.SetForegroundWindow(_foundWindow);
     }
     return(FREObject.Zero);
 }
        public FREObject ShowWindow(FREContext ctx, uint argc, FREObject[] argv)
        {
            var maximise = (bool)new FreObjectSharp(argv[0]).Value;

            if (WinApi.IsWindow(_foundWindow))
            {
                WinApi.ShowWindow(_foundWindow, maximise ? SW_SHOWMAXIMIZED : SW_RESTORE);
            }
            return(FREObject.Zero);
        }
        private FREObject ShowWindow(FREContext ctx, uint argc, FREObject[] argv)
        {
            var maximise = argv[0].AsBool();

            if (WinApi.IsWindow(_foundWindow))
            {
                WinApi.ShowWindow(_foundWindow, maximise ? SW_SHOWMAXIMIZED : SW_RESTORE);
            }

            return(FREObject.Zero);
        }