Example #1
0
 private void btnConfirm_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (_boatManager.MarkBoatRented(_boat))
         {
             MessageBox.Show("Rental Confirmed.");
             this.DialogResult = true;
         }
         else
         {
             MessageBox.Show("Boat could not be rented.");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }