private void ShowFeedback(ushort value, SetUshortOutputArrayDelegate localDelegate, SetUshortOutputDelegate hxlDelegate) { localDelegate(Output, value); if (Output == HxlPlus.SelectedAudioSettings) { hxlDelegate(value); } }
protected void ParseMatrix(string response, SetUshortOutputArrayDelegate splusOutputArray) { var json = JObject.Parse(response); var matrix = json["matrix"] as JArray; if (matrix == null) { ErrorMessage.Warn("HxlPlus.{0}.Poll() HxlPlus did not return a 'matrix' object in response to {0}", GetType().Name, GetUrl); return; } for (ushort i = 1; i <= OutputCount; i++) { splusOutputArray(i, (ushort)(matrix[i - 1].Value <int>() + 1)); } }
private void ShowFeedback(bool value, SetUshortOutputArrayDelegate localDelegate, SetUshortOutputDelegate hxlDelegate) { ShowFeedback(value.ToUshort(), localDelegate, hxlDelegate); }
public BoolOutputArrayIndexer(SetUshortOutputArrayDelegate setAction) { this.setAction = setAction; }