-
Notifications
You must be signed in to change notification settings - Fork 0
/
Product.cs
70 lines (55 loc) · 1.46 KB
/
Product.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using ACS.SPiiPlusNET;
using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;
namespace HorizontalList
{
public class Product : ObservableObject
{
//public Product()
//{
// _api = new Api();
//}
private string _Name;
private string _ControllerIP;
//private int _OutOfPing;
private SolidColorBrush _StatusColor;
public string Name
{
get => _Name;
set => SetProperty(ref _Name, value);
}
public string ControllerIP
{
get => _ControllerIP;
set => SetProperty(ref _ControllerIP, value);
}
public int OutOfPing { get; set; }
public bool midTest { get; set; }
public SolidColorBrush StatusColor
{
get => _StatusColor;
set => SetProperty(ref _StatusColor, value);
}
public string Error
{
get;
set;
}
public Product(string name, string controllerIP, string error = "")
{
Name = name;
ControllerIP = controllerIP;
StatusColor = new SolidColorBrush(Colors.Red);
Error = error;
OutOfPing = 0;
midTest = false;
}
}
}