public void SetInfo(ulong id, bool newScreen = true) { ArtistID = id; if (!newScreen) return; // if this screen use for navigation system var screen = new Screen(Screen.ScreenType.ArtistDetail, ArtistID); GlobalVariables.Navigation.AddScreen(screen); }
public void SetInfo(bool newScreen = true) { if (!newScreen) return;// Get from Navigation System var screen = new Screen(Screen.ScreenType.StoreScreen); GlobalVariables.Navigation.AddScreen(screen); }
public void SetCategory(string category, bool newScreen = true) { ViewModel.Category = category; if (!newScreen) return;// Get from navigation system var screen = new Screen(Screen.ScreenType.SeeAll, category); GlobalVariables.Navigation.AddScreen(screen); }
public void SetInfo(ulong motionID, bool newScreen = true) { MotionID = motionID; if (!newScreen) return; // Get from navigation system var screen = new Screen(Screen.ScreenType.MotionDetail, MotionID); GlobalVariables.Navigation.AddScreen(screen); }
public void SetQuery(string query, bool newScreen = true) { Query = query; ViewModel.SearchQuery = query; if (!newScreen) return;// Get from navigation system var screen = new Screen(Screen.ScreenType.Search, query); GlobalVariables.Navigation.AddScreen(screen); }
public void AddScreen(Screen screen) { if (CurrentIndex < ScreenList.Count - 1 && !CompareScreen(screen, ScreenList[CurrentIndex + 1]) && ScreenList.Count - (CurrentIndex + 1) > 0) { ScreenList.RemoveRange(CurrentIndex + 1, ScreenList.Count - (CurrentIndex + 1)); } ScreenList.Add(screen); CurrentIndex++; UpdateNavigationButton(); }
private bool CompareScreen(Screen a, Screen b) { return ((a.Type == b.Type) && (a.Parameter == b.Parameter)); }