public FloorPackPlugin(ISettingService settingService, FloorPackSettings floorPackSettings, FloorPackRecordObjectContext objectContext) { _settingService = settingService; _floorPackSettings = floorPackSettings; _objectContext = objectContext; }
/// <summary> /// Install plugin /// </summary> public override void Install() { //settings var settings = new FloorPackSettings() { WidgetZone = DEFAULT_ZONE }; _settingService.SaveSetting(settings); //this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.FloorPack.ButtonCode", "Button code(max 2000)"); //this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.FloorPack.ButtonCode.Hint", "Enter your button code here."); //this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.FloorPack.LiveChat", "Live chat"); //this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.FloorPack.MonitoringCode", "Monitoring code(max 2000)"); //this.AddOrUpdatePluginLocaleResource("Plugins.Widgets.FloorPack.MonitoringCode.Hint", "Enter your monitoring code here."); _objectContext.Install(); base.Install(); }