Exemplo n.º 1
0
        private bool matchAllMembers(string[] arrValues)
        {
            List <AppCategory> list = AppCategory.GetAllWithoutGeneral();

            foreach (AppCategory ac in list)
            {
                if (notInMemberType(ac, arrValues))
                {
                    return(false);
                }
            }
            return(true);
        }
Exemplo n.º 2
0
        public Boolean IsClose(Type ownerType)
        {
            if (this.Status == AppInstallerStatus.Stop.Id)
            {
                return(true);
            }

            if (this.Status == AppInstallerStatus.Run.Id)   // 默认状态
            {
                return(!(this.CatId == AppCategory.General || AppCategory.GetByCatId(this.CatId).TypeFullName.Equals(ownerType.FullName)));
            }

            // 自定义
            return(AppMemberShip.IsAppStop(this.Id, ownerType));
        }
Exemplo n.º 3
0
 private bool notInMemberType(AppCategory ac, string[] arrValues)
 {
     foreach (String val in arrValues)
     {
         if (strUtil.IsNullOrEmpty(val))
         {
             continue;
         }
         if (val.Trim().Equals(ac.TypeFullName))
         {
             return(false);
         }
     }
     return(true);
 }
Exemplo n.º 4
0
        private bool valIsDefault(AppInstaller installer, string postValues)
        {
            String[] arrValues = postValues.Split(',');

            // 通用的程序
            if (installer.CatId == AppCategory.General)
            {
                return(matchAllMembers(arrValues));
            }
            else
            {
                AppCategory ac = AppCategory.GetByCatId(installer.CatId);
                return(ac.TypeFullName.Equals(postValues.Trim()));
            }
        }
Exemplo n.º 5
0
 private bool notInMemberType( AppCategory ac, string[] arrValues )
 {
     foreach (String val in arrValues) {
         if (strUtil.IsNullOrEmpty( val )) continue;
         if (val.Trim().Equals( ac.TypeFullName )) return false;
     }
     return true;
 }