Esempio n. 1
0
        ///<summary>Only makes a call to the database on startup.  After that, just uses cached data.  Does not validate that the path exists except if the main one is used.  ONLY used from Client layer; no S classes.</summary>
        public static string GetPreferredAtoZpath()
        {
            if (!PrefC.UsingAtoZfolder)
            {
                return(null);
            }
            if (LocalAtoZpath == null)           //on startup
            {
                LocalAtoZpath = ComputerPrefs.LocalComputer.AtoZpath;
            }
            string replicationAtoZ = ReplicationServers.GetAtoZpath();

            if (replicationAtoZ != "")
            {
                return(replicationAtoZ);
            }
            if (LocalAtoZpath != "")
            {
                return(LocalAtoZpath);
            }
            //use this to handle possible multiple paths separated by semicolons.
            return(GetValidPathFromString(PrefC.GetString(PrefName.DocPath)));
        }