Toasts – Diff between revs 18 and 21
?pathlinks?
Rev 18 | Rev 21 | |||
---|---|---|---|---|
Line 222... | Line 222... | |||
222 | private System.Timers.Timer _toastTimer; |
222 | private System.Timers.Timer _toastTimer; |
|
Line 223... | Line 223... | |||
223 | |
223 | |
|
Line 224... | Line 224... | |||
224 | private readonly int _screenWidth; |
224 | private readonly int _screenWidth; |
|
- | 225 | |
||
225 | |
226 | private readonly int _screenHeight; |
|
Line 226... | Line 227... | |||
226 | private readonly int _screenHeight; |
227 | |
|
Line 227... | Line 228... | |||
227 | private readonly TaskCompletionSource<object> _showFormTaskCompletionSource; |
228 | private readonly TaskCompletionSource<object> _showFormTaskCompletionSource; |
|
Line 373... | Line 374... | |||
373 | |
374 | |
|
374 | private void Toast_Click(object sender, EventArgs e) |
375 | private void Toast_Click(object sender, EventArgs e) |
|
375 | { |
376 | { |
|
376 | try |
377 | try |
|
377 | { |
378 | { |
|
378 | lock (OpenNotificationsLock) |
379 | BeginInvoke(new MethodInvoker(() => |
|
- | 380 | { |
||
- | 381 | lock (OpenNotificationsLock) |
||
379 | { |
382 | { |
|
- | 383 | Close(); |
||
380 | Close(); |
384 | } |
|
381 | } |
385 | })); |
|
382 | } |
386 | } |
|
383 | catch |
387 | catch |
|
384 | { |
388 | { |
|
385 | Debug.WriteLine("Error in form click event."); |
389 | Debug.WriteLine("Error in form click event."); |