Пример #1
0
        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);
        }
Пример #2
0
 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);
 }