예제 #1
0
        // --------------------------------------------------------------------------------------------
        /// <summary>
        /// Initializes the tool window with the specified style and initial hierarchy.
        /// </summary>
        // --------------------------------------------------------------------------------------------
        public override void OnToolWindowCreated()
        {
            base.OnToolWindowCreated();
            __UIHWINFLAGS flags = 0;

            // ReSharper disable AccessToModifiedClosure
            _Attributes.ForEach(attr => flags |= attr.StyleFlag);
            // ReSharper restore AccessToModifiedClosure
            SetUIWindowStyle(ref flags);
            object unkObj;

            _InitialHierarchy = CreateInitialHierarchy();
            if (_InitialHierarchy != null)
            {
                _Hierarchies.Add(_InitialHierarchy);
            }
            HierarchyWindow.Init(_InitialHierarchy, (uint)flags, out unkObj);
            Site(_InitialHierarchy);
        }
예제 #2
0
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Sets the style of the hierarchy window.
 /// </summary>
 /// <param name="style">Style to set</param>
 /// <remarks>
 /// Override this method to set style flags manually.
 /// </remarks>
 // --------------------------------------------------------------------------------------------
 protected virtual void SetUIWindowStyle(ref __UIHWINFLAGS style)
 {
 }