private void RoomBookingView_Load(object sender, System.EventArgs e)
 {
     TransactionalChangeHandler.Hookup <RoomBooking>(
         DocumentManager.FromControl(ParentForm).View, unitOfWork, saveChangesItem,
         discardChangesItem, null, null, null, null, null, null,
         RoomBookingView_Closing,
         saveChangesItem_ItemClick,
         discardChangesItem_ItemClick);
 }
 private void EventView_Load(object sender, System.EventArgs e)
 {
     TransactionalChangeHandler.Hookup <Event>(
         DocumentManager.FromControl(ParentForm).View, unitOfWork, commitChangesItem,
         discardChangesItem, eventCollection);
 }
 private void CustomerList_Load(object sender, System.EventArgs e)
 {
     TransactionalChangeHandler.Hookup <Customer>(
         DocumentManager.FromControl(ParentForm).View, unitOfWork, saveChangesItem,
         discardChangesItem, customerCollection);
 }