Toasts – Diff between revs 27 and 33
?pathlinks?
Rev 27 | Rev 33 | |||
---|---|---|---|---|
Line 50... | Line 50... | |||
50 | /// </summary> |
50 | /// </summary> |
|
51 | /// <remarks>clone the image for safety</remarks> |
51 | /// <remarks>clone the image for safety</remarks> |
|
52 | public Image Image |
52 | public Image Image |
|
53 | { |
53 | { |
|
54 | get => new Bitmap(imageBox.Image); |
54 | get => new Bitmap(imageBox.Image); |
|
55 | set => imageBox.Image = new Bitmap(value); |
55 | set => imageBox.Image = value; |
|
56 | } |
56 | } |
|
Line 57... | Line 57... | |||
57 | |
57 | |
|
Line 58... | Line 58... | |||
58 | #endregion |
58 | #endregion |
|
Line 129... | Line 129... | |||
129 | /// </summary> |
129 | /// </summary> |
|
130 | /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
130 | /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
|
131 | protected override void Dispose(bool disposing) |
131 | protected override void Dispose(bool disposing) |
|
132 | { |
132 | { |
|
133 | if (disposing && components != null) |
133 | if (disposing && components != null) |
|
- | 134 | { |
||
- | 135 | components.Dispose(); |
||
- | 136 | } |
||
- | 137 | |
||
- | 138 | if (_toastTimer != null) |
||
134 | { |
139 | { |
|
135 | if (_toastTimer != null) |
- | ||
136 | { |
- | ||
137 | _toastTimer.Dispose(); |
140 | _toastTimer.Dispose(); |
|
138 | _toastTimer = null; |
141 | _toastTimer = null; |
|
139 | } |
142 | } |
|
Line -... | Line 143... | |||
- | 143 | |
||
- | 144 | if (Image != null) |
||
140 | |
145 | { |
|
141 | Image.Dispose(); |
146 | Image.Dispose(); |
|
142 | components.Dispose(); |
147 | Image = null; |
|
- | 148 | } |
||
143 | } |
149 | |
|
144 | base.Dispose(disposing); |
150 | base.Dispose(disposing); |
|
Line 145... | Line 151... | |||
145 | } |
151 | } |