diff --git a/BookAStar/BookAStar/Pages/DashboardPage.xaml.cs b/BookAStar/BookAStar/Pages/DashboardPage.xaml.cs index 658e2384..0d6bac9c 100644 --- a/BookAStar/BookAStar/Pages/DashboardPage.xaml.cs +++ b/BookAStar/BookAStar/Pages/DashboardPage.xaml.cs @@ -1,4 +1,5 @@ -using System; +using BookAStar.ViewModels; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -31,15 +32,19 @@ namespace BookAStar.Pages public void OnViewPerformerStatus(object sender, EventArgs e) { - App.CurrentApp.ShowAccounts(); + ShowPage(null, true); } public void OnViewUserQueries(object sender, EventArgs e) { - App.CurrentApp.ShowQueries(); - + ShowPage(null, true); } + private void ShowPage(object [] args, bool animate=false) where T:Page + { + Resolver.Resolve().NavigateTo(animate, args); + App.MasterPresented = false; + } } }