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
startTimeDateTime?The start time as UTC.
endTimeDateTime?The end time as UTC.
classificationClassification?The classification.