コード例 #1
0
 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);
 }
コード例 #2
0
 public DeleteServiceCommand(AccommodationServicesViewModel accommodationServicesViewModel)
 {
     AccommodationServicesViewModel = accommodationServicesViewModel;
 }
コード例 #3
0
 public SaveServiceAffiliationCommand(AccommodationServicesViewModel accommodationServicesViewModel)
 {
     AccommodationServicesViewModel = accommodationServicesViewModel;
 }
コード例 #4
0
 public ServicesView(HomePageViewModel homePageViewModel)
 {
     InitializeComponent();
     DataContext = new AccommodationServicesViewModel(homePageViewModel);
 }
コード例 #5
0
 public ServiceView(Core.Model.AccommodationService accommodationService, AccommodationServicesViewModel accommodationServicesViewModel)
 {
     InitializeComponent();
     DataContext = new AccommodationServiceViewModel(accommodationService, accommodationServicesViewModel);
 }