Ejemplo n.º 1
0
 // Select a given patch for later use.
 public void Select(Patch patch)
 {
     foreach (var instance in _instances)
     {
         instance._wiringSelected = patch.IsRepresentationOf(instance);
     }
 }
Ejemplo n.º 2
0
 // Determine the index of a given patch.
 public int GetIndexOf(Patch patch)
 {
     return(Array.FindIndex(
                _instances, i => patch.IsRepresentationOf(i)
                ));
 }