Table of Contents

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
PropertyChangedBase
MeasureClassificationViewModel
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Properties

Classification

Gets or sets the classification for the measurement.

public Classification? Classification { get; set; }

Property Value

Classification?

Duration

Gets the duration calculated from StartTime and EndTime.

[DependsOn("StartTime", new string[] { "EndTime" })]
public TimeSpan? Duration { get; }

Property Value

TimeSpan?

EndTime

Gets or sets the end time as UTC.

public DateTime? EndTime { get; set; }

Property Value

DateTime?

StartTime

Gets or sets the start time as UTC.

public DateTime? StartTime { get; set; }

Property Value

DateTime?

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.