示例#1
0
 public TrackObjectBase GetLayoutByLayoutId(string layoutId)
 {
     return(MultiLayouts?.FirstOrDefault(x => x.LayoutId?.Equals(layoutId, StringComparison.OrdinalIgnoreCase) == true));
 }
示例#2
0
 public TrackObjectBase GetLayoutById(string idWithLayout)
 {
     return(MultiLayouts?.FirstOrDefault(x => x.IdWithLayout.Equals(idWithLayout, StringComparison.OrdinalIgnoreCase)) ??
            (idWithLayout == Id ? this : null));
 }