Ejemplo n.º 1
0
 public bool TryGetByName(string name, out IPeripheralsGroup group)
 {
     group = ActiveGroups.SingleOrDefault(x => x.Name == name);
     return(group != null);
 }
Ejemplo n.º 2
0
 private void OnDisable()
 {
     ActiveGroups.Remove(this);
 }
Ejemplo n.º 3
0
 public bool TryGetActiveGroupContaining(IPeripheral peripheral, out IPeripheralsGroup group)
 {
     group = ActiveGroups.SingleOrDefault(x => ((PeripheralsGroup)x).Contains(peripheral));
     return(group != null);
 }
Ejemplo n.º 4
0
 private void OnEnable()
 {
     CurrentEntry = null;
     ActiveGroups.Add(this);
 }