protected override void Configure() { try { SetupDb(); // Check and update modules var updateModules = Properties.Settings.Default.UpdateModules; FrameworkManager.UpdateModules(updateModules); // Init admin FrameworkManager.AdminExists(true); // Clean data and files FrameworkManager.CleanFiles(); // Reload new modules FrameworkManager.ReloadModules(); // Load Settings in memory DataHelpers.PosSettings = PosSettings.getInstance(); var viewManager = this.Container.Get <ViewManager>(); var setting = new ElvaSettings().getInstance(); DataHelpers.Settings = setting; } catch (Exception s) { MessageBox.Show(s.Message); } }