//TODO (Low): Get types and turn to a flag or enum array public override WebRequestHeaders GetUrlContent() { UrlData.Add(new WebRequestHeader("ct", WebUtility.UrlEncode(string.Join(",", ReturnTypes)))); UrlData.Add(new WebRequestHeader("q", WebUtility.UrlEncode(Query))); UrlData.Add(new WebRequestHeader("max-results", NumberOfResults.ToString())); return(base.GetUrlContent()); }
public override void LoadSettings() { try { if (!(Page.IsPostBack)) { NumberOfDaysRadioButtons.SelectedValue = NumberOfDays.ToString(); NumberOfResultsRadioButtons.SelectedValue = NumberOfResults.ToString(); PageSizeRadioButtons.SelectedValue = PageSize.ToString(); IncludeSearchTypeCheckBox.Checked = IncludeSearchType; IncludeInfoCheckBox.Checked = IncludeInfo; IncludeDescriptionCheckBox.Checked = IncludeDescription; IncludeBodyCheckBox.Checked = IncludeBody; IncludeAuthorCheckBox.Checked = IncludeAuthor; IncludeSnippetCheckBox.Checked = IncludeSnippet; } } catch (Exception exc) //Module failed to load { Exceptions.ProcessModuleLoadException(this, exc); } }