internal TreeViewModel ParseUserProfileSessions() { var result = new TreeViewModel(); var userProfileSessions = MilSpaceProfileFacade.GetUserProfileSessions(); foreach (var profileSession in userProfileSessions) { var model = new TreeViewNodeModel { Name = profileSession.SessionName, Guid = Guid.NewGuid(), NodeProfileSession = profileSession }; AddChildCollection(model, profileSession); if (profileSession.DefinitionType == ProfileSettingsTypeEnum.Points) { result.Lines.Add(model); } if (profileSession.DefinitionType == ProfileSettingsTypeEnum.Fun) { result.Funs.Add(model); } if (profileSession.DefinitionType == ProfileSettingsTypeEnum.Primitives) { result.Primitives.Add(model); } } return(result); }
internal void InitiateUserProfiles() { MilSpaceProfileFacade.GetUserProfileSessions().ToList().ForEach(p => { p.ConvertLinesToEsriPolypile(View.ActiveView.FocusMap.SpatialReference); AddProfileToList(p); } ); OnDocumentsLoad(); }