Assigning the Gender field FREEZES THE PROGRAM and I don't know WHY

This commit is contained in:
Michael Becker 2019-08-05 01:53:37 -04:00
parent 5859f9700d
commit e38e067bfa

View File

@ -46,21 +46,22 @@ namespace UniversalEditor.DataFormats.Contact.Microsoft
MarkupTagElement tagGender = (tagContact.Elements["c:Gender"] as MarkupTagElement);
if (tagGender != null)
{
// idk why this breaks
switch (tagGender.Value)
{
case "Unspecified":
{
contact.Gender = ContactGender.Unspecified;
// contact.Gender = ContactGender.Unspecified;
break;
}
case "Male":
{
contact.Gender = ContactGender.Male;
// contact.Gender = ContactGender.Male;
break;
}
case "Female":
{
contact.Gender = ContactGender.Female;
// contact.Gender = ContactGender.Female;
break;
}
}