private void SaveSelection() { this.m_SelectedStateClasses.Clear(); foreach (StateClassShape Shape in this.Shapes) { if (Shape.IsSelected) { string k = DTAnalyzer.CreateStateClassLookupKey(Shape.StratumIdSource, Shape.StateClassIdSource); this.m_SelectedStateClasses.Add(k, Shape); } } }
private void RestoreSelection() { foreach (StateClassShape Shape in this.Shapes) { string k = DTAnalyzer.CreateStateClassLookupKey(Shape.StratumIdSource, Shape.StateClassIdSource); if (this.m_SelectedStateClasses.ContainsKey(k)) { Shape.IsSelected = true; } else { Shape.IsSelected = false; } } }