public Widget() { this.CssClass = "widget"; _settings = new WidgetSettings("div", "widget-header ui top attached message", "div", "widget-body ui attached segment", "", "ui bottom attached segment"); }
public WidgetService(IPluginFinder pluginFinder, WidgetSettings widgetSettings) { this._pluginFinder = pluginFinder; this._widgetSettings = widgetSettings; }
public static bool IsWidgetActive(this Lazy <IWidget, ProviderMetadata> widget, WidgetSettings widgetSettings) { Guard.NotNull(widget, nameof(widget)); Guard.NotNull(widgetSettings, nameof(widgetSettings)); if (widgetSettings.ActiveWidgetSystemNames == null) { return(false); } return(widgetSettings.ActiveWidgetSystemNames.Contains(widget.Metadata.SystemName, StringComparer.OrdinalIgnoreCase)); }
public Widget() { this.CssClass = "widget"; _settings = new WidgetSettings("div", "widget-header ui top attached message", "div", "widget-body ui attached segment", "", "ui bottom attached segment"); }
public WidgetPluginManager(ICustomerService customerService, IPluginService pluginService, WidgetSettings widgetSettings) : base(customerService, pluginService) { _widgetSettings = widgetSettings; }
public WidgetPluginManager(WidgetSettings widgetSettings, IPluginService pluginService) : base(pluginService) { _widgetSettings = widgetSettings; }
public CommonModelFactory(AdminAreaSettings adminAreaSettings, CatalogSettings catalogSettings, CurrencySettings currencySettings, IActionContextAccessor actionContextAccessor, ICurrencyService currencyService, ICustomerService customerService, IDateTimeHelper dateTimeHelper, INopFileProvider fileProvider, IHttpContextAccessor httpContextAccessor, ILanguageService languageService, ILocalizationService localizationService, IMaintenanceService maintenanceService, IMeasureService measureService, IOrderService orderService, IPaymentService paymentService, IPluginFinder pluginFinder, IProductService productService, IReturnRequestService returnRequestService, ISearchTermService searchTermService, IStoreContext storeContext, IStoreService storeService, IUrlHelperFactory urlHelperFactory, IUrlRecordService urlRecordService, IWebHelper webHelper, IWorkContext workContext, ExternalAuthenticationSettings externalAuthenticationSettings, MeasureSettings measureSettings, PaymentSettings paymentSettings, ShippingSettings shippingSettings, TaxSettings taxSettings, WidgetSettings widgetSettings) { this._adminAreaSettings = adminAreaSettings; this._catalogSettings = catalogSettings; this._currencySettings = currencySettings; this._actionContextAccessor = actionContextAccessor; this._currencyService = currencyService; this._customerService = customerService; this._dateTimeHelper = dateTimeHelper; this._fileProvider = fileProvider; this._httpContextAccessor = httpContextAccessor; this._languageService = languageService; this._localizationService = localizationService; this._maintenanceService = maintenanceService; this._measureService = measureService; this._orderService = orderService; this._paymentService = paymentService; this._pluginFinder = pluginFinder; this._productService = productService; this._returnRequestService = returnRequestService; this._searchTermService = searchTermService; this._storeContext = storeContext; this._storeService = storeService; this._urlHelperFactory = urlHelperFactory; this._urlRecordService = urlRecordService; this._webHelper = webHelper; this._workContext = workContext; this._externalAuthenticationSettings = externalAuthenticationSettings; this._measureSettings = measureSettings; this._paymentSettings = paymentSettings; this._shippingSettings = shippingSettings; this._taxSettings = taxSettings; this._widgetSettings = widgetSettings; }
public WidgetModelFactory(IWidgetService widgetService, WidgetSettings widgetSettings) { this._widgetService = widgetService; this._widgetSettings = widgetSettings; }
// need to make an overload of the savesettingsfile function that takes in an widgetsettings object // that contains all of the settings that need saved // this can be used to save off the minimap settings whenever a size or zoom button is clicked by passing in // an object that contains the new minimap settings public void SaveSettingsFile(WidgetSettings objToSave, Type settingsType) { XmlIO.Save(objToSave, settingsFileFolderPath + "/" + settingsType.Name + ".sets"); }
public static bool IsWidgetActive(this Provider <IWidget> widget, WidgetSettings widgetSettings) { Guard.ArgumentNotNull(() => widget); return(widget.ToLazy().IsWidgetActive(widgetSettings)); }