Exemple #1
0
 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;
 }
Exemple #2
0
        private DateTimeMeasuringElementViewModel CreateDateTimeMeasuringElementViewModel(
            DateTimeMeasuringElement dateTimeMeasuringElement, string groupName)
        {
            var res = new DateTimeMeasuringElementViewModel();

            res.Id        = dateTimeMeasuringElement.Id;
            res.Header    = dateTimeMeasuringElement.Name;
            res.GroupName = groupName;
            return(res);
        }