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))); }
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!")); } }
/// <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); }
/// <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; }