private async void Page_Loaded(object sender, RoutedEventArgs e) { proRing.Visibility = Visibility.Visible; proRing.IsActive = true; NameBlock.Visibility = Visibility.Collapsed; city.Visibility = Visibility.Collapsed; pin.Visibility = Visibility.Collapsed; state.Visibility = Visibility.Collapsed; userPic.Visibility = Visibility.Collapsed; try { var data = await CommonGettingUsersCall.GetUserInfo(log); NameBlock.Text = data.FirstName + " " + data.LastName; CityBlock.Text = data.City; StateBlock.Text = data.State; PinBlock.Text = data.PinCode; } catch (Exception) { } finally { proRing.Visibility = Visibility.Collapsed; proRing.IsActive = false; NameBlock.Visibility = Visibility.Visible; city.Visibility = Visibility.Visible; state.Visibility = Visibility.Visible; pin.Visibility = Visibility.Visible; userPic.Visibility = Visibility.Visible; } }
private async void Page_Loaded(object sender, RoutedEventArgs e) { proRing.Visibility = Visibility.Visible; proRing.IsActive = true; //NameBlock.Visibility = Visibility.Collapsed; //city.Visibility = Visibility.Collapsed; //state.Visibility = Visibility.Collapsed; //pin.Visibility = Visibility.Collapsed; //userPic.Visibility = Visibility.Collapsed; //searchButton.Visibility = Visibility.Collapsed; //moreButton.Visibility = Visibility.Collapsed; //commentButton.Visibility = Visibility.Collapsed; try { data = await CommonGettingUsersCall.GetUserInfo(log); NameBlock.Text = data.SalonName; CityBlock.Text = data.City; StateBlock.Text = data.State; PinBlock.Text = data.PinCode; } catch (Exception) { } finally { proRing.Visibility = Visibility.Collapsed; proRing.IsActive = false; //NameBlock.Visibility = Visibility.Visible; //state.Visibility = Visibility.Visible; //city.Visibility = Visibility.Visible; //pin.Visibility = Visibility.Visible; //userPic.Visibility = Visibility.Visible; //searchButton.Visibility = Visibility.Visible; //moreButton.Visibility = Visibility.Visible; //commentButton.Visibility = Visibility.Visible; } }