Toasts – Blame information for rev 49
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
41 | office | 1 | using System; |
2 | using System.Collections.Generic; |
||
3 | using System.ComponentModel; |
||
4 | using System.Drawing; |
||
5 | using System.Linq; |
||
6 | using System.Runtime.CompilerServices; |
||
7 | using System.Text; |
||
8 | using System.Threading.Tasks; |
||
9 | |||
10 | namespace Toasts |
||
11 | { |
||
12 | public class ToastDisplayData : INotifyPropertyChanged |
||
13 | { |
||
49 | office | 14 | private string _userAgent; |
41 | office | 15 | private string _title; |
16 | private string _body; |
||
17 | private bool _enableChime; |
||
18 | private byte[] _chime; |
||
19 | private int _lingerTime; |
||
20 | private Image _image; |
||
21 | private string _content; |
||
43 | office | 22 | private float _contentHeight; |
23 | private Point _pinPoint; |
||
24 | private bool _enablePin; |
||
25 | |||
41 | office | 26 | public string Title |
27 | { |
||
28 | get => _title; |
||
29 | set |
||
30 | { |
||
31 | if (value == _title) return; |
||
32 | _title = value; |
||
33 | OnPropertyChanged(); |
||
34 | } |
||
35 | } |
||
36 | |||
37 | public string Body |
||
38 | { |
||
39 | get => _body; |
||
40 | set |
||
41 | { |
||
42 | if (value == _body) return; |
||
43 | _body = value; |
||
44 | OnPropertyChanged(); |
||
45 | } |
||
46 | } |
||
47 | |||
48 | public float ContentHeight |
||
49 | { |
||
50 | get => _contentHeight; |
||
51 | set |
||
52 | { |
||
53 | if (value == _contentHeight) return; |
||
54 | _contentHeight = value; |
||
55 | OnPropertyChanged(); |
||
56 | } |
||
49 | office | 57 | } |
58 | |||
59 | public string UserAgent |
||
60 | { |
||
61 | get => _userAgent; |
||
62 | set |
||
63 | { |
||
64 | if (value == _userAgent) return; |
||
65 | _userAgent = value; |
||
66 | OnPropertyChanged(); |
||
67 | } |
||
41 | office | 68 | } |
69 | |||
70 | public bool EnableChime |
||
71 | { |
||
72 | get => _enableChime; |
||
73 | set |
||
74 | { |
||
75 | if (value == _enableChime) return; |
||
76 | _enableChime = value; |
||
77 | OnPropertyChanged(); |
||
78 | } |
||
79 | } |
||
80 | |||
81 | public byte[] Chime |
||
82 | { |
||
83 | get => _chime; |
||
84 | set |
||
85 | { |
||
86 | if (Equals(value, _chime)) return; |
||
87 | _chime = value; |
||
88 | OnPropertyChanged(); |
||
89 | } |
||
90 | } |
||
91 | |||
92 | public int LingerTime |
||
93 | { |
||
94 | get => _lingerTime; |
||
95 | set |
||
96 | { |
||
97 | if (value == _lingerTime) return; |
||
98 | _lingerTime = value; |
||
99 | OnPropertyChanged(); |
||
100 | } |
||
101 | } |
||
102 | |||
103 | public Image Image |
||
104 | { |
||
105 | get => _image; |
||
106 | set |
||
107 | { |
||
108 | if (Equals(value, _image)) return; |
||
109 | _image = value; |
||
110 | OnPropertyChanged(); |
||
111 | } |
||
112 | } |
||
113 | |||
114 | public string Content |
||
115 | { |
||
116 | get => _content; |
||
117 | set |
||
118 | { |
||
119 | if (value == _content) return; |
||
120 | _content = value; |
||
121 | OnPropertyChanged(); |
||
122 | } |
||
43 | office | 123 | } |
124 | |||
125 | public Point PinPoint |
||
126 | { |
||
127 | get => _pinPoint; |
||
128 | set |
||
129 | { |
||
130 | if (value == _pinPoint) return; |
||
131 | |||
132 | _pinPoint = value; |
||
133 | OnPropertyChanged(); |
||
134 | } |
||
41 | office | 135 | } |
43 | office | 136 | |
137 | public bool EnablePin |
||
138 | { |
||
139 | get => _enablePin; |
||
140 | set |
||
141 | { |
||
142 | if (value == _enablePin) return; |
||
143 | |||
144 | _enablePin = value; |
||
145 | OnPropertyChanged(); |
||
146 | } |
||
147 | } |
||
148 | |||
41 | office | 149 | public ToastDisplayData() |
150 | { |
||
151 | |||
152 | } |
||
153 | |||
154 | public event PropertyChangedEventHandler PropertyChanged; |
||
155 | |||
156 | protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) |
||
157 | { |
||
158 | PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
||
159 | } |
||
160 | } |
||
161 | } |