示例#1
0
        private object GetVR()
        {
            string str = this._comboxBoxVR.SelectedItem as string;

            if (str == null || str.Length < 1)
            {
                return(null);
            }
            return(DHelper.GetVR(str));
        }
示例#2
0
        private static List <VrItem> GetVrItemList()
        {
            string[] tagList = DHelper.GetVRNames();
            SortedList <string, VrItem> slist = new SortedList <string, VrItem>();

            foreach (string str in tagList)
            {
                VrItem ti = new VrItem();
                ti.EnumName    = str;
                ti.VR          = (DVR)DHelper.GetVR(str);
                ti.DisplayName = (ti.VR == DVR.Unknown) ? "" : str;
                slist.Add(ti.DisplayName, ti);
            }
            List <VrItem> tlist = new List <VrItem>();

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