/// <summary> Populates/builds the main default HTML skin during application startup </summary> /// <param name="Skin_List"> List of skin to populate with the default, commonly used skin</param> /// <param name="tracer"> Trace object keeps a list of each method executed and important milestones in rendering </param> /// <returns> TRUE if successful, otherwise FALSE </returns> /// <remarks> Most HTML skins are built as they are needed and then cached for a period of time. The main default skins are /// permanently stored in this global <see cref="SobekCM_Skin_Collection"/> object.<br /><br /> /// The default skins currently include: UFDC (english), dLOC (english, french, and spanish) </remarks> public static bool Populate_Default_Skins(SobekCM_Skin_Collection Skin_List, Custom_Tracer tracer) { tracer.Add_Trace("SobekCM_Skin_Collection_Builder.Populate_Default_Skins", "Build the standard interfaces"); // Get the data from the database DataTable skinData = SobekCM_Database.Get_All_Web_Skins(tracer); // Just return if the data appears bad.. if ((skinData == null) || (skinData.Rows.Count == 0)) { return(false); } // Clear existing interfaces Skin_List.Clear(); // Set the data table Skin_List.Skin_Table = skinData; return(true); }