Beispiel #1
0
 public void AddToGroup(string name)
 {
     if (String.IsNullOrEmpty(name))
     {
         throw new ArgumentException("Name should not be null or empty");
     }
     _group = _system.Sources.GetOrCreateGroup(name);
 }
Beispiel #2
0
        internal SourceGroup GetOrCreateGroup(string groupName)
        {
            if (!_groups.ContainsKey(groupName))
            {
                _groups[groupName] = new SourceGroup(this, groupName);
            }

            return(_groups[groupName]);
        }
Beispiel #3
0
 public void RemoveFromGroup()
 {
     _group = null;
 }