Example #1
0
        private SelectionCollection GetSerializedSelection()
        {
            string key        = BuildItemKey(CurrentItem);
            string serialized = String.Empty;

            if (CurrentItem.ContainingProject.Globals.get_VariableExists(key))
            {
                serialized = (string)CurrentItem.ContainingProject.Globals[key];
            }

            SelectionCollection selections = null;

            if (serialized.Length > 0)
            {
                selections = SelectionCollection.FromString(serialized);
            }
            return(selections);
        }