Assigning the Gender field FREEZES THE PROGRAM and I don't know WHY
This commit is contained in:
parent
5859f9700d
commit
e38e067bfa
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user