Esempio n. 1
0
 private void UpdateInviteLink(Chat chat, ChatInviteLink inviteLink)
 {
     if (inviteLink == null)
     {
         ProtoService.Send(new CreateChatInviteLink(chat.Id, string.Empty, 0, 0, false));
     }
     else
     {
         InviteLink = inviteLink.InviteLink;
     }
 }
Esempio n. 2
0
 private void UpdateChatInviteLink(ChatInviteLink link, Grid content, uint phase)
 {
     if (phase == 0)
     {
         var title = content.Children[1] as TextBlock;
         title.Text = link.InviteLink;
     }
     else if (phase == 1)
     {
         var subtitle = content.Children[2] as TextBlock;
         //subtitle.Text = Locale.Declension("InviteLinkCount", member.InviteLinkCount);
     }
     else if (phase == 2)
     {
         var photo = content.Children[0] as ProfilePicture;
         photo.Source = PlaceholderHelper.GetGlyph(Icons.Link, 0, 36);
     }
 }