internal SandboxEditMonitorHelper(SandboxEditMonitor editMonitor, bool fSuspendMonitor) { EditMonitor = editMonitor; if (fSuspendMonitor) { EditMonitor.StopMonitoring(); SuspendedMonitor = true; } }
public SandboxBase(FdoCache cache, Mediator mediator, IVwStylesheet ss, InterlinLineChoices choices) : this() { // Override things from InitializeComponent() BackColor = Color.FromKnownColor(KnownColor.Control); // Setup member variables. m_caches.MainCache = cache; Cache = cache; m_mediator = mediator; // We need to set this for various inherited things to work, // for example, automatically setting the correct keyboard. WritingSystemFactory = cache.LanguageWritingSystemFactoryAccessor; m_caches.CreateSecCache(); m_choices = choices; m_stylesheet = ss; // this is really redundant now it inherits a StyleSheet property. StyleSheet = ss; m_editMonitor = new SandboxEditMonitor(this); // after creating sec cache. if (mediator != null && mediator.PropertyTable != null) { mediator.PropertyTable.SetProperty("FirstControlToHandleMessages", this, false, PropertyTable.SettingsGroup.LocalSettings); mediator.PropertyTable.SetPropertyPersistence("FirstControlToHandleMessages", false); } UIAutomationServerProviderFactory = () => new SimpleRootSiteDataProvider(this, fragmentRoot => RootSiteServices.CreateUIAutomationInvokeButtons(fragmentRoot, RootBox, OpenComboBox)); }