示例#1
0
 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);
 }
示例#2
0
        public void SetInfo(bool newScreen = true)
        {
            if (!newScreen) return;// Get from Navigation System

            var screen = new Screen(Screen.ScreenType.StoreScreen);
            GlobalVariables.Navigation.AddScreen(screen);
        }
示例#3
0
        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);
        }
示例#4
0
        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);
        }
示例#5
0
        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);
        }
示例#6
0
 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();
 }
示例#7
0
 private bool CompareScreen(Screen a, Screen b)
 {
     return ((a.Type == b.Type) && (a.Parameter == b.Parameter));
 }