//remove bookings if required private void removeBookings() { StaffDB staffdb = new StaffDB(db); int count = staffdb.countStaff(staff[stafflist.SelectedIndex].Forename); if (count <= 2) // if there will be less than two staff remove the bookings { int deleted = staffdb.DeleteDates(staff[stafflist.SelectedIndex].Forename); MessageBox.Show($"{deleted} Bookings temporarly removed due to the removal of the staff member, add another staff member to get these bookings back, check by-date to view bookings removed"); } }