public InsureeDetailsViewModel(IInsureeManagementAppService insureeManagementAppService, ILogger<InsureeDetailsViewModel> logger) { _insureeManagementAppService = insureeManagementAppService; _logger = logger; Insuree = new ObservableObject<DetailInsuree>(); _isAddressExpanded = new ObservableObject<bool> {Value = false}; _isPhoneNumberExpanded = new ObservableObject<bool> {Value = false}; _isEmailAddressExpanded = new ObservableObject<bool> {Value = false}; ShowPartnerDetailsCommand = new DelegateCommand(ShowPartnerDetailsExecute); }
public InsureeAddOrEditViewModel(ILogger <InsureeAddOrEditViewModel> logger, IInsureeManagementAppService insureeManagementAppService, INavigationAppService navigationAppService) { _logger = logger; _insureeManagementAppService = insureeManagementAppService; _navigationAppService = navigationAppService; ConfirmationRequest = new InteractionRequest <IConfirmation>(); Insuree = new ObservableObject <AddOrEditInsuree>(); SaveAddOrEditInsureeCommand = new DelegateCommand(SaveAddOrEditInsureeExecute, CanSaveAddOrEditInsuree); CancelAddOrEditInsureeCommand = new DelegateCommand(CancelAddOrEditInsureeExecute); }
public InsureeAddOrEditViewModel(ILogger<InsureeAddOrEditViewModel> logger, IInsureeManagementAppService insureeManagementAppService, INavigationAppService navigationAppService) { _logger = logger; _insureeManagementAppService = insureeManagementAppService; _navigationAppService = navigationAppService; ConfirmationRequest = new InteractionRequest<IConfirmation>(); Insuree = new ObservableObject<AddOrEditInsuree>(); SaveAddOrEditInsureeCommand = new DelegateCommand(SaveAddOrEditInsureeExecute, CanSaveAddOrEditInsuree); CancelAddOrEditInsureeCommand = new DelegateCommand(CancelAddOrEditInsureeExecute); }
public InsureeListViewModel(IInsureeManagementAppService insureeManagementAppService, ILogger<InsureeListViewModel> logger, INavigationAppService navigationAppService) { _insureeManagementAppService = insureeManagementAppService; _logger = logger; _navigationAppService = navigationAppService; InsureeData = new ObservableCollection<ListInsuree>(); SelectedPage = new ObservableObject<int> {Value = 1}; PageSize = new ObservableObject<int> {Value = 5}; TotalPages = new ObservableObject<int>(); SubscribeEvents(); ShowDetailsCommand = new DelegateCommand(ShowDetailsExecute, HasSelectedInsuree); EditInsureeCommand = new DelegateCommand(EditInsureeExecute, HasSelectedInsuree); }
public InsureeDetailsViewModel(IInsureeManagementAppService insureeManagementAppService, ILogger <InsureeDetailsViewModel> logger) { _insureeManagementAppService = insureeManagementAppService; _logger = logger; Insuree = new ObservableObject <DetailInsuree>(); _isAddressExpanded = new ObservableObject <bool> { Value = false }; _isPhoneNumberExpanded = new ObservableObject <bool> { Value = false }; _isEmailAddressExpanded = new ObservableObject <bool> { Value = false }; ShowPartnerDetailsCommand = new DelegateCommand(ShowPartnerDetailsExecute); }
public InsureeListViewModel(IInsureeManagementAppService insureeManagementAppService, ILogger <InsureeListViewModel> logger, INavigationAppService navigationAppService) { _insureeManagementAppService = insureeManagementAppService; _logger = logger; _navigationAppService = navigationAppService; InsureeData = new ObservableCollection <ListInsuree>(); SelectedPage = new ObservableObject <int> { Value = 1 }; PageSize = new ObservableObject <int> { Value = 5 }; TotalPages = new ObservableObject <int>(); SubscribeEvents(); ShowDetailsCommand = new DelegateCommand(ShowDetailsExecute, HasSelectedInsuree); EditInsureeCommand = new DelegateCommand(EditInsureeExecute, HasSelectedInsuree); }