Beispiel #1
0
 protected bool Equals(LightGroup other)
 {
     if (other == null)
     {
         return(false);
     }
     return(Id.Equals(other.Id));
 }
Beispiel #2
0
        public LightGroup CreateGroup(Action <LightGroup> initialize = null)
        {
            var init       = initialize ?? (lg => { });
            var lightGroup = new LightGroup(this)
            {
                Id = Guid.NewGuid()
            };

            init(lightGroup);
            _groups.Add(lightGroup);
            return(lightGroup);
        }
Beispiel #3
0
 public void RemoveGroup(LightGroup lightGroup)
 {
     _groups.Remove(lightGroup);
 }
Beispiel #4
0
 private LightGroup AddGroup(LightGroup group)
 {
     _groups.Add(group);
     return(group);
 }