Пример #1
0
        public static List <Profile> ReadAllProfiles(string path, bool bSilentError)
        {
            ProfileManager p  = new ProfileManager(path);
            List <Profile> ps = new List <Profile>();

            foreach (ProfileType t in p.profileTypes)
            {
                ps.AddRange(p.readAllProfiles(t, bSilentError));
            }

            return(ps);
        }
Пример #2
0
        public static List <Profile> ReadAllProfiles(string path)
        {
            ProfileManager p = new ProfileManager(path);

            if (Directory.Exists(Path.Combine(path, "profiles")))
            {
                return(Loader.TryLoadProfiles(path));
            }

            List <Profile> ps = new List <Profile>();

            foreach (ProfileType t in p.profileTypes)
            {
                ps.AddRange(p.readAllProfiles(t));
            }

            return(ps);
        }