private bool matchAllMembers(string[] arrValues) { List <AppCategory> list = AppCategory.GetAllWithoutGeneral(); foreach (AppCategory ac in list) { if (notInMemberType(ac, arrValues)) { return(false); } } return(true); }
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)); }
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); }
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())); } }
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; }