Example #1
0
        public MyApp(IWindowAttacher windowAttacher, INotifier notifier, IScreenHelper screenHelper, Container container)
        {
            //var d = new DebugWindow(screenHelper);
            //d.Show();

            var t = new VideoTest();

            t.Show();

            _windowAttacher = windowAttacher;
            _notifier       = notifier;
            _container      = container;

            if (!Directory.Exists(BDMTConstants.WORKSPACE_NAME))
            {
                Directory.CreateDirectory(BDMTConstants.WORKSPACE_NAME);
            }

            if (!File.Exists(BDMTConstants.WORKSPACE_PATH + BDMTConstants.NOTIFICATION_SOUND_FILE))
            {
                File.WriteAllBytes(BDMTConstants.WORKSPACE_PATH + BDMTConstants.NOTIFICATION_SOUND_FILE, BDMultiTool.Properties.Resources.notifySound);
            }

            minimized = false;

            _windowAttacher.Attach(WindowAttacher.GetHandleByWindowTitleBeginningWith("BLACK DESERT"));

            appCoreIsInitialized = true;

            HookManager.KeyPress += HookManagerOnKeyPress;

            //letAllComponentsRegister();
        }