private DiscreteSubscription CreateDiscreteSubscription( IDiscretMeasuringElementViewModel discretMeasuringElement, IMeasuringElement measuringElement, string groupName, DeviceContext deviceContext) { return(new DiscreteSubscription(measuringElement as IDiscretMeasuringElement, discretMeasuringElement, deviceContext, groupName)); }
public DiscreteSubscription(IDiscretMeasuringElement discretMeasuringElement, IDiscretMeasuringElementViewModel discretMeasuringElementViewModel, DeviceContext deviceContext, string groupName) { DiscretMeasuringElement = discretMeasuringElement; _discretMeasuringElementViewModel = discretMeasuringElementViewModel; _deviceContext = deviceContext; GroupName = groupName; }