GH_MRU_Server

References
public class GH_MRU_Server
Maintains a list of MRU (Most Recently Used) records.

Properties

RecordCount

#
Gets the number of records stored in this server. This is not necessarily the same as the number of records returned via the Records property.
public int RecordCount { get; }

Records

#
Gets the MRU records stored in the server. Records are sorted from oldest to newest. The number of records returned is never more than VisibleRecords
public List<GH_MRU_Entry> Records { get; }

VisibleRecords

#
Gets or sets the total number of visible Records in MRU interface.
public static int VisibleRecords { get; set; }

Methods

AppendRecentFileRecord

#
Add a new MRU event to this server.
public void AppendRecentFileRecord(
new_date,
Date of event.
new_path
File path associated with event.
)

Clear

#
Destroy all MRU records.
public void Clear()

ClearMissingRecords

#
Destroy all MRU records that no longer point to existing files.
public void ClearMissingRecords()

ReadList

#
Read the MRU data from the grasshopper settings folder.
public void ReadList()

WriteList

#
Write the MRU data to the Grasshopper settings folder.
public void WriteList()

Events

MRURecordCountChanged

#
Event raised whenever the record count of an MRU server changes.
public static event GH_MRU_Server.MRURecordCountChangedEventHandler MRURecordCountChanged

VisibleRecordCountChanged

#
Event raised whenever the number of visible records is changed.
public static event GH_MRU_Server.VisibleRecordCountChangedEventHandler VisibleRecordCountChanged