private async void makeCommentButton_Click(object sender, RoutedEventArgs e) { com.Upins = true; com.Comment = commentBox.Text; com.Star = starField.Value.ToString(); try { await CommentCall.GetCommentsAsync(com, comments); } catch (Exception) { } com.Upins = false; starField.Visibility = Visibility.Collapsed; commentBox.Visibility = Visibility.Collapsed; makeCommentButton.Visibility = Visibility.Collapsed; back.Visibility = Visibility.Collapsed; moreButton.Visibility = Visibility.Visible; starList.Visibility = Visibility.Visible; commentsList.Visibility = Visibility.Visible; giveStar.Visibility = Visibility.Visible; }
private async void Page_Loaded(object sender, RoutedEventArgs e) { var keepTemp = Windows.Storage.ApplicationData.Current.LocalSettings; com.Username = (string)keepTemp.Values["user"]; var salExist = (string)keepTemp.Values["type"]; com.Salonname = salProfile.data.SalonName; if (salExist.Equals("Saloon")) { giveStar.Visibility = Visibility.Collapsed; } try { await CommentCall.GetCommentsAsync(com, comments); } catch (Exception) { } }