Example #1
0
 // Load data for the ViewModel Items
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     if (!App.ViewModel.IsDataLoaded)
     {
         App.ViewModel.LoadData();
     }
     auth   = NavigationService.GetNavigationData().ElementAt(0) as LFCAuth;
     client = new Client.Client(auth);
 }
Example #2
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     if (!App.ViewModel.IsDataLoaded)
     {
         App.ViewModel.LoadData();
     }
     auth   = NavigationService.GetNavigationData().ElementAt(0) as LFCAuth;
     client = new Client.Client(auth);
     Main.SetValue(Panorama.SelectedItemProperty, Main.Items[0]);
 }
Example #3
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            if (!App.ViewModel.IsDataLoaded)
            {
                App.ViewModel.LoadData();
            }

            ar     = NavigationService.GetNavigationData().ElementAt(1) as LFCArtist;
            auth   = NavigationService.GetNavigationData().ElementAt(0) as LFCAuth;
            client = new Client.Client(auth); // понадобится позже

            EventInfoGrid.ItemsSource = new List <LFCArtist>()
            {
                ar
            };
        }