forked from Slazanger/SMT
-
Notifications
You must be signed in to change notification settings - Fork 1
/
StaticJumpOverlay.cs
81 lines (70 loc) · 1.67 KB
/
StaticJumpOverlay.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
71
72
73
74
75
76
77
78
79
80
81
using System.ComponentModel;
using System.Windows.Media;
namespace SMT
{
public class StaticJumpOverlay : INotifyPropertyChanged
{
private bool m_Active;
private string m_Name;
private Color m_OverlayColour;
private string m_System;
public event PropertyChangedEventHandler PropertyChanged;
public bool Active
{
get
{
return m_Active;
}
set
{
m_Active = value;
OnPropertyChanged("Active");
}
}
public EVEData.EveManager.JumpShip JumpShip { get; set; }
public string Name
{
get
{
return m_Name;
}
set
{
m_Name = value;
OnPropertyChanged("Name");
}
}
public Color OverlayColour
{
get
{
return m_OverlayColour;
}
set
{
m_OverlayColour = value;
OnPropertyChanged("OverlayColour");
}
}
public string System
{
get
{
return m_System;
}
set
{
m_System = value;
OnPropertyChanged("System");
}
}
protected void OnPropertyChanged(string name)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (handler != null)
{
handler(this, new PropertyChangedEventArgs(name));
}
}
}
}