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(); }
protected Source() { child_sort = DefaultChildSort; }
public virtual void SortChildSources(SourceSortType sort_type) { child_sort = sort_type; child_sort_schema.Set(child_sort.Id); SortChildSources(); }