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