private void SetFlags(IResourceList resList) { ResourceFlag flag = new ResourceFlag(_flagID); foreach (IResource res in resList) { if (!res.IsDeleted) { flag.SetOnResource(res); } } }
private static void AssignFlags2List(ResourceFlag flag, IResourceList list) { foreach (IResource resource in list) { if (flag != null) { flag.SetOnResource(resource); } else { ResourceFlag.Clear(resource); } } }
static public void SetDefaultFlag(IResource resource) { Guard.NullArgument(resource, "resource"); _defaultFlag.SetOnResource(resource); }
static public void SetCompletedFlag(IResource resource) { Guard.NullArgument(resource, "resource"); _completedFlag.SetOnResource(resource); }