public SearchDescription(string name, string query, IA.Sort sort, IA.FieldValue type) { Name = name; Query = query; Sort = sort; MediaType = type; }
private void UpdateSearch() { IA.FieldValue media_type = null; TreeIter iter; if (media_type_combo.GetActiveIter(out iter)) { media_type = media_type_store.GetValue(iter, 0) as IA.FieldValue; } var settings = new SearchDescription(null, search_entry.Query, sorts[sort_combo.Active], media_type); source.SetSearch(settings); }