/// <summary> /// GetDesktopModuleByName is a Utility function that retrieves the Desktop Module /// defeined by the name provided. /// </summary> /// <remarks> /// </remarks> /// <param name="name">The Name of the Module</param> /// <returns>The Desktop Module</returns> public static DesktopModuleInfo GetDesktopModuleByName(string name) { DesktopModuleController objDesktopModules = new DesktopModuleController(); //First attempt to retrieve the module based on the Module Name DesktopModuleInfo objDesktopModule = objDesktopModules.GetDesktopModuleByModuleName(name); if (objDesktopModule == null) { //Next attempt to retrieve the module based on the Friendly Name objDesktopModule = objDesktopModules.GetDesktopModuleByFriendlyName(name); } return objDesktopModule; }