corrade-vassal – Diff between revs 16 and 20
?pathlinks?
Rev 16 | Rev 20 | |||
---|---|---|---|---|
Line 87... | Line 87... | |||
87 | break; |
87 | break; |
|
88 | default: |
88 | default: |
|
89 | mediaType = @"text/plain"; |
89 | mediaType = @"text/plain"; |
|
90 | break; |
90 | break; |
|
91 | } |
91 | } |
|
92 | // Create HTTP Client |
- | ||
93 | Vassal.HTTPClient = new Web.wasHTTPClient(new ProductInfoHeaderValue(@"Vassal", |
92 | Vassal.HTTPClient = new Web.wasHTTPClient(new ProductInfoHeaderValue(@"Vassal", Vassal.VASSAL_VERSION), mediaType, 60000); |
|
94 | Vassal.VASSAL_VERSION), new CookieContainer(), mediaType, 60000); |
- | ||
95 | }; |
93 | }; |
|
Line 96... | Line 94... | |||
96 | |
94 | |
|
97 | private readonly Action SetUserConfiguration = () => |
95 | private readonly Action SetUserConfiguration = () => |
|
98 | { |
96 | { |
|
Line 141... | Line 139... | |||
141 | mediaType = @"text/plain"; |
139 | mediaType = @"text/plain"; |
|
142 | break; |
140 | break; |
|
143 | } |
141 | } |
|
144 | // Create HTTP Client |
142 | // Create HTTP Client |
|
145 | Vassal.HTTPClient = new Web.wasHTTPClient(new ProductInfoHeaderValue(@"Vassal", |
143 | Vassal.HTTPClient = new Web.wasHTTPClient(new ProductInfoHeaderValue(@"Vassal", |
|
146 | Vassal.VASSAL_VERSION), new CookieContainer(), mediaType, 60000); |
144 | Vassal.VASSAL_VERSION), mediaType, 60000); |
|
147 | }; |
145 | }; |
|
Line 148... | Line 146... | |||
148 | |
146 | |
|
149 | public SettingsForm() |
147 | public SettingsForm() |
|
150 | { |
148 | { |
|
Line 239... | Line 237... | |||
239 | } |
237 | } |
|
240 | InputDecode.BackColor = Color.Empty; |
238 | InputDecode.BackColor = Color.Empty; |
|
241 | ActiveInputFilters.Items.Add(new ListViewItem |
239 | ActiveInputFilters.Items.Add(new ListViewItem |
|
242 | { |
240 | { |
|
243 | Text = InputDecode.Text, |
241 | Text = InputDecode.Text, |
|
244 | Tag = Reflection.GetEnumValueFromDescription<Filter>(InputDecode.Text) |
242 | Tag = Reflection.GetEnumValueFromName<Filter>(InputDecode.Text) |
|
245 | }); |
243 | }); |
|
246 | })); |
244 | })); |
|
247 | } |
245 | } |
|
Line 248... | Line 246... | |||
248 | |
246 | |
|
Line 257... | Line 255... | |||
257 | } |
255 | } |
|
258 | InputDecryption.BackColor = Color.Empty; |
256 | InputDecryption.BackColor = Color.Empty; |
|
259 | ActiveInputFilters.Items.Add(new ListViewItem |
257 | ActiveInputFilters.Items.Add(new ListViewItem |
|
260 | { |
258 | { |
|
261 | Text = InputDecryption.Text, |
259 | Text = InputDecryption.Text, |
|
262 | Tag = Reflection.GetEnumValueFromDescription<Filter>(InputDecryption.Text) |
260 | Tag = Reflection.GetEnumValueFromName<Filter>(InputDecryption.Text) |
|
263 | }); |
261 | }); |
|
264 | })); |
262 | })); |
|
265 | } |
263 | } |
|
Line 266... | Line 264... | |||
266 | |
264 | |
|
Line 275... | Line 273... | |||
275 | } |
273 | } |
|
276 | OutputEncrypt.BackColor = Color.Empty; |
274 | OutputEncrypt.BackColor = Color.Empty; |
|
277 | ActiveOutputFilters.Items.Add(new ListViewItem |
275 | ActiveOutputFilters.Items.Add(new ListViewItem |
|
278 | { |
276 | { |
|
279 | Text = OutputEncrypt.Text, |
277 | Text = OutputEncrypt.Text, |
|
280 | Tag = Reflection.GetEnumValueFromDescription<Filter>(OutputEncrypt.Text) |
278 | Tag = Reflection.GetEnumValueFromName<Filter>(OutputEncrypt.Text) |
|
281 | }); |
279 | }); |
|
282 | })); |
280 | })); |
|
283 | } |
281 | } |
|
Line 284... | Line 282... | |||
284 | |
282 | |
|
Line 293... | Line 291... | |||
293 | } |
291 | } |
|
294 | OutputEncode.BackColor = Color.Empty; |
292 | OutputEncode.BackColor = Color.Empty; |
|
295 | ActiveOutputFilters.Items.Add(new ListViewItem |
293 | ActiveOutputFilters.Items.Add(new ListViewItem |
|
296 | { |
294 | { |
|
297 | Text = OutputEncode.Text, |
295 | Text = OutputEncode.Text, |
|
298 | Tag = Reflection.GetEnumValueFromDescription<Filter>(OutputEncode.Text) |
296 | Tag = Reflection.GetEnumValueFromName<Filter>(OutputEncode.Text) |
|
299 | }); |
297 | }); |
|
300 | })); |
298 | })); |
|
301 | } |
299 | } |
|
Line 302... | Line 300... | |||
302 | |
300 | |