/// <summary> /// Check is the numbers of entries binded to the given Marker /// </summary> /// <param name="marker">Marker to check</param> /// <returns>True if some entries are binded to the marker, false otherwise</returns> public bool IsMultiMarker(TextMarker marker) { return(marker.LogEntries.Count > 0); }
/// <summary> /// Delete the given TextMarker /// </summary> /// <param name="marker">TextMarker to be deleted</param> public void DeleteTextMarker(TextMarker marker) { Markers.Remove(marker); }
/// <summary> /// Add a textmarker linked to the given logentry list /// </summary> /// <param name="list">List of logEntry</param> /// <param name="marker">TextMarker</param> /// <returns>Markers</returns> public TextMarker AddTextMarker(IEnumerable <ILogEntry> list, TextMarker marker) { marker.LogEntries = list.Cast <LogEntry>().ToList(); Markers.Add(marker); return(marker); }