IsRepresentationOf() public method

public IsRepresentationOf ( Wiring instance ) : bool
instance Wiring
return bool
Esempio 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);
     }
 }
Esempio n. 2
0
 // Select a given patch for later use.
 public void Select(Patch patch)
 {
     foreach (var instance in _instances)
         instance._wiringSelected = patch.IsRepresentationOf(instance);
 }
Esempio n. 3
0
 // Determine the index of a given patch.
 public int GetIndexOf(Patch patch)
 {
     return(Array.FindIndex(
                _instances, i => patch.IsRepresentationOf(i)
                ));
 }
Esempio n. 4
0
 // Determine the index of a given patch.
 public int GetIndexOf(Patch patch)
 {
     return Array.FindIndex(
         _instances, i => patch.IsRepresentationOf(i)
     );
 }