/// <summary>
 /// Populates the page with content passed during navigation.  Any saved state is also
 /// provided when recreating a page from a prior session.
 /// </summary>
 /// <param name="sender">
 /// The source of the event; typically <see cref="NavigationHelper"/>
 /// </param>
 /// <param name="e">Event data that provides both the navigation parameter passed to
 /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
 /// a dictionary of state preserved by this page during an earlier
 /// session.  The state will be null the first time a page is visited.</param>
 private async void NavigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
     var navArgs = (NavigationArgs)e.NavigationParameter;
     currUser = navArgs.currUser;
     await getFriends();
     await getRequests();
     repSet = true;
     await getReports();
 }
 /// <summary>
 /// Populates the page with content passed during navigation.  Any saved state is also
 /// provided when recreating a page from a prior session.
 /// </summary>
 /// <param name="sender">
 /// The source of the event; typically <see cref="NavigationHelper"/>
 /// </param>
 /// <param name="e">Event data that provides both the navigation parameter passed to
 /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
 /// a dictionary of state preserved by this page during an earlier
 /// session.  The state will be null the first time a page is visited.</param>
 private void NavigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
     var navarg = (NavigationArgs) e.NavigationParameter;
     currUser = navarg.currUser;
     clickedUser = navarg.aUser;
     PageTitle.Text = clickedUser.Name;
     NameField.Text = "Name: " + clickedUser.Name;
     uNameField.Text = "Username: "******"Email: " + clickedUser.Email;
     RatingField.Text = "Rating: " + clickedUser.getRating().ToString();
 }
 /// <summary>
 /// Populates the page with content passed during navigation.  Any saved state is also
 /// provided when recreating a page from a prior session.
 /// </summary>
 /// <param name="sender">
 /// The source of the event; typically <see cref="NavigationHelper"/>
 /// </param>
 /// <param name="e">Event data that provides both the navigation parameter passed to
 /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
 /// a dictionary of state preserved by this page during an earlier
 /// session.  The state will be null the first time a page is visited.</param>
 private void NavigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
     var navargs = (NavigationArgs)e.NavigationParameter;
     currUser = navargs.currUser;
     clickedItem = navargs.aRequest;
     PageTitle.Text = clickedItem.item;
     ItemField.Text = "Item: " + clickedItem.item;
     OwnerField.Text = "Owner: " + clickedItem.owner;
     PriceField.Text = "Price: $" + clickedItem.maxPrice.ToString();
     if (clickedItem.owner != currUser.Username) DelReq.IsEnabled = false;
 }
 /// <summary>
 /// Populates the page with content passed during navigation.  Any saved state is also
 /// provided when recreating a page from a prior session.
 /// </summary>
 /// <param name="sender">
 /// The source of the event; typically <see cref="NavigationHelper"/>
 /// </param>
 /// <param name="e">Event data that provides both the navigation parameter passed to
 /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
 /// a dictionary of state preserved by this page during an earlier
 /// session.  The state will be null the first time a page is visited.</param>
 private void NavigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
     var navargs = (NavigationArgs)e.NavigationParameter;
     currUser = navargs.currUser;
     clickedItem = navargs.aReport;
     PageTitle.Text = clickedItem.item;
     if (!currUser.Username.Equals(clickedItem.owner)) RemoveReport.IsEnabled = false;
     //LatDeb.Text = clickedItem.latitude.ToString();
     //LonDeb.Text = clickedItem.longitude.ToString();
     OwnerField.Text = "Owner: " + clickedItem.owner;
     ItemField.Text = "Item: " + clickedItem.item;
     PriceField.Text = "Price: $" + clickedItem.price.ToString();
     NotesField.Text = "Notes: " + clickedItem.notes;
 }
 /// <summary>
 /// Populates the page with content passed during navigation.  Any saved state is also
 /// provided when recreating a page from a prior session.
 /// </summary>
 /// <param name="sender">
 /// The source of the event; typically <see cref="NavigationHelper"/>
 /// </param>
 /// <param name="e">Event data that provides both the navigation parameter passed to
 /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
 /// a dictionary of state preserved by this page during an earlier
 /// session.  The state will be null the first time a page is visited.</param>
 private void NavigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
     var navArgs = (NavigationArgs)e.NavigationParameter;
     currUser = navArgs.currUser;
     prog.Visibility = Visibility.Collapsed;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Populates the page with content passed during navigation.  Any saved state is also
 /// provided when recreating a page from a prior session.
 /// </summary>
 /// <param name="sender">
 /// The source of the event; typically <see cref="NavigationHelper"/>
 /// </param>
 /// <param name="e">Event data that provides both the navigation parameter passed to
 /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
 /// a dictionary of state preserved by this page during an earlier
 /// session.  The state will be null the first time a page is visited.</param>
 private void NavigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
 }
 /// <summary>
 /// Populates the page with content passed during navigation.  Any saved state is also
 /// provided when recreating a page from a prior session.
 /// </summary>
 /// <param name="sender">
 /// The source of the event; typically <see cref="NavigationHelper"/>
 /// </param>
 /// <param name="e">Event data that provides both the navigation parameter passed to
 /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
 /// a dictionary of state preserved by this page during an earlier
 /// session.  The state will be null the first time a page is visited.</param>
 private void NavigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
     var navArgs = (NavigationArgs)e.NavigationParameter;
     currUser = navArgs.currUser;
 }