예제 #1
0
파일: App.xaml.cs 프로젝트: AntwanReno/navi
        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>();
        }
예제 #2
0
 public SecondPageViewModel(INavigationService navigationService, BusinessLogic businessLogic = null)
 {
     this.navigationService = navigationService;
     this.businessLogic = businessLogic;
 }