Class MeasureClassificationViewModel
- Namespace
- Loehnert.Lisrt.TypeAndResult.UserControls.ViewModels
- Assembly
- Loehnert.Lisrt.TypeAndResult.dll
View model for a measurement classification with start and end time.
public class MeasureClassificationViewModel : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged
- Inheritance
-
PropertyChangedBaseMeasureClassificationViewModel
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Properties
Classification
Gets or sets the classification for the measurement.
public Classification? Classification { get; set; }
Property Value
Duration
[DependsOn("StartTime", new string[] { "EndTime" })]
public TimeSpan? Duration { get; }
Property Value
EndTime
Gets or sets the end time as UTC.
public DateTime? EndTime { get; set; }
Property Value
StartTime
Gets or sets the start time as UTC.
public DateTime? StartTime { get; set; }
Property Value
Methods
SetValues(DateTime?, DateTime?, Classification?)
Sets the values.
public void SetValues(DateTime? startTime, DateTime? endTime, Classification? classification)
Parameters
startTime
DateTime?The start time as UTC.
endTime
DateTime?The end time as UTC.
classification
Classification?The classification.