예제 #1
0
        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);
                }
            }
        }
예제 #2
0
        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;
                }
            }
        }