Toasts – Diff between revs 17 and 18

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 17 Rev 18
Line 34... Line 34...
34 _toastFromActionBlockLink?.Dispose(); 34 _toastFromActionBlockLink?.Dispose();
35 _toastFromActionBlockLink = null; 35 _toastFromActionBlockLink = null;
36 } 36 }
37 } 37 }
Line 38... Line 38...
38   38  
39 private void DisplayForm(ToastForm toastForm) 39 private static void DisplayForm(ToastForm toastForm)
40 { 40 {
41 Task.Factory.StartNew(() => 41 new Thread(() =>
42 { 42 {
43 Application.Run(toastForm); 43 Application.Run(toastForm);
44 }, _cancellationToken, TaskCreationOptions.LongRunning, TaskScheduler.Current); 44 }).Start();
Line 45... Line 45...
45 } 45 }
46   46  
47 public async Task Queue(ToastForm toastForm) 47 public async Task Queue(ToastForm toastForm)