Exemplo n.º 1
0
        public IntelliSenseDisplay()
        {
            Debug.Print("### Thread creating IntelliSenseDisplay: " + Thread.CurrentThread.ManagedThreadId);

            _current         = this;
            _functionInfoMap = new Dictionary <string, IntelliSenseFunctionInfo>(StringComparer.CurrentCultureIgnoreCase);
            // TODO: Need a separate thread for UI Automation Client - event subscriptions should not be on main UI thread.

            _syncContextMain = new WindowsFormsSynchronizationContext();

            _addInReferences = new List <string>();
        }
Exemplo n.º 2
0
        public IntelliSenseDisplay()
        {
            Debug.Print("### Thread creating IntelliSenseDisplay: " + Thread.CurrentThread.ManagedThreadId);

            _current = this;
            _functionInfoMap = new Dictionary<string, IntelliSenseFunctionInfo>(StringComparer.CurrentCultureIgnoreCase);
            // TODO: Need a separate thread for UI Automation Client - event subscriptions should not be on main UI thread.

            _syncContextMain = new WindowsFormsSynchronizationContext();

            _addInReferences = new List<string>();
        }
        // TODO: Others

        public IntelliSenseHelper()
        {
            Logger.Initialization.Verbose("IntelliSenseHelper Constructor Begin");
            _syncContextMain = new WindowsFormsSynchronizationContext();
            _uiMonitor       = new UIMonitor(_syncContextMain);
            _display         = new IntelliSenseDisplay(_syncContextMain, _uiMonitor);

            _providers = new List <IIntelliSenseProvider>
            {
                new ExcelDnaIntelliSenseProvider(_syncContextMain),
            };

            RegisterIntellisense();
            Logger.Initialization.Verbose("IntelliSenseHelper Constructor End");
        }
Exemplo n.º 4
0
        readonly UIMonitor _uiMonitor; // We want the UIMonitor here, because we might hook up other display enhancements

        #endregion Fields

        #region Constructors

        // TODO: Others
        public IntelliSenseHelper()
        {
            Logger.Initialization.Verbose("IntelliSenseHelper Constructor Begin");
            _syncContextMain = new WindowsFormsSynchronizationContext();
            _uiMonitor = new UIMonitor(_syncContextMain);
            _display = new IntelliSenseDisplay(_syncContextMain, _uiMonitor);

            _providers = new List<IIntelliSenseProvider>
            {
                new ExcelDnaIntelliSenseProvider(_syncContextMain),
                new WorkbookIntelliSenseProvider(),
            };

            RegisterIntellisense();
            Logger.Initialization.Verbose("IntelliSenseHelper Constructor End");
        }
Exemplo n.º 5
0
        public void Shutdown()
        {
            Debug.Print("Shutdown!");
            if (_current != null)
            {
                try
                {
                    _current.Dispose();
                }
                catch (Exception ex)
                {
                    Debug.Print("!!! Error during Shutdown: " + ex);
                }

                _current = null;
            }
        }
Exemplo n.º 6
0
        // TODO: Others

        public IntelliSenseHelper()
        {
            _id = new IntelliSenseDisplay();
            _id.SetXllOwner(ExcelDnaUtil.XllPath);
            RegisterIntellisense();
        }
Exemplo n.º 7
0
 // TODO: Others
 public IntelliSenseHelper()
 {
     _id = new IntelliSenseDisplay();
     _id.SetXllOwner(ExcelDnaUtil.XllPath);
     RegisterIntellisense();
 }
Exemplo n.º 8
0
        public void Shutdown()
        {
            Debug.Print("Shutdown!");
            if (_current != null)
            {
                try
                {
                    _current.Dispose();
                }
                catch (Exception ex)
                {
                    Debug.Print("!!! Error during Shutdown: " + ex);
                }

                _current = null;
            }
        }