示例#1
0
        public void Initialize()
        {
            string[] vrList  = DHelper.GetVRNames();
            string[] tagList = DHelper.GetTagNames();

            this._comboxBoxTag.Items.Add("");
            this._comboxBoxTag.SelectedIndex = 0;
            foreach (string tag in tagList)
            {
                this._comboxBoxTag.Items.Add(tag);
            }

            foreach (string vr in vrList)
            {
                this._comboxBoxVR.Items.Add(vr);
            }
            if (this._comboxBoxVR.Items.Count > 0)
            {
                this._comboxBoxVR.SelectedIndex = 0;
            }
        }
示例#2
0
        private static List <TagItem> GetTagItemList()
        {
            string[] tagList = DHelper.GetTagNames();
            SortedList <string, TagItem> slist = new SortedList <string, TagItem>();

            foreach (string str in tagList)
            {
                TagItem ti = new TagItem();
                ti.EnumName    = str;
                ti.Tag         = DHelper.GetTag(str);
                ti.DisplayName = str.TrimStart('k');
                slist.Add(ti.DisplayName, ti);
            }
            List <TagItem> tlist = new List <TagItem>();

            foreach (KeyValuePair <string, TagItem> p in slist)
            {
                tlist.Add(p.Value);
            }
            return(tlist);
        }