public WebResponse LoadWebResponse(Rectangle dimensions) { string urlWithSize = string.Format(URL, wallpaperMonsterConfiguration.FindCategory(), dimensions.Width, dimensions.Height); var request = WebRequest.Create(urlWithSize); return(request.GetResponse()); }
private void prepareCategoryCombobox() { categoryComboBox.DataSource = new BindingSource(UnsplashImageProvider.categories, null); categoryComboBox.DisplayMember = "Key"; categoryComboBox.ValueMember = "Value"; categoryComboBox.SelectedValue = wallpaperMonsterConfiguration.FindCategory(); }