internal static void Edit(Entities.Tour tour, Entities.TourGroup group, Entities.Abstract.ITourService service)
 {
     using (FrmGroupServiceEditor frm = new FrmGroupServiceEditor(
                tour, group, (Entities.TourServiceBase)service))
     {
         frm.ShowDialog();
     }
 }
 internal static void Delete(Entities.TourGroup tourGroup, Entities.Abstract.ITourService service)
 {
     if (Controllers.MessageBox.ConfirmDelete())
     {
         if (DomainModel.TourGroupServices.Delete(service))
         {
             tourGroup.Services.Remove(service);
         }
     }
 }
        internal static bool Delete(Entities.Abstract.ITourService service)
        {
            bool res = true;

            foreach (Entities.TourPayment payment in service.Payments)
            {
                if (!(res = repo.Delete(payment)))
                {
                    break;
                }
            }

            return(res);
        }
        internal static bool Delete(Entities.Abstract.ITourService service)
        {
            bool res = true;

            foreach (Entities.TourCostDetail cost in service.CostDetails)
            {
                if (!(res = repo.Delete(cost)))
                {
                    break;
                }
            }

            return(res);
        }
 internal static bool Load(Entities.Abstract.ITourService service)
 {
     return(repo.Load(service));
 }