Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ErrorItem.cs
1
using
System;
2
using
System.Windows.Media;
3
using
Waher.Client.WPF.Model
;
4
using
Waher.Things
;
5
6
namespace
Waher.Client.WPF.Controls.SensorData
7
{
11
public
class
ErrorItem
:
ColorableItem
12
{
13
private
readonly
ThingError
error;
14
19
public
ErrorItem
(
ThingError
Error
)
20
: base(Colors.Yellow, Colors.Red)
21
{
22
this.error =
Error
;
23
}
24
28
public
ThingError
Error
=> this.error;
29
33
public
string
Timestamp
34
{
35
get
36
{
37
return
this.error.Timestamp.ToShortDateString() +
", "
+ this.error.Timestamp.ToLongTimeString();
38
}
39
}
40
44
public
string
FieldName
{
get
{
return
string
.Empty; } }
45
49
public
string
Value
50
{
51
get
52
{
53
return
this.error.ErrorMessage;
54
}
55
}
56
60
public
string
Unit
61
{
62
get
63
{
64
return
string
.Empty;
65
}
66
}
67
71
public
string
Status
72
{
73
get
74
{
75
return
"Error"
;
76
}
77
}
78
82
public
string
Type
83
{
84
get
85
{
86
return
string
.Empty;
87
}
88
}
89
90
public
string
Alignment
91
{
92
get
93
{
94
return
"Left"
;
95
}
96
}
97
98
}
99
}
Waher.Client.WPF.Controls.SensorData.ErrorItem
Represents one item in a sensor data readout.
Definition:
ErrorItem.cs:12
Waher.Client.WPF.Controls.SensorData.ErrorItem.Error
ThingError Error
Error message.
Definition:
ErrorItem.cs:28
Waher.Client.WPF.Controls.SensorData.ErrorItem.Unit
string Unit
Unit
Definition:
ErrorItem.cs:61
Waher.Client.WPF.Controls.SensorData.ErrorItem.Timestamp
string Timestamp
Timestamp of event.
Definition:
ErrorItem.cs:34
Waher.Client.WPF.Controls.SensorData.ErrorItem.ErrorItem
ErrorItem(ThingError Error)
Represents one item in a sensor data output.
Definition:
ErrorItem.cs:19
Waher.Client.WPF.Controls.SensorData.ErrorItem.Status
string Status
Status
Definition:
ErrorItem.cs:72
Waher.Client.WPF.Controls.SensorData.ErrorItem.Value
string Value
Value
Definition:
ErrorItem.cs:50
Waher.Client.WPF.Controls.SensorData.ErrorItem.Type
string Type
Type
Definition:
ErrorItem.cs:83
Waher.Client.WPF.Controls.SensorData.ErrorItem.FieldName
string FieldName
Field Name
Definition:
ErrorItem.cs:44
Waher.Client.WPF.Model.ColorableItem
Abstract base class for selectable colorable item.
Definition:
ColorableItem.cs:10
Waher.Things.ThingError
Contains information about an error on a thing
Definition:
ThingError.cs:10
Waher.Client.WPF.Controls.SensorData
Definition:
ErrorItem.cs:7
Waher.Client.WPF.Model
Definition:
ColorableItem.cs:5
Waher.Things
Definition:
AnalogInput.cs:15
IoTGateway
Clients
Waher.Client.WPF
Controls
SensorData
ErrorItem.cs
Generated by
1.9.5