//public static string defaultLibrariesPath = ;
        static TM_Xml_Database()
        {
            Cached_GuidanceItems		= new Dictionary<Guid, TeamMentor_Article> ();
            GuidanceItems_FileMappings	= new Dictionary<Guid,string>();
            GuidanceExplorers_XmlFormat = new Dictionary<Guid, guidanceExplorer>();

            TMUsers						= new List<TMUser>();
            TMUsersPasswordHashes		= new O2.DotNetWrappers.DotNet.Items ();
            ActiveSessions				= new Dictionary<Guid, TMUser>();

            setDataFromCurrentScript(TMConfig.Current.TMLibraryDataVirtualPath);
            TM_Xml_Database.Current = new TM_Xml_Database();
        }
Example #2
0
        //public static string defaultLibrariesPath = ;

        static TM_Xml_Database()
        {
            Cached_GuidanceItems        = new Dictionary <Guid, TeamMentor_Article> ();
            GuidanceItems_FileMappings  = new Dictionary <Guid, string>();
            GuidanceExplorers_XmlFormat = new Dictionary <Guid, guidanceExplorer>();

            TMUsers = new List <TMUser>();
            TMUsersPasswordHashes = new O2.DotNetWrappers.DotNet.Items();
            ActiveSessions        = new Dictionary <Guid, TMUser>();

            setDataFromCurrentScript(TMConfig.Current.TMLibraryDataVirtualPath);
            TM_Xml_Database.Current = new TM_Xml_Database();
        }
        //public static string defaultLibrariesPath = ;
        static TM_Xml_Database()
        {
            Cached_GuidanceItems = new Dictionary<Guid, TeamMentor_Article> ();
            GuidanceItems_FileMappings = new Dictionary<Guid,string>();
            GuidanceExplorers_XmlFormat = new Dictionary<Guid, guidanceExplorer>();

            TMUsers = new List<TMUser>();
            TMUsersPasswordHashes = new O2.DotNetWrappers.DotNet.Items ();
            ActiveSessions = new Dictionary<Guid, TMUser>();

            setDataFromCurrentScript(@"..\..");

            /*	"[TM_Xml_Database]: TMConfig.BaseFolder: {0}".info(TMConfig.BaseFolder);
                Path_XmlDatabase = TMConfig.BaseFolder.pathCombine(@"..\..\Library_Data\XmlDatabase").fullPath();
                "[TM_Xml_Database] in static ctor: Path to XMLDatabase = {0}".info(Path_XmlDatabase);
                //Path_XmlDatabase = AppDomain.CurrentDomain.BaseDirectory.pathCombine(@"..\..\Library_Data\XmlDatabase").fullPath();
                setLibraryPath(TMConfig.Current.XmlLibrariesPath);

                TM_Xml_Database_Load_and_FileCache_Utils.populateGuidanceItemsFileMappings();	//only do this once
            */
        }