public void ReloadGroups() { GroupsIn.Clear(); GroupsOut.Clear(); PgVM.PgDataRepositoryVM dataRepo = (_table.Source as PgVM.PgDataRepositoryVM); var containsCollection = from thematicgroup in dataRepo.Groups where thematicgroup.Tables.Contains(_table) select thematicgroup as AbsM.GroupM; foreach (AbsM.GroupM groupM in containsCollection) { _groupsIn.Add(groupM); } var doesntContaintCollection = from thematicgroup in dataRepo.Groups where !thematicgroup.Tables.Contains(_table) select thematicgroup as AbsM.GroupM; foreach (AbsM.GroupM groupM in doesntContaintCollection) { _groupsOut.Add(groupM); } }
public PgIndexVM(PgM.PgTableBaseM table) { _table = table; _source = table.Source as PgVM.PgDataRepositoryVM; _indexedFields = new ObservableCollection <AbsM.IFieldM>(); _notIndexedFields = new ObservableCollection <AbsM.IFieldM>(); LoadIndexInfo(); }
public PgLayerGroupsVM(PgM.PgTableBaseM pgtable) { _table = pgtable; _source = pgtable.Source as PgVM.PgDataRepositoryVM; _source.GroupsCollectionChanged += Source_GroupsCollectionChanged; foreach (AbsM.GroupM groupM in _source.Groups) { groupM.Tables.CollectionChanged += Tables_CollectionChanged; } ReloadGroups(); }
public PgGroupsVM(PgVM.PgDataRepositoryVM repo) { _source = repo; PropertyChanged += PgGroupsVM_PropertyChanged; (repo.Tables as ObservableCollection <AbsM.ITableBaseM>).CollectionChanged += PgGroupsVM_CollectionChanged; }
public PgUserM(PgUserM user, PgVM.PgDataRepositoryVM source) { CopyFrom(user); _source = source; }
public PgUserM(PgVM.PgDataRepositoryVM source) { _source = source; }