예제 #1
0
        public void Start()
        {
            _windowManager = new CustomWindowManager();
            _appViewModel = new AppViewModel( this );
            _windowManager.ShowWindow( _appViewModel, null, null );

            _mainWindow = _appViewModel.GetView( null ) as Window;
            //_interopHelper = new WindowInteropHelper( _mainWindow );
            //RegisterHotKeys();

            _mainWindow.Closing += OnWindowClosing;

            if( HelpService.Status == InternalRunningStatus.Started )
            {
                HelpService.Service.RegisterHelpContent( PluginId, typeof( KeyboardEditor ).Assembly.GetManifestResourceStream( "KeyboardEditor.Resources.helpcontent.zip" ) );
            }
            else if( HelpService.Status.IsStoppedOrDisabled ) HelpService.ServiceStatusChanged += HelpService_ServiceStatusChanged;
        }
예제 #2
0
        public void Start()
        {
            _windowManager = new CustomWindowManager();
            _appViewModel = new AppViewModel( this );
            _windowManager.ShowWindow( _appViewModel, null, null );

            _mainWindow = _appViewModel.GetView( null ) as Window;
            //_interopHelper = new WindowInteropHelper( _mainWindow );
            //RegisterHotKeys();

            _contextSaver = Context.ServiceContainer.GetService<IContextSaver>();

            _sharedDictionary = Context.ServiceContainer.GetService<ISharedDictionary>();

            _mainWindow.Closing += OnWindowClosing;
        }