Пример #1
0
 public GUIDockContentBase FindDockContent <T>() where T : GUIDockContentBase
 {
     if (IsContentNode())
     {
         foreach (var content in m_content)
         {
             if (content is T)
             {
                 return(content);
             }
         }
         return(null);
     }
     else
     {
         var content = m_nodeL.FindDockContent <T>();
         if (content == null)
         {
             return(m_nodeR.FindDockContent <T>());
         }
         else
         {
             return(content);
         }
     }
 }
Пример #2
0
 public GUIDockContentBase FindDockContent <T>() where T : GUIDockContentBase
 {
     return(m_root.FindDockContent <T>());
 }