Toasts – Diff between revs 51 and 53
?pathlinks?
Rev 51 | Rev 53 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | using System; |
1 | using System; |
|
2 | using System.Collections.Concurrent; |
2 | using System.Collections.Concurrent; |
|
3 | using System.ComponentModel; |
3 | using System.ComponentModel; |
|
- | 4 | using System.Diagnostics; |
||
4 | using System.Drawing; |
5 | using System.Drawing; |
|
5 | using System.Runtime.InteropServices; |
6 | using System.Runtime.InteropServices; |
|
6 | using System.Threading; |
7 | using System.Threading; |
|
7 | using System.Threading.Tasks; |
8 | using System.Threading.Tasks; |
|
8 | using System.Threading.Tasks.Dataflow; |
9 | using System.Threading.Tasks.Dataflow; |
|
Line 111... | Line 112... | |||
111 | } |
112 | } |
|
112 | catch(InvalidOperationException) |
113 | catch(InvalidOperationException) |
|
113 | { |
114 | { |
|
114 | // animation clutter |
115 | // animation clutter |
|
115 | } |
116 | } |
|
- | 117 | catch (ArgumentException) |
||
- | 118 | { |
||
- | 119 | // animation clutter |
||
- | 120 | } |
||
- | 121 | catch(Exception exception) |
||
- | 122 | { |
||
- | 123 | Debug.WriteLine(exception); |
||
- | 124 | } |
||
116 | }) |
125 | }) |
|
117 | { |
126 | { |
|
118 | IsBackground = true |
127 | IsBackground = true |
|
119 | }; |
128 | }; |
|
120 | thread.SetApartmentState(ApartmentState.STA); |
129 | thread.SetApartmentState(ApartmentState.STA); |