예제 #1
0
 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 public static bool getPerm(string Perm)
 {
     try
     {
         if (string.IsNullOrEmpty(Perm))
         {
             return(false);
         }
         return(PermUsr.Contains(Perm));
     }
     catch (Exception EX) { return(false); }
 }
예제 #2
0
 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 public static bool getPerm(string[] Perm)
 {
     try
     {
         if (Perm.Length <= 0)
         {
             return(false);
         }
         for (int i = 0; i < Perm.Length; i++)
         {
             if (PermUsr.Contains(Perm[i]))
             {
                 return(true);
             }
         }
         return(false);
     }
     catch (Exception EX) { return(false); }
 }