Here are the examples of the csharp api System.Collections.Generic.List.IndexOf(Tone) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
19
Source : MainSiren.cs
with GNU Lesser General Public License v3.0
from friendsincode
with GNU Lesser General Public License v3.0
from friendsincode
internal void nextTone()
{
currentTone.SetState(false);
//OverflowCatch
if (MainTones.IndexOf(currentTone) + 1 >= MainTones.Count) currentTone = MainTones[0];
else
{
currentTone = MainTones[MainTones.IndexOf(currentTone) + 1];
if (_enable) currentTone.SetState(true);
}
}
19
Source : MainSiren.cs
with GNU Lesser General Public License v3.0
from friendsincode
with GNU Lesser General Public License v3.0
from friendsincode
internal void previousTone()
{
currentTone.SetState(false);
//Underflow Check
if (MainTones.IndexOf(currentTone) - 1 < 0) currentTone = MainTones[MainTones.Count-1];
else
{
currentTone = MainTones[MainTones.IndexOf(currentTone) - 1];
if (_enable) currentTone.SetState(true);
}
}