Example #1
0
 private void btnVideoIssue_rental_Click_1(object sender, EventArgs e)
 {
     if (!txtClientID.Text.Equals("") && !txtVideoID.Text.Equals(""))
     {
         Bookings booking = new Bookings(Convert.ToInt32(txtClientID.Text), Convert.ToInt32(txtVideoID.Text), BookingDate.Text);
         booking.bookProduct();
     }
 }
Example #2
0
 private void btnVideoIssue_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(Convert.ToInt32(txtClientID.Text.ToString()), Convert.ToInt32(txtVideoID.Text.ToString()), BookingDate.Text.ToString());
         bookings.bookProduct();
         txtVideoID.Text  = "";
         txtClientID.Text = "";
     }
 }