Exemplo n.º 1
0
 public virtual bool AddDynamicChild(UControl child)
 {
     if (child == this)
     {
         return(false);
     }
     child.Parent = this;
     StaticChilds.Remove(child);
     DynamicChilds.Add(child);
     return(true);
 }
Exemplo n.º 2
0
 // 添加自对象
 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);
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 protected void ClearChilds()
 {
     StaticChilds.Clear();
     DynamicChilds.Clear();
     CellChilds.Clear();
 }