private static void CreateUsersBegining(StatusBindableTextBlock mainTextBlock, StatusViewModel s)
{
Hyperlink hypUserLogin = CreateUserHyperLink(s.UserLogin, string.Format(userLinkFormat, s.UserLogin),
string.Format(userProfileFormat, s.UserLogin), mainTextBlock);
//dodajemy link użytkownka
mainTextBlock.Inlines.Add(hypUserLogin);
//tworzymy link odbiorcy wiadomośći
if ((s.StatusType == "DirectedMessage") || (s.StatusType == "PrivateMessage"))
{
string mark = (s.StatusType == "DirectedMessage") ? " > " : " >> ";
//Run r = CreateRun(mark);
mainTextBlock.Inlines.Add(mark);
//tworzymy link użytkownika odbiorcy wiadomości
Hyperlink hypRecipientLogin = CreateUserHyperLink(s.RecipientLogin,
string.Format(userLinkFormat, s.RecipientLogin),
string.Format(userProfileFormat, s.RecipientLogin),
mainTextBlock);
//dodajemy link użytkownka
mainTextBlock.Inlines.Add(hypRecipientLogin);
}
//Run rr = CreateRun(": ");
mainTextBlock.Inlines.Add(": ");
}