private string GetNameDescription(ComponentModel componentModel)
 {
     if (componentModel.ComponentName.SetByUser)
     {
         return(componentModel.ComponentName.Name);
     }
     return(componentModel.ToString());
 }
 private static string GetNameDescription(ComponentModel componentModel)
 {
     return(componentModel.ComponentName.SetByUser ? componentModel.ComponentName.Name : componentModel.ToString());
 }