Initialize() public méthode

public Initialize ( ) : void
Résultat void
Exemple #1
0
        public void Initialize()
        {
            shellService.ShellView     = ShellViewModel.View;
            ShellViewModel.ExitCommand = exitCommand;
            ShellViewModel.Closing    += ShellViewModelClosing;

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