Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/content/82/8776282/html/evbpc.com/paste_system/code/view_paste.php on line 21

Warning: file_get_contents(http://s4p.us/a/api/?method=generateUrl&param=http%3A%2F%2Fpaste4.us%2Fview_paste%2F153%2F) [function.file-get-contents]: failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/content/82/8776282/html/evbpc.com/paste_system/code/view_paste.php on line 21
98b7abd3118ddeedc8cb320d492881ad
Fullscreen Options: With Syntax Highlighting | Plain Text | Design View
Short Link:
98b7abd3118ddeedc8cb320d492881ad
By EBrown
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
         public List<SelectListItem> BuildSeverityList(int id = 20)
        {
            List<SelectListItem> severityList = new List<SelectListItem>();

            foreach (BugSeverity enumValue in Enum.GetValues(typeof(BugSeverity)))
            {
                SelectListItem item = new SelectListItem();
                item.Value = "" + (int)enumValue;
                item.Text = Bug.SeverityToString(enumValue);
                item.Selected = (int)enumValue == id;
                severityList.Add(item);
            }

            return severityList;
        }