コード例 #1
0
 public void SetSearchSection(PlexMediaServer.SearchSection _searchSection)
 {
     tbSearchQuery.Text = "";
     if (_searchSection != null)
     {
         lblPrompt.Text = _searchSection.Prompt;
         lblTitle.Text  = _searchSection.Title;
     }
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 private bool doSearchInput(PlexMediaServer.SearchSection _searchSection, out string _query)
 {
     _query = "";
     return(OnSearchInput != null && OnSearchInput(_searchSection, out _query));
 }