Exemple #1
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);
        }
Exemple #2
0
        protected UMutexer AddMutexer(bool isNeedReset, bool isShowOne, params UControl[] controls)
        {
            if (controls == null)
            {
                return(null);
            }
            foreach (var item in controls)
            {
                if (!item.IsCanBeViewFetch)
                {
                    CLog.Error("错误:{0}不能作为View的控件", item.GOName);
                    return(null);
                }
            }
            var temp = new UMutexer(controls, isNeedReset, isShowOne);

            Mutexers.Add(temp);
            foreach (var item in controls)
            {
                Controls.Remove(item);
            }
            return(temp);
        }