Initialize() public method

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

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