private Navigation() { _resolver = PagesResolver.GetInstance(); pages = new Stack <Page>(); viewModels = new Stack <BaseViewModel>(); pages.Push(new LoginPage()); viewModels.Push(new LoginViewModel()); }
public static PagesResolver GetInstance() { if (instance == null) { lock (_lock) { if (instance == null) { instance = new PagesResolver(); } } } return(instance); }