public string GetAngle(string msg) { int index = Msgs.FindIndex(el => el == msg); if (index >= 0) { CurrentIndex = index; } return(Angles[CurrentIndex]); }
public string GetGroup(string msg) { int index = Msgs.FindIndex(el => el == msg); if (index >= 0) { CurrentIndex = index; } return(Groups[CurrentIndex]); }
public double GetValue(string msg) { int index = Msgs.FindIndex(el => el == msg); if (index >= 0) { CurrentIndex = index; } return(Values[CurrentIndex]); }