IsRepresentationOf() public method

public IsRepresentationOf ( Wiring instance ) : bool
instance Wiring
return bool
コード例 #1
0
 // Select a given patch for later use.
 public void Select(Patch patch)
 {
     foreach (var instance in _instances)
     {
         instance._wiringSelected = patch.IsRepresentationOf(instance);
     }
 }
コード例 #2
0
ファイル: PatchManager.cs プロジェクト: keijiro/OscKlak
 // Select a given patch for later use.
 public void Select(Patch patch)
 {
     foreach (var instance in _instances)
         instance._wiringSelected = patch.IsRepresentationOf(instance);
 }
コード例 #3
0
 // Determine the index of a given patch.
 public int GetIndexOf(Patch patch)
 {
     return(Array.FindIndex(
                _instances, i => patch.IsRepresentationOf(i)
                ));
 }
コード例 #4
0
ファイル: PatchManager.cs プロジェクト: keijiro/OscKlak
 // Determine the index of a given patch.
 public int GetIndexOf(Patch patch)
 {
     return Array.FindIndex(
         _instances, i => patch.IsRepresentationOf(i)
     );
 }