Ejemplo 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>();
        }
Ejemplo n.º 2
0
 public SecondPageViewModel(INavigationService navigationService, BusinessLogic businessLogic = null)
 {
     this.navigationService = navigationService;
     this.businessLogic = businessLogic;
 }