コード例 #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
ファイル: NewStoreScreen.xaml.cs プロジェクト: huucp/tuneRobo
        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
ファイル: SeeAllScreen.xaml.cs プロジェクト: huucp/tuneRobo
        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
ファイル: NavigationSystem.cs プロジェクト: huucp/tuneRobo
 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
ファイル: NavigationSystem.cs プロジェクト: huucp/tuneRobo
 private bool CompareScreen(Screen a, Screen b)
 {
     return ((a.Type == b.Type) && (a.Parameter == b.Parameter));
 }