///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public static bool getPerm(string Perm) { try { if (string.IsNullOrEmpty(Perm)) { return(false); } return(PermUsr.Contains(Perm)); } catch (Exception EX) { return(false); } }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 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); } }