Beispiel #1
0
 private static void AddNewGuiMap(string fileName)
 {
     lock (_globalPageCollection)
     {
         GlobalPageCollection.Add(fileName, GuiMapParser.GetInstance().LoadGuiMap(fileName));
     }
 }
Beispiel #2
0
 /// <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);
 }
        public Dictionary <string, string> GetValue(string logicalName)
        {
            Dictionary <string, Guimap> guiCollection = guiCollection = GetObjectCollection(_fileName);

            return(GetElementFromObjectLocator(GuiMapParser.GetInstance().GetElementValue(guiCollection, logicalName)));
        }