private IEnumerable <NamedLayer> GetLayers(string type)
 {
     return(from layer in LayerUtils.GetAllLayers(MxDocument, type)
            let name = MxDocument.Maps.Count > 1
                           ? LayerUtils.GetFullName(MxDocument, layer)
                           : LayerUtils.GetFullName(MxDocument.Maps.Item[0], layer)
                       select new NamedLayer
     {
         Name = name,
         Layer = layer
     });
 }