Exemplo n.º 1
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.º 2
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()));
            }
        }