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