SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
BlockEntry.cs
Go to the documentation of this file.
1 using System;
2 using System.ComponentModel;
3 
4 namespace SeciUserInterface.Dialogs.Alerts
5 {
6  class BlockEntry : INotifyPropertyChanged
7  {
8  String _name;
9  String _type;
10  String _lowLimit;
11  String _highLimit;
12  Boolean _enabled;
13 
14  public String Configuration { get; set; }
15 
16  public String Name {
17  get
18  {
19  return _name;
20  }
21  set
22  {
23  _name = value;
24  OnPropertyChanged("Name");
25  }
26  }
27 
28  public String Type
29  {
30  get
31  {
32  return _type;
33  }
34  set
35  {
36  _type = value;
37  OnPropertyChanged("Type");
38  }
39  }
40 
41  public String LowLimit
42  {
43  get
44  {
45  return _lowLimit;
46  }
47  set
48  {
49  _lowLimit = value;
50  OnPropertyChanged("LowLimit");
51  }
52  }
53 
54  public String HighLimit
55  {
56  get
57  {
58  return _highLimit;
59  }
60  set
61  {
62  _highLimit = value;
63  OnPropertyChanged("HighLimit");
64  }
65  }
66 
67  public Boolean Enabled
68  {
69  get
70  {
71  return _enabled;
72  }
73  set
74  {
75  _enabled = value;
76  OnPropertyChanged("Enabled");
77  }
78  }
79 
80  public event PropertyChangedEventHandler PropertyChanged;
81 
82  public BlockEntry(String name, String type, String low, String high, Boolean enabled, string config)
83  {
84  _name = name;
85  _type = type;
86  _lowLimit = low;
87  _highLimit = high;
88  _enabled = enabled;
89  Configuration = config;
90  }
91 
92  protected void OnPropertyChanged(string name)
93  {
94  PropertyChangedEventHandler handler = PropertyChanged;
95  if (handler != null)
96  {
97  handler(this, new PropertyChangedEventArgs(name));
98  }
99  }
100  }
101 }
BlockEntry(String name, String type, String low, String high, Boolean enabled, string config)
Definition: BlockEntry.cs:82
PropertyChangedEventHandler PropertyChanged
Definition: BlockEntry.cs:80