Exemplo n.º 1
0
        public KeywordListsOptionPanel(KeywordListsNode parent) : base(parent)
        {
            SetupFromXmlFile(System.IO.Path.Combine(PropertyService.DataDirectory,
                                                    @"resources\panels\HighlightingEditor\KeywordLists.xfrm"));

            addBtn           = (Button)ControlDictionary["addBtn"];
            addBtn.Click    += new EventHandler(addClick);
            removeBtn        = (Button)ControlDictionary["removeBtn"];
            removeBtn.Click += new EventHandler(removeClick);

            listView = (ListView)ControlDictionary["listView"];
        }
Exemplo n.º 2
0
        public override void LoadSettings()
        {
            KeywordListsNode node = (KeywordListsNode)parentNode;

            listView.Items.Clear();

            foreach (KeywordListNode rn in node.Nodes)
            {
                ListViewItem lv = new ListViewItem(rn.Name);
                lv.Tag = rn;
                listView.Items.Add(lv);
            }
        }