Initialize() public method

public Initialize ( ) : void
return void
Example #1
0
        public void Initialize()
        {
            shellService.ShellView     = ShellViewModel.View;
            ShellViewModel.ExitCommand = exitCommand;
            ShellViewModel.Closing    += ShellViewModelClosing;

            entityController.Initialize();
            bookController.Initialize();
            personController.Initialize();
        }
Example #2
0
        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();
        }