/// <summary> /// Gets the instance. /// </summary> /// <returns></returns> public static GuiMapParser GetInstance() { if (guiMapParser == null) { Logger.Debug("Creating new instance of GuiMapParser"); guiMapParser = new GuiMapParser(); return(guiMapParser); } return(guiMapParser); }
private static void AddNewGuiMap(string filename, string filepath) { LogCheckForCollection(filename); GlobalPageCollection.Add(filename, GuiMapParser.GetInstance().LoadGuiMap(filepath)); Logger.Debug(string.Concat("Successfully Created ", filename, " Object Collection!")); }