private void SetAccessibleResultsSets(List <VisibilityCalcResults> userSession, ISpatialReference spatialReference) { var currentSessionProfiles = new List <VisibilityCalcResults>(userSession); var allAccessibleProfilesSets = VisibilityZonesFacade.GetAllVisibilityResults().ToList(); var notInCurrentSessionProfilesSet = new List <VisibilityCalcResults>(allAccessibleProfilesSets.Count); foreach (var set in allAccessibleProfilesSets) { var currentSessionSet = currentSessionProfiles.FirstOrDefault(session => session.Id == set.Id); if (currentSessionSet != null) { currentSessionProfiles.Remove(currentSessionSet); } else { notInCurrentSessionProfilesSet.Add(set); } } //notInCurrentSessionProfilesSet.ForEach(session => //{ // session.ConvertLinesToEsriPolypile(spatialReference); //}); _accessibleProfilesSets = notInCurrentSessionProfilesSet.ToArray(); }
internal void UpdateVisibilityResultsTree(bool isNewSessionAdded = false) { _visibilityResults = VisibilityZonesFacade.GetAllVisibilityResults(true).ToList(); _view.FillVisibilityResultsTree(_visibilityResults); }