//get featured movie list click private void featuredMovies_Click(object sender, RoutedEventArgs e) { listbox.Items.Clear(); UpdateMovieList uml = new UpdateMovieList(); uml.getFeatured(); searchList.Clear(); searchList.AddRange(uml.featured()) ; string[] array = searchList.Distinct().ToArray(); searchList.Clear(); Array.Sort(array); foreach (var item in array) { if (item != null) { string cutLink = item.Replace("http://putlocker.is/watch", ""); cutLink = cutLink.Replace("-online-free-putlocker.html", " "); cutLink = cutLink.Replace("-", " "); cutLink = cutLink.Trim(); cutLink = Regex.Replace(cutLink, @"(^\w)|(\s\w)", m => m.Value.ToUpper()); searchList.Add(cutLink); listbox.Items.Add(cutLink); featuredMovies.IsEnabled = false; allMovies.IsEnabled = true; } featuredMovies.IsEnabled = true; allMovies.IsEnabled = true; } }
//Updates movie list from Update Movie List c# file private void Check_updates_Click(object sender, RoutedEventArgs e) { //getSeries gs = new getSeries(); //gs.series(); UpdateMovieList uml = new UpdateMovieList(); uml.getPutMovieLinks(); }