/// <summary> /// Handles the Initialized event of the Bootstrapper. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Sitefinity.Data.ExecutedEventArgs"/> instance containing the event data.</param> protected virtual void Bootstrapper_Initialized(object sender, ExecutedEventArgs e) { if (e.CommandName == "Bootstrapped") { this.RegisterFileObservers(); var controllerInitializer = new ControllerInitializer(); controllerInitializer.Initialize(); var layoutsInitializer = new LayoutInitializer(); layoutsInitializer.Initialize(); var gridSystemInitializer = new GridSystemInitializer(); gridSystemInitializer.Initialize(); var designerInitializer = new DesignerInitializer(); designerInitializer.Initialize(); this.RegisterScripts(); } }
/// <summary> /// Handles the Initialized event of the Bootstrapper. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Sitefinity.Data.ExecutedEventArgs"/> instance containing the event data.</param> protected virtual void Bootstrapper_Initialized(object sender, ExecutedEventArgs e) { if (e.CommandName == "Bootstrapped") { var resourcesInitializer = new ResourcesInitializer(); resourcesInitializer.Initialize(); var fileMonitoringInitilizer = new FileMonitoringInitializer(); fileMonitoringInitilizer.Initialize(); var controllerContainerInitializer = new ControllerContainerInitializer(); controllerContainerInitializer.Initialize(); var layoutsInitializer = new LayoutInitializer(); layoutsInitializer.Initialize(); var gridSystemInitializer = new GridSystemInitializer(); gridSystemInitializer.Initialize(); var designerInitializer = new DesignerInitializer(); designerInitializer.Initialize(); } }