public WriteDateTimeCommand(IDateTimeMeasuringElementViewModel dateTimeMeasuringElementViewModel, IDateTimeMeasuringElement dateTimeMeasuringElement, DeviceContext deviceContext, bool isSystemTime) : base() { this._dateTimeMeasuringElementViewModel = dateTimeMeasuringElementViewModel as DateTimeMeasuringElementViewModel; this._dateTimeMeasuringElement = dateTimeMeasuringElement; this._deviceContext = deviceContext; this._isSystemTime = isSystemTime; }
private DateTimeMeasuringElementViewModel CreateDateTimeMeasuringElementViewModel( DateTimeMeasuringElement dateTimeMeasuringElement, string groupName) { var res = new DateTimeMeasuringElementViewModel(); res.Id = dateTimeMeasuringElement.Id; res.Header = dateTimeMeasuringElement.Name; res.GroupName = groupName; return(res); }