Esempio n. 1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            BusinessLogic businessLogic = new BusinessLogic();

            MainWindow mainWindow = new MainWindow();
            mainWindow.Show();

            Navigation = new NavigationService(mainWindow.MyFrame);
            Navigation.Navigate<FirstPage>();
        }
Esempio n. 2
0
 public SecondPageViewModel(INavigationService navigationService, BusinessLogic businessLogic = null)
 {
     this.navigationService = navigationService;
     this.businessLogic = businessLogic;
 }