コード例 #1
0
 public static Values Parse_MenuItem(string inc)
 {
     try {
         int i = Descriptions.FindIndex(o => { return(o == inc); });
         if (i >= 0)
         {
             return((Values)Enum.GetValues(typeof(Values)).GetValue(i));
         }
         else
         {
             return(Values.ENU);
         }
     } catch {
         return(Values.ENU);
     }
 }
コード例 #2
0
 public static Values Parse_MenuItem(string inc)
 {
     try {
         int i = Descriptions.FindIndex(o => { return(o == inc); });
         if (i >= 0)
         {
             return((Values)Enum.GetValues(typeof(Values)).GetValue(i));
         }
         else
         {
             return(Values.ENU);
         }
     } catch (Exception e) {
         new Server.Servers().Post_Exception(e);
         return(Values.ENU);
     }
 }