PersistentTrails.Track.addLogEntry C# (CSharp) Method

addLogEntry() public method

public addLogEntry ( string label, string description ) : void
label string
description string
return void
        public void addLogEntry(string label, string description)
        {
            LogEntry logEntry = new LogEntry(label, description, this.SourceVessel);
            logEntries.Add(logEntry);

            //add new point to renderer
            if (Visible)
            {
                setupLogEntryLabel(logEntry);
            }

            Modified = true;
        }

Usage Example

 public void AddLogEntry(String label, String description)
 {
     if (activeTrack != null)
     {
         activeTrack.addLogEntry(label, description);
     }
 }