GH_MRU_Server

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

Properties

RecordCount

#
public int RecordCount { get; }
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.

Records

#
public List<GH_MRU_Entry> Records { get; }
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

VisibleRecords

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

Methods

AppendRecentFileRecord

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

Clear

#
public void Clear()
Destroy all MRU records.

ClearMissingRecords

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

ReadList

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

WriteList

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

Events

MRURecordCountChanged

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

VisibleRecordCountChanged

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