private void setLoanReturned(int id)
 {
     try {
         keyRegister.setLoanReturned(id);
     }
     catch (KeyRegister.LoanIdNotFoundException e) {
         Console.WriteLine(e.Message);
     }
 }
Exemplo n.º 2
0
 protected void returnSelectedLoanClicked(object o, EventArgs e)
 {
     try
     {
         keyRegister.setLoanReturned(loanView.SelectedDbId);
     }
     catch (KeyRegister.LoanIdNotFoundException)
     {
         return;
     }
     doUpdates();
 }