Exemplo n.º 1
0
        private void LoadSortSchema()
        {
            if (ChildSortTypes.Length == 0)
            {
                return;
            }

            if (unique_id == null && type_unique_id == null)
            {
                Hyena.Log.WarningFormat("Trying to LoadSortSchema, but source's id not set! {0}", UniqueId);
                return;
            }

            child_sort_schema = CreateSchema <string> ("child_sort_id", DefaultChildSort.Id, "", "");
            string child_sort_id = child_sort_schema.Get();

            foreach (SourceSortType sort_type in ChildSortTypes)
            {
                if (sort_type.Id == child_sort_id)
                {
                    child_sort = sort_type;
                    break;
                }
            }

            separate_by_type_schema = CreateSchema <bool> ("separate_by_type", false, "", "");
            SortChildSources();
        }
Exemplo n.º 2
0
 protected Source()
 {
     child_sort = DefaultChildSort;
 }
Exemplo n.º 3
0
 public virtual void SortChildSources(SourceSortType sort_type)
 {
     child_sort = sort_type;
     child_sort_schema.Set(child_sort.Id);
     SortChildSources();
 }