Пример #1
0
 private DiscreteSubscription CreateDiscreteSubscription(
     IDiscretMeasuringElementViewModel discretMeasuringElement, IMeasuringElement measuringElement,
     string groupName, DeviceContext deviceContext)
 {
     return(new DiscreteSubscription(measuringElement as IDiscretMeasuringElement, discretMeasuringElement,
                                     deviceContext, groupName));
 }
Пример #2
0
 public DiscreteSubscription(IDiscretMeasuringElement discretMeasuringElement,
                             IDiscretMeasuringElementViewModel discretMeasuringElementViewModel, DeviceContext deviceContext,
                             string groupName)
 {
     DiscretMeasuringElement           = discretMeasuringElement;
     _discretMeasuringElementViewModel = discretMeasuringElementViewModel;
     _deviceContext = deviceContext;
     GroupName      = groupName;
 }