Beispiel #1
0
        private void CreateCollection()
        {
            _collection.Clear();
            var node = _root;

            var cs = new CustomShortcut(GetType((string)node.Tag), node.Text);

            _collection.Add(cs);
            FillNode(cs, node.Nodes);
        }
        public object Clone()
        {
            var scl = new ShortcutCollection(_owner);

            foreach (CustomShortcut cs in List)
            {
                scl.Add((CustomShortcut)cs.Clone());
            }

            return(scl);
        }