public Home() { InitializeComponent(); rt = new RottenTomatoe(); timer = new DispatcherTimer() { Interval = TimeSpan.FromSeconds(1) }; rt.FindMoviesCompleted += new EventHandler<ResultEventArgs<MovieSearchResult>>(rt_FindMoviesCompleted); timer.Tick += new EventHandler(timer_Tick); }
public Detail() { InitializeComponent(); rt = new RottenTomatoe(); rt.GetMovieCompleted += new EventHandler<ResultEventArgs<Movie>>(rt_GetMovieCompleted); }