private void LoadInvitees(string rsvp_status) { lblInviteeCount.Visible = true; groupBox1.Visible = true; flpInvitees.Controls.Clear(); var width = flpInvitees.Width; foreach (var type in eventMembers) { foreach (var attendee in type.attending.uid) { var profile = new ProfileListItem(FacebookService.Users.GetInfo(attendee)) { Width = (width - (flpInvitees.Padding.Horizontal) - 20) }; flpInvitees.Controls.Add(profile); profile.ProfileItemSelected += profile_ProfileItemSelected; } } var plural = string.Empty; if (eventMembers.Count != 1) { plural = "s"; } lblInviteeCount.Text = String.Format(CultureInfo.InvariantCulture, Resources.lblInvitees, FacebookEvent.name, eventMembers.Count, plural); }
private void LoadFriends() { flpFriends.Controls.Clear(); var width = flpFriends.Width; foreach (var friend in _friends) { var profile = new ProfileListItem(friend) { Width = (width - (flpFriends.Padding.Horizontal) - 20) }; flpFriends.Controls.Add(profile); profile.ProfileItemSelected += profile_ProfileItemSelected; } var plural = string.Empty; if (_friends.Count != 1) { plural = "s"; } lblFriendCount.Text = String.Format(CultureInfo.InvariantCulture, Resources.lblFriendCount, _friends.Count, plural); }
private void LoadFriends() { flpFriends.Controls.Clear(); var width = flpFriends.Width; foreach (var friend in _friends) { var profile = new ProfileListItem(friend) { Width = (width - (flpFriends.Padding.Horizontal) - 20) }; flpFriends.Controls.Add(profile); profile.ProfileItemSelected += profile_ProfileItemSelected; } var plural = string.Empty; if (_friends.Count != 1) { plural = "s"; } lblFriendCount.Text = String.Format(CultureInfo.InvariantCulture, Resources.lblFriendCount, _friends.Count, plural); }
private void LoadInvitees(string rsvp_status) { lblInviteeCount.Visible = true; groupBox1.Visible = true; flpInvitees.Controls.Clear(); var width = flpInvitees.Width; foreach (var type in eventMembers) { foreach (var attendee in type.attending.uid) { var profile = new ProfileListItem(FacebookService.Users.GetInfo(attendee)) { Width = (width - (flpInvitees.Padding.Horizontal) - 20) }; flpInvitees.Controls.Add(profile); profile.ProfileItemSelected += profile_ProfileItemSelected; } } var plural = string.Empty; if (eventMembers.Count != 1) plural = "s"; lblInviteeCount.Text = String.Format(CultureInfo.InvariantCulture, Resources.lblInvitees, FacebookEvent.name, eventMembers.Count, plural); }