private async Task Save()
        {
            ContactModel model = ContactFake.Update(_id, Name, Email, IsFavorite);

            MessagingCenter.Send(model, "UpdateList");
            await NavigationHelper.GetInstance().GoBack();
        }
Пример #2
0
 protected override void OnNavigatedFrom(NavigationEventArgs e)
 {
     if (e.NavigationMode != NavigationMode.Back)
     {
         NavigationHelper.GetInstance().Add(mmvm);
     }
 }
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     try
     {
         aavm = (AllArtistsViewModel)NavigationHelper.GetInstance().Peek();
         aavm = (AllArtistsViewModel)NavigationHelper.GetInstance().Pop();
     } catch (Exception ex)
     {
         aavm = new AllArtistsViewModel();
     }
     DataContext = aavm;
 }
Пример #4
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     if (_isNewPageInstance)
     {
         if (mmvm == null)
         {
             if (NavigationHelper.GetInstance().Count() > 0)
             {
                 mmvm = (MainMenuViewModel)NavigationHelper.GetInstance().Pop();
             }
             else
             {
                 mmvm = new MainMenuViewModel();
             }
         }
         DataContext = mmvm;
     }
     _isNewPageInstance = false;
 }
Пример #5
0
 private async Task GotoContactDetail(string id)
 {
     await NavigationHelper.GetInstance().GotoContactDetail(id);
 }