Toasts – Diff between revs 54 and 55
?pathlinks?
Rev 54 | Rev 55 | |||
---|---|---|---|---|
Line 9... | Line 9... | |||
9 | using System.Diagnostics; |
9 | using System.Diagnostics; |
|
10 | using System.Drawing; |
10 | using System.Drawing; |
|
11 | using System.IO; |
11 | using System.IO; |
|
12 | using System.Linq; |
12 | using System.Linq; |
|
13 | using System.Media; |
13 | using System.Media; |
|
- | 14 | using System.Net; |
||
14 | using System.Net.Http; |
15 | using System.Net.Http; |
|
15 | using System.Runtime.InteropServices; |
16 | using System.Runtime.InteropServices; |
|
16 | using System.Runtime.Remoting.Messaging; |
17 | using System.Runtime.Remoting.Messaging; |
|
17 | using System.Runtime.Serialization; |
18 | using System.Runtime.Serialization; |
|
18 | using System.Threading; |
19 | using System.Threading; |
|
Line 66... | Line 67... | |||
66 | |
67 | |
|
67 | _chime = value; |
68 | _chime = value; |
|
68 | } |
69 | } |
|
Line -... | Line 70... | |||
- | 70 | } |
||
- | 71 | |
||
69 | } |
72 | public Proxy Proxy { get; set; } |
|
- | 73 | |
||
70 | |
74 | public bool EnablePin { get; set; } |
|
Line 71... | Line 75... | |||
71 | public bool EnablePin { get; internal set; } |
75 | |
|
72 | public Point PinPoint { get; internal set; } |
76 | public Point PinPoint { get; set; } |
|
73 | |
77 | |
|
74 | /// <summary> |
78 | /// <summary> |
|
Line 107... | Line 111... | |||
107 | |
111 | |
|
Line 108... | Line 112... | |||
108 | private bool _mouseDown; |
112 | private bool _mouseDown; |
|
Line 109... | Line 113... | |||
109 | |
113 | |
|
Line 110... | Line 114... | |||
110 | private Point _lastLocation; |
114 | private Point _lastLocation; |
|
Line 111... | Line 115... | |||
111 | |
115 | |
|
Line 168... | Line 172... | |||
168 | /// <param name="body">the toast body</param> |
172 | /// <param name="body">the toast body</param> |
|
169 | public ToastForm(string title, string body) : this() |
173 | public ToastForm(string title, string body) : this() |
|
170 | { |
174 | { |
|
171 | labelTitle.Text = title; |
175 | labelTitle.Text = title; |
|
172 | htmlPanel1.Text = body; |
176 | htmlPanel1.Text = body; |
|
- | 177 | |
||
- | 178 | var httpClientHandler = new HttpClientHandler |
||
- | 179 | { |
||
- | 180 | // mono does not implement this |
||
- | 181 | //SslProtocols = SslProtocols.Tls12 |
||
- | 182 | }; |
||
- | 183 | |
||
- | 184 | if (Proxy != null && Proxy.Enable) |
||
- | 185 | { |
||
- | 186 | httpClientHandler.Proxy = new WebProxy(Proxy.Url, false, new string[] { }, |
||
- | 187 | new NetworkCredential(Proxy.Username, Proxy.Password)); |
||
- | 188 | } |
||
- | 189 | |
||
- | 190 | _httpClient = new HttpClient(httpClientHandler); |
||
173 | } |
191 | } |
|
Line 174... | Line 192... | |||
174 | |
192 | |
|
175 | /// <summary> |
193 | /// <summary> |
|
176 | /// Clean up any resources being used. |
194 | /// Clean up any resources being used. |