void IInitializable.Initialize() { m_control = new TerrainEditorControl(); ControlInfo cinfo = new ControlInfo("Terrain Editor", "Edit terrain properties", StandardControlGroup.Right); m_controlHostService.RegisterControl(m_control, cinfo, null); m_contextRegistry.ActiveContextChanged += ContextRegistry_ActiveContextChanged; }
void IInitializable.Initialize() { m_control = new TerrainEditorControl(); ControlInfo cinfo = new ControlInfo("Terrain Editor", "Edit terrain properties", StandardControlGroup.Right); m_controlHostService.RegisterControl(m_control, cinfo, null); m_contextRegistry.ActiveContextChanged += ContextRegistry_ActiveContextChanged; m_settingsService.RegisterSettings( this, new BoundPropertyDescriptor(this, () => SplitterDistance, "SplitterDistance", null, null)); m_mainForm.Loaded += (sender, e) => m_control.SplitterDistance = m_splitterDistance; }