private void FillElements()
 {
     TbCity.Text        = _organization.City;
     TbCountry.Text     = _organization.Country;
     TbDescription.Text = _organization.Description;
     TbHouseNumber.Text = _organization.HouseNumber;
     TbName.Text        = _organization.Name;
     TbState.Text       = _organization.State;
     TbStreet.Text      = _organization.Street;
     TbType.Text        = _organization.Type;
     TbZipCode.Text     = _organization.PostalCode;
     DtpFounded.Value   = _organization.Founded;
     PbImage.Image      = ImageByteConverter.BytesToImage(_organization.Picture);
 }
Exemple #2
0
 private void FillElements()
 {
     TbCity.Text        = _member.City;
     TbCountry.Text     = _member.Country;
     TbDescription.Text = _member.Description;
     TbHouseNumber.Text = _member.HouseNumber;
     TbFirstName.Text   = _member.FirstName;
     TbLastname.Text    = _member.LastName;
     TbState.Text       = _member.State;
     TbStreet.Text      = _member.Street;
     TbGender.Text      = _member.Gender;
     TbZipCode.Text     = _member.ZipCode;
     DtpBirthdate.Value = _member.Birthdate;
     PbImage.Image      = ImageByteConverter.BytesToImage(_member.Picture);
 }
Exemple #3
0
 private void MemberLabels(ref MemberWithGroup member, string orgaName)
 {
     LblType.Text       = @"Member";
     LblPath.Text       = $@"{orgaName}/{member?.GroupName}/{member?.FirstName} {member?.LastName}";
     LblName.Text       = $@"{member?.FirstName} {member?.LastName}";
     LblBirthdate.Text  = member?.Birthdate.ToShortDateString();
     LblCity.Text       = member?.City;
     LblCountry.Text    = member?.Country;
     LblCreateDate.Text = member?.CreateDate.ToShortDateString();
     LblGender.Text     = member?.Gender;
     LblMemberOf.Text   = member?.GroupName;
     LblNumber.Text     = member?.HouseNumber;
     LblZip.Text        = member?.ZipCode;
     LblState.Text      = member?.State;
     LblStreet.Text     = member?.Street;
     PbPicture.Image    = ImageByteConverter.BytesToImage(member?.Picture);
     TbDescription.Text = member?.Description;
 }
Exemple #4
0
 private void OrganizationLabels(ref Organization organization)
 {
     LblType.Text          = @"Organization";
     LblName.Text          = organization.Name;
     LblBirthdate.Text     = organization.Founded.ToShortDateString();
     LblBirthDateDesc.Text = @"Founded:";
     LblCity.Text          = organization.City;
     LblCountry.Text       = organization.Country;
     LblCreateDate.Text    = organization.CreateDate.ToString(CultureInfo.CurrentCulture);
     LblGender.Text        = organization.Type;
     LblGenderDesc.Text    = @"Type:";
     LblNumber.Text        = organization.HouseNumber;
     LblZip.Text           = organization.PostalCode;
     LblState.Text         = organization.State;
     LblStreet.Text        = organization.Street;
     PbPicture.Image       = ImageByteConverter.BytesToImage(organization.Picture);
     TbDescription.Text    = organization.Description;
 }
Exemple #5
0
 private void FillElements()
 {
     TbName.Text        = _group.Name;
     TbDescription.Text = _group.Description;
     PbImage.Image      = ImageByteConverter.BytesToImage(_group.Picture);
 }