/// <summary> /// Clears the pins. /// </summary> /// <param name="type">Type.</param> public void ClearPins(PinType type) { Pins.RemoveAll(o => o.Type == type); if (OnPinsUpdated != null) { OnPinsUpdated.Invoke(this, new ControllerPinUpdateArgs(null, UpdateOperation.Clear)); } if (type == PinType.DIGITAL) { ClearSequences(); } else if (type == PinType.ANALOG) { ClearMeasurementCombinations(); } }