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;
    }
示例#2
0
 public void DeleteCrime(SecurityRecordCrime crimeToDelete)
 {
     record.Crimes.Remove(crimeToDelete);
     UpdateEntry();
 }
示例#3
0
 /// <summary>
 /// Set Editing field for crime entry.
 /// </summary>
 public void SetEditingField(NetLabel fieldToEdit, SecurityRecordCrime crimeToEdit)
 {
     currentlyEditingField = fieldToEdit;
     currentlyEditingCrime = crimeToEdit;
 }