Esempio n. 1
0
 private void btnVideoReturn_rental_Click_1(object sender, EventArgs e)
 {
     if (RentID > 0)
     {
         Bookings booking = new Bookings(RentID, Convert.ToInt32(txtClientID.Text), Convert.ToInt32(txtVideoID.Text), BookingDate.Text, ReturnDate.Text);
         booking.returnProduct();
     }
 }
Esempio n. 2
0
 private void btnVideoReturn_rental_Click(object sender, EventArgs e)
 {
     if (txtClientID.Text.ToString().Equals("") || txtVideoID.Text.ToString().Equals(""))
     {
         MessageBox.Show("Must select the video or client");
     }
     else
     {
         Bookings bookings = new Bookings(RentID, Convert.ToInt32(txtClientID.Text.ToString()), Convert.ToInt32(txtVideoID.Text.ToString()), BookingDate.Text.ToString(), ReturnDate.Text.ToString());
         bookings.returnProduct();
         RentID           = 0;
         txtVideoID.Text  = "";
         txtClientID.Text = "";
     }
 }