public void SetSearchSection(PlexMediaServer.SearchSection _searchSection) { tbSearchQuery.Text = ""; if (_searchSection != null) { lblPrompt.Text = _searchSection.Prompt; lblTitle.Text = _searchSection.Title; } }
bool onSearchInput(PlexMediaServer.SearchSection _searchSection, out string _query) { _query = ""; searchForm.SetSearchSection(_searchSection); if (searchForm.ShowDialog() == System.Windows.Forms.DialogResult.OK) { _query = searchForm.SearchQuery; return(true); } return(false); }
private bool doSearchInput(PlexMediaServer.SearchSection _searchSection, out string _query) { _query = ""; return(OnSearchInput != null && OnSearchInput(_searchSection, out _query)); }