Пример #1
0
 protected bool Equals(LightGroup other)
 {
     if (other == null)
     {
         return(false);
     }
     return(Id.Equals(other.Id));
 }
Пример #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);
        }
Пример #3
0
 public void RemoveGroup(LightGroup lightGroup)
 {
     _groups.Remove(lightGroup);
 }
Пример #4
0
 private LightGroup AddGroup(LightGroup group)
 {
     _groups.Add(group);
     return(group);
 }