﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Stylet.Samples.NavigationController.Pages
{
    public class Page1ViewModel : Screen
    {
        private readonly INavigationController navigationController;

        public Page1ViewModel(INavigationController navigationController)
        {
            this.navigationController = navigationController ?? throw new ArgumentNullException(nameof(navigationController));
        }

        public void NavigateToPage2() => this.navigationController.NavigateToPage2("Page 1");
    }
}
