public void viewCancelledBooking() { sports = new SportsAllEntities(); cancelledBook = new CancelledBooking(); var cancelledBooking = from y in sports.CancelledBookings select y; ViewBooking vb = new ViewBooking("Cancel"); vb.collectList = cancelledBooking.ToList <CancelledBooking>(); vb.ShowDialog(); }
private void btnView_Click(object sender, EventArgs e) { ViewBooking vb = new ViewBooking("Booking"); DialogResult r = vb.ShowDialog(); }