Пример #1
0
 public TestRunner(IAssetGuidManager AssetGuidManager, IScreenStateThread ScreenStateThread, IFeatureDetectionThread FeatureDetectionThread,
                   IRunnerFactory RunnerFactory, IPluginLoader PluginLoader, IRuntimeSettings RuntimeSettings, IRuntimeAssetManager RuntimeAssetManager)
 {
     this.AssetGuidManager       = AssetGuidManager;
     this.ScreenStateThread      = ScreenStateThread;
     this.FeatureDetectionThread = FeatureDetectionThread;
     this.RunnerFactory          = RunnerFactory;
     this.PluginLoader           = PluginLoader;
     this.RuntimeSettings        = RuntimeSettings;
     this.RuntimeAssetManager    = RuntimeAssetManager;
 }
Пример #2
0
        public VisualizationPainter(IMouseRobot MouseRobot, IFeatureDetectionThread FeatureDetectionThread, IScreenStateThread ScreenStateThread)
        {
            this.FeatureDetectionThread = FeatureDetectionThread;
            this.ScreenStateThread      = ScreenStateThread;
            this.MouseRobot             = MouseRobot;

            FeatureDetectionThread.PositionFound += OnPositionFound;
            ScreenStateThread.Update             += OnUpdate;

            m_ObservedScreen = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb);

            Invalidate?.Invoke();
        }
Пример #3
0
        public RunnerFactory(IUnityContainer Container, IPluginLoader PluginLoader, ILogger Logger,
                             IFeatureDetectionThread FeatureDetectionThread, IAssetGuidManager AssetGuidManager)
        {
            this.Container              = Container;
            this.PluginLoader           = PluginLoader;
            this.Logger                 = Logger;
            this.AssetGuidManager       = AssetGuidManager;
            this.FeatureDetectionThread = FeatureDetectionThread;

            PluginLoader.UserDomainReloaded += OnDomainReloaded;

            CollectNativeRunners();
            CollectUserRunners();
        }
Пример #4
0
        public MouseRobot(IScriptManager ScriptManager, ITestRunner TestRunner, IRecordingManager RecordingManager, IRuntimeSettings RuntimeSettings,
                          IScreenStateThread ScreenStateThread, IFeatureDetectionThread FeatureDetectionThread, ISettingsManager SettingsManager,
                          IInputCallbacks InputCallbacks, IPluginLoader PluginLoader, IStatusManager StatusManager)
        {
            this.ScriptManager          = ScriptManager;
            this.TestRunner             = TestRunner;
            this.RecordingManager       = RecordingManager;
            this.RuntimeSettings        = RuntimeSettings;
            this.ScreenStateThread      = ScreenStateThread;
            this.FeatureDetectionThread = FeatureDetectionThread;
            this.SettingsManager        = SettingsManager;
            this.InputCallbacks         = InputCallbacks;
            this.PluginLoader           = PluginLoader;
            this.StatusManager          = StatusManager;

            ScriptManager.NewScript();
            TestRunner.TestRunEnd += OnScriptFinished;
        }
Пример #5
0
 public ImageCommandRunner(IFeatureDetectionThread FeatureDetectionThread, IRuntimeAssetManager RuntimeAssetManager, ILogger Logger)
 {
     this.RuntimeAssetManager = RuntimeAssetManager;
     this.Logger = Logger;
     this.FeatureDetectionThread = FeatureDetectionThread;
 }
Пример #6
0
 public RuntimeSettings(IScreenStateThread ScreenStateThread, IFeatureDetectionThread FeatureDetectionThread)
 {
     this.ScreenStateThread      = ScreenStateThread;
     this.FeatureDetectionThread = FeatureDetectionThread;
 }
Пример #7
0
        public MainForm(IUnityContainer Container, IMouseRobot MouseRobot, IScreenPaintForm ScreenPaintForm, IFeatureDetectionThread FeatureDetectionThread, ISettingsManager SettingsManager,
                        IScriptManager ScriptManager, IAssetManager AssetManager, IHierarchyWindow HierarchyWindow, IPropertiesWindow PropertiesWindow, IScreenPreviewWindow ScreenPreviewWindow,
                        IAssetsWindow AssetsWindow, IProfilerWindow ProfilerWindow, IInspectorWindow InspectorWindow, IScreenStateThread ScreenStateThread, IInputCallbacks InputCallbacks,
                        IProjectSelectionDialog ProjectSelectionDialog, IConsoleWindow ConsoleWindow, IStatusManager StatusManager, ITestFixtureManager TestFixtureManager,
                        ITestRunnerWindow TestRunnerWindow, ITestRunner TestRunner)
        {
            this.Container = Container;

            this.MouseRobot             = MouseRobot;
            this.ScreenPaintForm        = ScreenPaintForm;
            this.FeatureDetectionThread = FeatureDetectionThread;
            this.SettingsManager        = SettingsManager;
            this.ScriptManager          = ScriptManager;
            this.AssetManager           = AssetManager;
            this.ScreenStateThread      = ScreenStateThread;
            this.InputCallbacks         = InputCallbacks;
            this.StatusManager          = StatusManager;
            this.TestFixtureManager     = TestFixtureManager;
            this.TestRunner             = TestRunner;

            this.m_HierarchyWindow     = HierarchyWindow;
            this.m_PropertiesWindow    = PropertiesWindow;
            this.m_ScreenPreviewWindow = ScreenPreviewWindow;
            this.m_AssetsWindow        = AssetsWindow;
            this.m_ProfilerWindow      = ProfilerWindow;
            this.m_InspectorWindow     = InspectorWindow;
            this.m_ConsoleWindow       = ConsoleWindow;
            this.m_TestRunnerWindow    = TestRunnerWindow;

            this.ProjectSelectionDialog = ProjectSelectionDialog;

            MouseRobot.AsyncOperationOnUI = AsyncOperationManager.CreateOperation(null);

            InitializeComponent();
            AutoScaleMode    = AutoScaleMode.Dpi;
            this.WindowState = FormWindowState.Maximized;

            //ShowSplashScreen(2000);

            ((Form)ScreenPaintForm).Owner = this;

            PutLayoutWindowsInArray();
            SetWindowTheme(this.vS2015DarkTheme1, emptyLayout: true);

            DockLayout.Windows = m_Windows;
            DockLayout.Restore(m_DockPanel);

            visualStudioToolStripExtender.DefaultRenderer = new ToolStripProfessionalRenderer();

            actionOnRec.SelectedIndex  = 2;
            actionOnPlay.SelectedIndex = 2;

            InputCallbacks.InputEvent += OnInputEvent;

            m_AssetsWindow.AssetSelected         += OnAssetSelected;
            m_HierarchyWindow.OnSelectionChanged += ShowSelectedObjectInInspector;

            MouseRobot.RecordingStateChanged     += OnRecordingStateChanged;
            MouseRobot.PlayingStateChanged       += OnPlayingStateChanged;
            MouseRobot.VisualizationStateChanged += OnVisualizationStateChanged;

            StatusManager.StatusUpdated += OnStatusUpdated;

            TestFixtureManager.FixtureAdded   += OnFixtureAdded;
            TestFixtureManager.FixtureRemoved += OnFixtureRemoved;

            this.Activated += (x, y) => AssetManager.Refresh();

            ((Form)ScreenPaintForm).Show();
        }