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(); } }
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(); } }
private void rental_del_Click(object sender, EventArgs e) { Bookings booking = new Bookings(RentID, Convert.ToInt32(txtClientID.Text), Convert.ToInt32(txtVideoID.Text), BookingDate.Text, ReturnDate.Text); booking.deleteBookng(RentID); MessageBox.Show("Record IS deleted "); txtClientID.Text = ""; txtVideoID.Text = ""; RentID = 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 = ""; } }