Exemplo n.º 1
0
        public DVR GetVR()
        {
            VrItem item = this._comboxBoxVR.SelectedItem as VrItem;

            if (item == null)
            {
                return(DVR.Unknown);
            }
            return(item.VR);
        }
Exemplo n.º 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);
        }