Example #1
0
        void initalize()
        {
            loadIconInfo();

            ///获取信息加载到树中
            Dictionary <String, List <String> > vDict = _pixmapManage.getData();

            foreach (var item in vDict)
            {
                treeView.Nodes.Add(item.Key);
            }

            ///注册事件
            treeView.AfterSelect += new TreeViewEventHandler(treeView_AfterSelect);

            listView.MouseDoubleClick     += new MouseEventHandler(listView_MouseDoubleClick);
            listView.ItemSelectionChanged += new ListViewItemSelectionChangedEventHandler(listView_ItemSelectionChanged);
            //listView.Click += new EventHandler(listView_Click);
            listRadio.CheckedChanged += new EventHandler(listRadio_CheckedChanged);
            showRadio.CheckedChanged += new EventHandler(showRadio_CheckedChanged);
            treeView.AfterLabelEdit  += new NodeLabelEditEventHandler(treeView_AfterLabelEdit);
            listView.AfterLabelEdit  += new LabelEditEventHandler(listView_AfterLabelEdit);
        }
Example #2
0
        public SVWPFBitmapManagerWindow()
        {
            InitializeComponent();

            String file = System.IO.Path.Combine(SVProData.IconPath, "icon.proj");

            if (File.Exists(file))
            {
                _picManager.loadElementFromFile(file);
            }

            _iconData = _picManager.getData();

            BindingList <String> obj = new BindingList <String>();

            foreach (var item in _iconData)
            {
                obj.Add(item.Key);
            }

            classlistView.ItemsSource = obj;
        }