This class parses the GUI objects from an XML file and return the actual Element Value based on the logical name provided
Пример #1
0
        public T GetControl <T>(string guiMapPath, string logicalName) where T : WebControl
        {
            Logger.Debug(string.Format("Inside GetControl<T> Method", typeof(T).ToString()));
            Dictionary <string, Guimap> guiCollection = guiCollection = GetObjectCollection(guiMapPath);

            return(GetElementFromObjectLocator <T>(GuiMapParser.GetInstance().GetElementValue(guiCollection, logicalName)));
        }
Пример #2
0
 private static void AddNewGuiMap(string filename, string filepath)
 {
     LogCheckForCollection(filename);
     lock (globalPageCollection)
     {
         GlobalPageCollection.Add(filename, GuiMapParser.GetInstance().LoadGuiMap(filepath));
         Logger.Debug(string.Concat("Successfully Created ", filename, " Object Collection!"));
     }
 }
Пример #3
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);
 }
Пример #4
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;
 }