an example of WPF multi threads