Beispiel #1
0
        private async Task SetAccountData()
        {
            var donor = await donorClient.GetAccountAsync();

            PeselTextBlock.Text     = donor.Pesel;
            PhoneTextBlock.Text     = donor.Phone;
            MailTextBlock.Text      = donor.Mail;
            BloodTypeTextBlock.Text = $"{donor.BloodType.AboType} Rh{donor.BloodType.RhType}";
        }
Beispiel #2
0
        private async Task SetLoggedDonorsPeselInHeader()
        {
            if (donorClient.IsLoggedIn)
            {
                var donor = await donorClient.GetAccountAsync();

                DonorPeselTextBlock.Text = donor.Pesel;
            }
            else
            {
                DonorPeselTextBlock.Text = "NONE";
            }
        }