コード例 #1
0
 private void setLoanReturned(int id)
 {
     try {
         keyRegister.setLoanReturned(id);
     }
     catch (KeyRegister.LoanIdNotFoundException e) {
         Console.WriteLine(e.Message);
     }
 }
コード例 #2
0
 protected void returnSelectedLoanClicked(object o, EventArgs e)
 {
     try
     {
         keyRegister.setLoanReturned(loanView.SelectedDbId);
     }
     catch (KeyRegister.LoanIdNotFoundException)
     {
         return;
     }
     doUpdates();
 }