protected void SyncReceiver(string receiverID) { List <string> receiverTargetChoices = new List <string>(); receiverTargetChoices.Add("None"); if (receivingAtom != null && receiverID != null) { receiver = receivingAtom.GetStorableByID(receiverID); if (receiver != null) { foreach (string floatParam in receiver.GetFloatParamNames()) { receiverTargetChoices.Add(floatParam); } } else if (receiverID != "None") { _missingReceiverStoreId = receiverID; } } else { receiver = null; } receiverTargetJSON.choices = receiverTargetChoices; receiverTargetJSON.val = "None"; }
public override IEnumerable <string> GetParameterNames(JSONStorable s) { foreach (var n in s.GetFloatParamNames()) { yield return(n); } }