public ComplexParametrViewModel(ComplexParametrElement chEl) { _ccelm = chEl; Value = new ChannelViewModel(_ccelm.Value); Discrets = new ChannelViewModel(_ccelm.Discrets); DiscretsLow = new ChannelViewModel(_ccelm.DiscretsLow); DiscretsHigh = new ChannelViewModel(_ccelm.DiscretsHigh); RangeLow = new ChannelViewModel(_ccelm.RangeLow); RangeHigh = new ChannelViewModel(_ccelm.RangeHigh); SetpointLow = new ChannelViewModel(_ccelm.SetpointLow); SetpointHigh = new ChannelViewModel(_ccelm.SetpointHigh); BreakLow = new ChannelViewModel(_ccelm.BreakLow); BreakHigh = new ChannelViewModel(_ccelm.BreakHigh); Gisteresis = new ChannelViewModel(_ccelm.Gisteresis); Break = new ChannelViewModel(_ccelm.Break); SpLow = new ChannelViewModel(_ccelm.SpLow); SpHigh = new ChannelViewModel(_ccelm.SpHigh); Error = new ChannelViewModel(_ccelm.Error); foreach (IChannel ch in _ccelm.Channels) { ch.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(ch_PropertyChanged); } }
public QComplexChannelViewModel(ComplexParametrElement _chel) : base(_chel) { }