public StoreViewModel(IRepositoryFactory <IStoreRepository> repositoryFactory, IStoreEntityFactory entityFactory, IViewModelsFactory <IStoreOverviewStepViewModel> overviewVmFactory, IViewModelsFactory <IStoreLocalizationStepViewModel> localizationVmFactory, IViewModelsFactory <IStoreTaxesStepViewModel> taxesVmFactory, IViewModelsFactory <IStorePaymentsStepViewModel> paymentsVmFactory, IViewModelsFactory <IStoreNavigationStepViewModel> navigationVmFactory, IViewModelsFactory <IStoreSettingStepViewModel> settingVmFactory, IViewModelsFactory <IStoreLinkedStoresStepViewModel> linkedStoresVmFactory, IViewModelsFactory <ISeoViewModel> seoVmFactory, IHomeSettingsViewModel parent, INavigationManager navManager, Store item) : base(entityFactory, item, false) { ViewTitle = new ViewTitleBase { SubTitle = "SETTINGS".Localize(null, LocalizationScope.DefaultCategory), Title = "Store" }; _repositoryFactory = repositoryFactory; _navManager = navManager; _parent = parent; _overviewVmFactory = overviewVmFactory; _localizationVmFactory = localizationVmFactory; _taxesVmFactory = taxesVmFactory; _paymentsVmFactory = paymentsVmFactory; _navigationVmFactory = navigationVmFactory; _settingVmFactory = settingVmFactory; _linkedStoresVmFactory = linkedStoresVmFactory; _seoVmFactory = seoVmFactory; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); }
public TaxViewModel( IRepositoryFactory <IOrderRepository> repositoryFactory, IRepositoryFactory <ICatalogRepository> catalogRepositoryFactory, IOrderEntityFactory entityFactory, IViewModelsFactory <IGeneralLanguagesStepViewModel> langVmFactory, IViewModelsFactory <ITaxValueViewModel> valueVmFactory, IHomeSettingsViewModel parent, INavigationManager navManager, Tax item) : base(entityFactory, item, false) { ViewTitle = new ViewTitleBase { SubTitle = "SETTINGS".Localize(null, LocalizationScope.DefaultCategory), Title = "Tax" }; _repositoryFactory = repositoryFactory; _catalogRepositoryFactory = catalogRepositoryFactory; _navManager = navManager; _parent = parent; _valueVmFactory = valueVmFactory; _langVmFactory = langVmFactory; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); CommandInit(); }
public TaxCategoryViewModel(IRepositoryFactory <ICatalogRepository> repositoryFactory, IOrderEntityFactory entityFactory, IHomeSettingsViewModel parent, INavigationManager navManager, TaxCategory item) : base(entityFactory, item, false) { ViewTitle = new ViewTitleBase { SubTitle = "SETTINGS".Localize(null, LocalizationScope.DefaultCategory), Title = "Tax Category" }; _repositoryFactory = repositoryFactory; _parent = parent; _navManager = navManager; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); }
public AppConfigSettingEditViewModel(IRepositoryFactory <IAppConfigRepository> repositoryFactory, IAppConfigEntityFactory entityFactory, IHomeSettingsViewModel parent, INavigationManager navManager, Setting item) : base(entityFactory, item, false) { _repositoryFactory = repositoryFactory; _navManager = navManager; _parent = parent; ViewTitle = new ViewTitleBase() { Title = "Setting", SubTitle = "SETTINGS".Localize(null, LocalizationScope.DefaultCategory) }; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); CommandInit(); }
public JurisdictionGroupViewModel(IRepositoryFactory <IOrderRepository> repositoryFactory, IOrderEntityFactory entityFactory, INavigationManager navManager, IHomeSettingsViewModel parent, JurisdictionTypes jurisdictionType, JurisdictionGroup item) : base(entityFactory, item, false) { _repositoryFactory = repositoryFactory; _parent = parent; _navManager = navManager; _jurisdictionType = jurisdictionType; ViewTitle = new ViewTitleBase { SubTitle = "SETTINGS".Localize(null, LocalizationScope.DefaultCategory), Title = "Jurisdiction Group" }; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); }
public ContentPlaceViewModel(IRepositoryFactory <IDynamicContentRepository> repositoryFactory, IDynamicContentEntityFactory entityFactory, IHomeSettingsViewModel parent, INavigationManager navManager, DynamicContentPlace item) : base(entityFactory, item, false) { ViewTitle = new ViewTitleBase { SubTitle = "SETTINGS".Localize(null, LocalizationScope.DefaultCategory), Title = "Content place" }; _repositoryFactory = repositoryFactory; _navManager = navManager; _parent = parent; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); }
public FulfillmentCenterViewModel(IRepositoryFactory <IFulfillmentCenterRepository> repositoryFactory, IRepositoryFactory <ICountryRepository> countryRepositoryFactory, IStoreEntityFactory entityFactory, IHomeSettingsViewModel parent, INavigationManager navManager, FulfillmentCenter item) : base(entityFactory, item, false) { ViewTitle = new ViewTitleBase { SubTitle = "SETTINGS".Localize(null, LocalizationScope.DefaultCategory), Title = "Fulfillment center" }; _repositoryFactory = repositoryFactory; _countryRepositoryFactory = countryRepositoryFactory; _navManager = navManager; _parent = parent; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); }
public EmailTemplateEditViewModel(IRepositoryFactory <IAppConfigRepository> repositoryFactory, IAppConfigEntityFactory entityFactory, IViewModelsFactory <IEmailTemplateAddLanguageViewModel> vmFactory, INavigationManager navManager, IHomeSettingsViewModel parent, EmailTemplate item) : base(entityFactory, item, false) { _repositoryFactory = repositoryFactory; _parent = parent; _navManager = navManager; _vmFactory = vmFactory; ViewTitle = new ViewTitleBase() { SubTitle = "SETTINGS".Localize(null, LocalizationScope.DefaultCategory), Title = "Email Template" }; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); CommandInit(); }
public CaseRuleViewModel(IViewModelsFactory <IMultiLineEditViewModel> multiLineEditVmFactory, IRepositoryFactory <ICustomerRepository> repositoryFactory, ICustomerEntityFactory entityFactory, IHomeSettingsViewModel parent, INavigationManager navManager, CaseRule item) : base(entityFactory, item, false) { ViewTitle = new ViewTitleBase() { Title = "Edit Rule", SubTitle = "SETTINGS".Localize(null, LocalizationScope.DefaultCategory) }; _repositoryFactory = repositoryFactory; _parent = parent; _navManager = navManager; _multiLineEditVmFactory = multiLineEditVmFactory; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); }
public LocalizationEditViewModel(IRepositoryFactory <IAppConfigRepository> repositoryFactory, IAppConfigEntityFactory entityFactory, NavigationManager navManager, IHomeSettingsViewModel parent, LocalizationGroup item) : base(entityFactory, item.TranslateLocalization) { _repositoryFactory = repositoryFactory; _parent = parent; _navManager = navManager; OriginalLocalizationGroup = item; ViewTitle = new ViewTitleBase() { SubTitle = "SETTINGS".Localize(null, LocalizationScope.DefaultCategory), Title = "Localization" }; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); }
public SystemJobEditViewModel(IRepositoryFactory <IAppConfigRepository> repositoryFactory, IAppConfigEntityFactory entityFactory, IViewModelsFactory <IAddParameterViewModel> vmFactory, INavigationManager navManager, SystemJob item, IHomeSettingsViewModel parent) : base(entityFactory, item, false) { _repositoryFactory = repositoryFactory; _navManager = navManager; _parent = parent; _vmFactory = vmFactory; ViewTitle = new ViewTitleBase() { Title = "System job", SubTitle = "SETTINGS".Localize(null, LocalizationScope.DefaultCategory) }; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); CommandInit(); if (History == null) { OnUIThread(Refresh); } }
public ShippingOptionViewModel( IViewModelsFactory <IShippingOptionAddShippingPackageViewModel> addPackageVmFactory, IRepositoryFactory <IShippingRepository> repositoryFactory, IOrderEntityFactory entityFactory, IHomeSettingsViewModel parent, INavigationManager navManager, ShippingOption item, ICatalogRepository catalogRepository) : base(entityFactory, item, false) { ViewTitle = new ViewTitleBase { SubTitle = "SETTINGS".Localize(null, LocalizationScope.DefaultCategory), Title = "Shipping Option" }; _repositoryFactory = repositoryFactory; _navManager = navManager; _parent = parent; _addPackageVmFactory = addPackageVmFactory; _catalogRepository = catalogRepository; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); CommandInit(); }
public CaseTemplateViewModel( IViewModelsFactory <ICaseTemplatePropertyViewModel> templatePropertyVmFactory, IRepositoryFactory <ICustomerRepository> repositoryFactory, ICustomerEntityFactory entityFactory, IHomeSettingsViewModel parent, INavigationManager navManager, CaseTemplate item) : base(entityFactory, item, false) { ViewTitle = new ViewTitleBase() { SubTitle = (item != null && !string.IsNullOrEmpty(item.Name)) ? item.Name : "", Title = "CASE TYPES" }; _templatePropertyVmFactory = templatePropertyVmFactory; _repositoryFactory = repositoryFactory; _navManager = navManager; _parent = parent; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); InitCommands(); }
public PaymentMethodViewModel(IRepositoryFactory <IPaymentMethodRepository> repositoryFactory, IRepositoryFactory <IShippingRepository> shippingRepositoryFactory, IOrderEntityFactory entityFactory, INavigationManager navManager, IViewModelsFactory <IGeneralLanguagesStepViewModel> langVmFactory, IHomeSettingsViewModel parent, PaymentMethod item) : base(entityFactory, item, false) { ViewTitle = new ViewTitleBase { SubTitle = "SETTINGS".Localize(null, LocalizationScope.DefaultCategory), Title = "Payment Method" }; _navManager = navManager; _parent = parent; _repositoryFactory = repositoryFactory; _shippingRepositoryFactory = shippingRepositoryFactory; _langVmFactory = langVmFactory; PropertyValues = new ObservableCollection <GeneralPropertyValueEditViewModel>(); OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); InitCommand(); }
public CasePropertySetViewModel(IViewModelsFactory <ICasePropertyViewModel> casePropertyVmFactory, IRepositoryFactory <ICustomerRepository> repositoryFactory, ICustomerEntityFactory entityFactory, IHomeSettingsViewModel parent, INavigationManager navManager, CasePropertySet item) : base(entityFactory, item) { ViewTitle = new ViewTitleBase() { Title = "INFO", SubTitle = (item != null && !string.IsNullOrEmpty(item.Name)) ? item.Name : "" }; _casePropertyVmFactory = casePropertyVmFactory; _repositoryFactory = repositoryFactory; _navManager = navManager; _parent = parent; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); ItemAddCommand = new DelegateCommand(RaiseItemAddInteractionRequest); ItemEditCommand = new DelegateCommand <CaseProperty>(RaiseItemEditInteractionRequest, x => x != null); ItemDeleteCommand = new DelegateCommand <CaseProperty>(RaiseItemDeleteInteractionRequest, x => x != null); CommonWizardDialogRequest = new InteractionRequest <Confirmation>(); }
public ShippingMethodViewModel( IRepositoryFactory <IAppConfigRepository> appConfigRepositoryFactory, IViewModelsFactory <IGeneralLanguagesStepViewModel> languagesVmFactory, IRepositoryFactory <IShippingRepository> repositoryFactory, IRepositoryFactory <IPaymentMethodRepository> paymentMethdRepositoryFactory, IRepositoryFactory <IOrderRepository> orderRepositoryFactory, IOrderEntityFactory entityFactory, IHomeSettingsViewModel parent, INavigationManager navManager, ShippingMethod item) : base(entityFactory, item, false) { ViewTitle = new ViewTitleBase { SubTitle = "SETTINGS".Localize(null, LocalizationScope.DefaultCategory), Title = "Shipping Method" }; _repositoryFactory = repositoryFactory; _paymentMethdRepositoryFactory = paymentMethdRepositoryFactory; _orderRepositoryFactory = orderRepositoryFactory; _navManager = navManager; _parent = parent; _languagesVmFactory = languagesVmFactory; _appConfigRepositoryFactory = appConfigRepositoryFactory; OpenItemCommand = new DelegateCommand(() => _navManager.Navigate(NavigationData)); }