public virtual bool AddDynamicChild(UControl child) { if (child == this) { return(false); } child.Parent = this; StaticChilds.Remove(child); DynamicChilds.Add(child); return(true); }
// 添加自对象 public virtual bool AddStaticChild(UControl child) { if (child == this) { return(false); } if (!child.IsIndependent) { CLog.Error("错误! 无法添非独立组件 "); return(false); } child.Parent = this; StaticChilds.Add(child); return(true); }
public UMutexer AddMutexer(bool isNeedReset, bool isShowOne, params UControl[] controls) { if (controls == null) { return(null); } var temp = new UMutexer(controls, isNeedReset, isShowOne); Mutexers.Add(temp); foreach (var item in controls) { StaticChilds.Remove(item); } return(temp); }
protected void ClearChilds() { StaticChilds.Clear(); DynamicChilds.Clear(); CellChilds.Clear(); }