Exemplo n.º 1
0
        private void CreatBookMarkItems(RadDropDownButtonElement dbt, BookMarkGroup group)
        {
            Dictionary <string, CoordEnvelope> marks = group.BookMarks;

            foreach (string key in marks.Keys)
            {
                if (string.IsNullOrEmpty(key))
                {
                    continue;
                }
                RadMenuItem interItem = new RadMenuItem(key);
                interItem.Tag    = marks[key];
                interItem.Click += new EventHandler(interItem_Click);
                dbt.Items.Add(interItem);
            }
        }
Exemplo n.º 2
0
        private void RefreshGroups(IEnumerable <XElement> groupEles)
        {
            BookMarkGroup group = null;

            _groupNames.Clear();
            _groups.Clear();
            _bookMarks.Clear();
            foreach (XElement ele in groupEles)
            {
                if (ele == null)
                {
                    continue;
                }
                group = CreatGroupFromXML(ele);
                if (group != null)
                {
                    _groups.Add(group);
                }
            }
        }