public virtual bool AddDynamicChild(UControl child) { if (child == this) { return(false); } child.Parent = this; StaticChilds.Remove(child); DynamicChilds.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); }