Exemple #1
0
 public TabView(TabView copy)
     : this
     (
         copy.Name,
         copy.GuiSize,
         (GuiFrame)copy.ButtonFrame.Clone(),
         copy.ButtonFramePosition,
         (GuiFrame)copy.ContextFrame.Clone(),
         copy.ContextFramePosition,
         copy.AllowEmpty
     )
 {
 }
Exemple #2
0
        public void RegisterWithTabView(TabView tabView)
        {
            if (mFrame != null)
            {
                mFrame.Parent = tabView;

                this.AddOnActivatedAction(delegate() {
                    tabView.ActivateTab(this);
                });

                this.AddOnDeactivatedAction(delegate() {
                    tabView.ClearContextFrame();
                });
            }
        }