public void ReInit(SecurityRecordCrime crimeToInit, GUI_SecurityRecordsEntryPage entryPageToInit) { crime = crimeToInit; entryPage = entryPageToInit; crimeText.SetValue = crime.Crime; detailsText.SetValue = crime.Details; authorText.SetValue = crime.Author; timeText.SetValue = crime.Time; }
public void DeleteCrime(SecurityRecordCrime crimeToDelete) { record.Crimes.Remove(crimeToDelete); UpdateEntry(); }
/// <summary> /// Set Editing field for crime entry. /// </summary> public void SetEditingField(NetLabel fieldToEdit, SecurityRecordCrime crimeToEdit) { currentlyEditingField = fieldToEdit; currentlyEditingCrime = crimeToEdit; }