Exemplo n.º 1
0
        void GenView(IMGUIView parentLayout, XmlNode parentNode)
        {
            foreach (XmlNode childNode in parentNode)
            {
                var converter = Converter.GetConverter(childNode.Name);

                var view = converter.Convert <IMGUIView>(childNode);

                var layout = parentLayout as IMGUILayout;

                if (layout != null)
                {
                    layout.AddChild(view);
                }
                else
                {
                    break;
                }

                if (view.Id.IsNotNullAndEmpty())
                {
                    mIdIndex.Add(view.Id, view);
                }

                GenView(view, childNode);
            }
        }
Exemplo n.º 2
0
        public void RemoveChild(IMGUIView view)
        {
            this.PushCommand(() =>
            {
                Children.Remove(view);
                view.Parent = null;
            });

            view.Dispose();
        }
Exemplo n.º 3
0
 public TreeNode Add2Spread(IMGUIView view)
 {
     view.AddTo(mSpreadView);
     return(this);
 }
Exemplo n.º 4
0
 public TreeNode Add2FirstLine(IMGUIView view)
 {
     view.AddTo(mFirstLine);
     return(this);
 }
Exemplo n.º 5
0
 public void RemoveChild(IMGUIView view)
 {
     mChildren.Add(view);
     view.Parent = null;
 }
Exemplo n.º 6
0
 public IMGUILayout AddChild(IMGUIView view)
 {
     mChildren.Add(view);
     view.Parent = this;
     return(this);
 }
Exemplo n.º 7
0
 public void RemoveChild(IMGUIView childView)
 {
     mChildren.Remove(childView);
 }
Exemplo n.º 8
0
 public void AddChild(IMGUIView childView)
 {
     mChildren.Add(childView);
 }
 public static void RemoveChild(this IMGUILayoutRoot self, IMGUIView child)
 {
     self.GetLayout().RemoveChild(child);
 }