private void SearchBanner_OnClick(object sender, RoutedEventArgs e) { LoadSearch ls = new LoadSearch(); string gametitle = EditTitle.Text; string imagetype = "banner"; string searchstring = gametitle + " game banner"; ls.SearchLinks(gametitle, imagetype, searchstring, offset); ((MainWindow)Application.Current.MainWindow)?.OpenImageDL(gametitle, searchstring, imagetype); }
private void SearchIcon_OnClick(object sender, RoutedEventArgs e) { LoadSearch ls = new LoadSearch(); string gametitle = EditTitle.Text; string imagetype = "icon"; string searchstring = gametitle + " poster"; ls.SearchLinks(gametitle, imagetype, searchstring); ImageDownload iw = new ImageDownload(gametitle, searchstring, imagetype); iw.Show(); }