Exemplo n.º 1
0
 public SearchDescription(string name, string query, IA.Sort sort, IA.FieldValue type)
 {
     Name      = name;
     Query     = query;
     Sort      = sort;
     MediaType = type;
 }
Exemplo n.º 2
0
        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);
        }