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>(); }
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"); }
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"); }
public void Shutdown() { Debug.Print("Shutdown!"); if (_current != null) { try { _current.Dispose(); } catch (Exception ex) { Debug.Print("!!! Error during Shutdown: " + ex); } _current = null; } }
// TODO: Others public IntelliSenseHelper() { _id = new IntelliSenseDisplay(); _id.SetXllOwner(ExcelDnaUtil.XllPath); RegisterIntellisense(); }