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); } }
public void RemoveChild(IMGUIView view) { this.PushCommand(() => { Children.Remove(view); view.Parent = null; }); view.Dispose(); }
public TreeNode Add2Spread(IMGUIView view) { view.AddTo(mSpreadView); return(this); }
public TreeNode Add2FirstLine(IMGUIView view) { view.AddTo(mFirstLine); return(this); }
public void RemoveChild(IMGUIView view) { mChildren.Add(view); view.Parent = null; }
public IMGUILayout AddChild(IMGUIView view) { mChildren.Add(view); view.Parent = this; return(this); }
public void RemoveChild(IMGUIView childView) { mChildren.Remove(childView); }
public void AddChild(IMGUIView childView) { mChildren.Add(childView); }
public static void RemoveChild(this IMGUILayoutRoot self, IMGUIView child) { self.GetLayout().RemoveChild(child); }