Esempio n. 1
0
        public MainWindow()
        {
            InitializeComponent();

            #if DEBUG
            VimTrace.TraceSwitch.Level = TraceLevel.Info;
            #endif

            _vimComponentHost = new VimComponentHost();
            _vimComponentHost.CompositionContainer.GetExportedValue<DefaultVimHost>().MainWindow = this;

            _textBuffer = _vimComponentHost.TextBufferFactoryService.CreateTextBuffer();
            var textViewHost = CreateTextViewHost();
            _textViewHostList.Add(textViewHost);
            m_dockPanel.Children.Add(textViewHost.HostControl);
        }
Esempio n. 2
0
        public MainWindow()
        {
            InitializeComponent();

#if DEBUG
            VimTrace.TraceSwitch.Level = TraceLevel.Info;
#endif

            _vimComponentHost = new VimComponentHost();
            _vimComponentHost.CompositionContainer.GetExportedValue <DefaultVimHost>().MainWindow = this;

            _textBuffer = _vimComponentHost.TextBufferFactoryService.CreateTextBuffer();
            var textViewHost = CreateTextViewHost();
            _textViewHostList.Add(textViewHost);
            m_dockPanel.Children.Add(textViewHost.HostControl);
        }