using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Windows.Controls; namespace DatabaseExport { public class TabPageItem : TabPageCommon { public UserControl Content { get; set; } = null; } public class TabPageItemGroup : TabPageCommon { public ObservableCollection Items { get; } = new ObservableCollection(); } public class TabPageSource { private static TabPageSource _source = new TabPageSource(); public ObservableCollection AllGroups { get; } = new ObservableCollection(); public static IEnumerable GetGroups(string uniqueid) { if (!uniqueid.Equals("AllGroups")) throw new ArgumentException("Only 'AllGroups' is supported as a collection of groups"); return _source.AllGroups; } } }