Exemple #1
0
 /// <summary>
 /// Finds the installed component with the specified UID, or returns null if no match is found.
 /// </summary>
 /// <param name="uid"></param>
 /// <returns></returns>
 public InstalledComponent GetInstalledComponentByUid(string uid)
 {
     return(InstalledComponents.Find(ic => ic.Component.Uid == uid));
 }
Exemple #2
0
 /// <summary>
 /// Find the installed component with the specified type code, or returns null if no match is found.
 /// </summary>
 /// <param name="componentTypeCode"></param>
 /// <returns></returns>
 public InstalledComponent GetInstalledComponent(string componentTypeCode)
 {
     return(InstalledComponents.Find(ic => ic.Component.Type.Code == componentTypeCode));
 }