Miner.Geodatabase Assembly > Miner.Geodatabase.FeederManager Namespace > FeederChangedEvent Class : Diffs Property |
'Declaration Public ReadOnly Property Diffs As IEnumerable(Of FeederInfoDiff)
'Usage Dim instance As FeederChangedEvent Dim value As IEnumerable(Of FeederInfoDiff) value = instance.Diffs
public IEnumerable<FeederInfoDiff> Diffs {get;}
public void HandleEvent(FeederChangedEvent e) { IEnumerable<string> editingFeedback = GetEditingFeedback(e.Diffs); if (editingFeedback.Any()) { string warnings = string.Join("\r\n", editingFeedback.ToArray()); MessageBox.Show(warnings); } } private IEnumerable<string> GetEditingFeedback(IEnumerable<FeederInfoDiff> diffs) { var warnings = new List<string>(); int diffCount = diffs.Count(); if (diffCount > 100) { warnings.Add(string.Format("Warning {0} features were modified exceeding the maximum number of modified features per edit policy.", diffCount)); } if (diffs.Any(diff => diff.InfoBefore.IsLooped == false & diff.InfoAfter.IsLooped)) { warnings.Add(string.Format("Warning a loop was created by the last edit.")); } int deenergizedFeatureCount = diffs.Count(diff => diff.InfoAfter.EnergizedPhases == Phases.None); if (deenergizedFeatureCount > 0) { warnings.Add(string.Format("Warning {0} features were de-energized as a result of the previous edit.", deenergizedFeatureCount)); } if (diffs.Any(diff => diff.InfoAfter.FeederIDs.Count() > 1)) { warnings.Add(string.Format("Warning a multifeed was created by the previous edit.")); } return warnings; }
Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)
Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.