public void Initialize() { shellService.ShellView = ShellViewModel.View; ShellViewModel.ExitCommand = exitCommand; ShellViewModel.Closing += ShellViewModelClosing; entityController.Initialize(); bookController.Initialize(); personController.Initialize(); }
public void Initialize() { // Upgrade the settings from a previous version when the new version starts the first time. if (Settings.Default.IsUpgradeNeeded) { Settings.Default.Upgrade(); Settings.Default.IsUpgradeNeeded = false; } shellService.ShellView = ShellViewModel.View; ShellViewModel.ExitCommand = exitCommand; ShellViewModel.Closing += ShellViewModelClosing; entityController.Initialize(); bookController.Initialize(); personController.Initialize(); }