private void UiManagerOnShowToolWindow(EAlphaToolKind _eAlphaToolKind) { foreach (var alphaTool in m_manager.DockableContents.OfType <AlphaTool>()) { if (alphaTool.Descriptor.Kind == _eAlphaToolKind) { m_manager.ActiveContent = alphaTool; alphaTool.Show(m_manager); return; } } var descriptor = UiManager.GetDescriptor(_eAlphaToolKind); var tool = new AlphaTool(descriptor); m_manager.MainDocumentPane.Items.Add(tool); }
private void UiManagerOnShowToolWindow(EAlphaToolKind _eAlphaToolKind) { foreach (var alphaTool in m_manager.DockableContents.OfType<AlphaTool>()) { if (alphaTool.Descriptor.Kind == _eAlphaToolKind) { m_manager.ActiveContent = alphaTool; alphaTool.Show(m_manager); return; } } var descriptor = UiManager.GetDescriptor(_eAlphaToolKind); var tool = new AlphaTool(descriptor); m_manager.MainDocumentPane.Items.Add(tool); }