コード例 #1
0
ファイル: KeyboardEditor.cs プロジェクト: rit3k/ck-certified
        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;
        }