public FlickrWindow() { InitializeComponent(); timer = new System.Windows.Threading.DispatcherTimer(); flickr = new FlickrClient(); }
private void Load() { client = new FlickrClient(); _imagesList = new List<FlickrImage>(); user = new User("", "", TypeMoodUser.Cool);//User.CurrentUser; txtMood.Text = "Your mood is: " + user.TypeMood.ToString(); imageMood.Source = user.LoadMood(user.TypeMood); //TestThread(); // Can load image to Imae on form TestDispatcherTimer(); // Can load image on form. SOme times load image togather //TestNewTask(); // Can load image to Imae on form //LoadFlickrImage(); //this.imageFlickr1.Dispatcher.BeginInvoke(new Action(delegate() { imageFlickr1.Source = _imagesList[0]; })); //this.imageFlickr2.Dispatcher.BeginInvoke(new Action(delegate() { imageFlickr1.Source = _imagesList[1]; })); }