public void ReInit(SecurityRecord record, GUI_SecurityRecords recordsTab) { if (record == null) { Logger.Log("SecurityRecordItem: no record found, not doing init", Category.NetUI); return; } securityRecord = record; securityRecordsTab = recordsTab; recordNameText.SetValue = record.EntryName; recordIdText.SetValue = record.ID; recordRankText.SetValue = record.Rank; recordFingerprintsText.SetValue = record.Fingerprints; recordStatusText.SetValue = record.Status.ToString(); recordBgColor.SetValue = GetStatusColor(record.Status); }
public void OnOpen(GUI_SecurityRecords recordsTab) { securityRecordsTab = recordsTab; ResetList(); UpdateTab(); }
public void OnOpen(SecurityRecord recordToOpen, GUI_SecurityRecords recordsTab) { record = recordToOpen; securityRecordsTab = recordsTab; UpdateEntry(); }