/// <summary>
 /// Lists keys in database.
 /// </summary>
 private void listKeys()
 {
     foreach (Key key in keyRegister.getAllKeys())
     {
         Console.WriteLine("[" + key.DbId + "] " + key.Identifier + ": " + key.Name);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Updates key and loan tables from register.
 /// </summary>
 public void doUpdates()
 {
     keyView.addValues(keyRegister.getAllKeys());
     loanView.addValues(keyRegister.getAllActiveLoans());
 }