1using System.ComponentModel;
11 public class FieldModel(
Field Field) : INotifyPropertyChanged
18 public string Name => this.field.
Name;
23 public bool Writable => this.field.
Writable;
38 public DateTime Timestamp => this.field.
Timestamp;
43 public string ValueString
48 return DT.Value.ToShortDateString() +
", " + DT.Value.ToLongTimeString();
50 return D.Value.ToShortDateString();
90 bool NameChanged = this.field.Name != value.
Name;
91 bool WritableChanged = this.field.Writable != value.Writable;
92 bool QoSChanged = this.field.QoS != value.QoS;
93 bool TypeChanged = this.field.Type != value.Type;
94 bool TimestampChanged = this.field.Timestamp != value.Timestamp;
95 bool ValueStringChanged = this.field.ValueString != value.ValueString;
100 this.RaisePropertyChanged(nameof(this.Name));
103 this.RaisePropertyChanged(nameof(this.Writable));
106 this.RaisePropertyChanged(nameof(this.QoS));
109 this.RaisePropertyChanged(nameof(this.Type));
111 if (TimestampChanged)
112 this.RaisePropertyChanged(nameof(this.Timestamp));
114 if (ValueStringChanged)
115 this.RaisePropertyChanged(nameof(this.ValueString));
119 private void RaisePropertyChanged(
string Name)
123 this.PropertyChanged?.Invoke(
this,
new PropertyChangedEventArgs(Name));
134 public event PropertyChangedEventHandler? PropertyChanged;
Static class managing the application event log. Applications and services log events on this static ...
static void Exception(Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
Logs an exception. Event type will be determined by the severity of the exception.
Represents a boolean value that can be either true or false.
Represents a date and optional time value.
Represents a duration value. Duration values adhere to the type specified by xsd:duration.
Base class for all sensor data fields.
FieldQoS QoS
Field Quality of Service flags.
FieldType Type
Field Type flags.
abstract string ValueString
String representation of field value.
string Name
Unlocalized field name.
DateTime Timestamp
Timestamp of field value.
bool Writable
If the field corresponds to a control parameter with the same name.
Represents a 32-bit integer value.
Represents a 64-bit integer value.
Represents a physical quantity value.
Represents a time value. Time values adhere to the type specified by xsd:time.
TextAlignment
Text alignment of contents.
HorizontalAlignment
Horizontal alignment
FieldQoS
Field Quality of Service flags
FieldType
Field Type flags