示例#1
0
 /// <summary>
 /// Called when page is navigated to, asynchronously.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <returns>
 /// The completion task.
 /// </returns>
 protected async Task OnNavigatedToAsync(int id)
 {
     if (this.Model == null || this.Model.Id != id)
     {
         this.Model = await this.CreateModelAsync(id);
     }
     else
     {
         this.Model.Refresh();
     }
 }
示例#2
0
 /// <summary>
 /// Creates the model, asynchronously.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <returns>
 /// The created model task.
 /// </returns>
 protected override Task <MessagesViewModel> CreateModelAsync(int id)
 {
     return(MessagesViewModel.CreateAsync(id, YammerService.Instance.GetReceivedMessagesAsync));
 }
示例#3
0
 /// <summary>
 /// Creates the model, asynchronously.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <returns>
 /// The created model task.
 /// </returns>
 protected override Task <MessagesViewModel> CreateModelAsync(int id)
 {
     return(MessagesViewModel.CreateAsync(id, this.GetGroupMessagesAsync, this.Group.Id));
 }