public AccommodationServiceViewModel(Core.Model.AccommodationService service, AccommodationServicesViewModel accommodationServicesViewModel) { AccommodationServicesViewModel = accommodationServicesViewModel; AddOrSaveButton = "Add"; if (service != null) { AddOrSaveButton = "Save"; Service = service; Name = Service.Name; Description = Service.Description; } ConfirmAddOrUpdateServiceCommand = new ConfirmAddOrUpdateServiceCommand(this); CancelServiceCommand = new CancelServiceCommand(this); }
public DeleteServiceCommand(AccommodationServicesViewModel accommodationServicesViewModel) { AccommodationServicesViewModel = accommodationServicesViewModel; }
public SaveServiceAffiliationCommand(AccommodationServicesViewModel accommodationServicesViewModel) { AccommodationServicesViewModel = accommodationServicesViewModel; }
public ServicesView(HomePageViewModel homePageViewModel) { InitializeComponent(); DataContext = new AccommodationServicesViewModel(homePageViewModel); }
public ServiceView(Core.Model.AccommodationService accommodationService, AccommodationServicesViewModel accommodationServicesViewModel) { InitializeComponent(); DataContext = new AccommodationServiceViewModel(accommodationService, accommodationServicesViewModel); }