Esempio n. 1
0
 protected override void InternalExecute(ICommandAdapter adapter){
     EasyTestTracer.Tracer.InProcedure(Name);
     var windowHandle = GetWindowHandle();
     var windowSize = SetActiveWindowSizeCommand.GetWindowSize(Parameters.MainParameter.Value);
     if (adapter.IsWinAdapter())
         WindowAutomation.ResizeWindow(windowHandle, windowSize);
     else{
         var setActiveWindowSizeCommand = new SetActiveWindowSizeCommand();
         setActiveWindowSizeCommand.Parameters.MainParameter=Parameters.MainParameter;
         setActiveWindowSizeCommand.Execute(adapter);
     }
     WindowAutomation.MoveWindow(windowHandle, new Point(0, 0));
     EasyTestTracer.Tracer.OutProcedure(Name);
 }
Esempio n. 2
0
        protected override void InternalExecute(ICommandAdapter adapter)
        {
            EasyTestTracer.Tracer.InProcedure(Name);
            var windowHandle = GetWindowHandle();
            var windowSize   = SetActiveWindowSizeCommand.GetWindowSize(Parameters.MainParameter.Value);

            if (adapter.IsWinAdapter())
            {
                WindowAutomation.ResizeWindow(windowHandle, windowSize);
            }
            else
            {
                var setActiveWindowSizeCommand = new SetActiveWindowSizeCommand();
                setActiveWindowSizeCommand.Parameters.MainParameter = Parameters.MainParameter;
                setActiveWindowSizeCommand.Execute(adapter);
            }
            WindowAutomation.MoveWindow(windowHandle, new Point(0, 0));
            EasyTestTracer.Tracer.OutProcedure(Name);
        }