Exemplo n.º 1
0
 public static string ToString(DiagnosticOrderPriority value)
 {
     if (value == DiagnosticOrderPriority.Normal)
     {
         return("normal");
     }
     else if (value == DiagnosticOrderPriority.Urgent)
     {
         return("urgent");
     }
     else if (value == DiagnosticOrderPriority.Stat)
     {
         return("stat");
     }
     else
     {
         throw new ArgumentException("Unrecognized DiagnosticOrderPriority value: " + value.ToString());
     }
 }
Exemplo n.º 2
0
            public static bool TryParse(string value, out DiagnosticOrderPriority result)
            {
                result = default(DiagnosticOrderPriority);

                if (value == "normal")
                {
                    result = DiagnosticOrderPriority.Normal;
                }
                else if (value == "urgent")
                {
                    result = DiagnosticOrderPriority.Urgent;
                }
                else if (value == "stat")
                {
                    result = DiagnosticOrderPriority.Stat;
                }
                else
                {
                    return(false);
                }

                return(true);
            }
Exemplo n.º 3
0
            public static bool TryParse(string value, out DiagnosticOrderPriority result)
            {
                result = default(DiagnosticOrderPriority);

                if( value=="normal")
                    result = DiagnosticOrderPriority.Normal;
                else if( value=="urgent")
                    result = DiagnosticOrderPriority.Urgent;
                else if( value=="stat")
                    result = DiagnosticOrderPriority.Stat;
                else
                    return false;

                return true;
            }
Exemplo n.º 4
0
 public static string ToString(DiagnosticOrderPriority value)
 {
     if( value==DiagnosticOrderPriority.Normal )
         return "normal";
     else if( value==DiagnosticOrderPriority.Urgent )
         return "urgent";
     else if( value==DiagnosticOrderPriority.Stat )
         return "stat";
     else
         throw new ArgumentException("Unrecognized DiagnosticOrderPriority value: " + value.ToString());
 }