private OscChannel selectedChannel; //< Channel to get messages public void SelectChannel(OscChannel.Name channelName) { oscilloscope.trigger.ledSelected.State = false; if (selectedChannel != null) { selectedChannel.ledSelected.State = false; } selectedChannel = oscilloscope.GetChannel(channelName); selectedChannel.ledSelected.State = true; updateHelp = true; }
/// <summary>Get channel by name</summary> public OscChannel GetChannel(OscChannel.Name channelName) { return(oscChannels[(int)channelName % oscChannels.Length]); }
/// <summary>Set channel for this trigger</summary> public void SetChannel(OscChannel.Name channelName) { channel = oscilloscope.GetChannel(channelName); OnPlugHandle(); }