Пример #1
0
        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);
        }
Пример #2
0
        internal void InitiateUserProfiles()
        {
            MilSpaceProfileFacade.GetUserProfileSessions().ToList().ForEach(p =>
            {
                p.ConvertLinesToEsriPolypile(View.ActiveView.FocusMap.SpatialReference);
                AddProfileToList(p);
            }
                                                                            );

            OnDocumentsLoad();
        }