UI/FormRegionPrivacyStatus.cs
changeset 1348 c394606d6f6c
parent 1341 2d01b4811b85
child 1349 77c31d9ef5a6
equal deleted inserted replaced
1347:b374b67e6dd2 1348:c394606d6f6c
   453                                                          out trustwordsShort,
   453                                                          out trustwordsShort,
   454                                                          out trustwordsFull,
   454                                                          out trustwordsFull,
   455                                                          Globals.ThisAddIn.Settings.TrustwordsCulture?.TwoLetterISOLanguageName);
   455                                                          Globals.ThisAddIn.Settings.TrustwordsCulture?.TwoLetterISOLanguageName);
   456 
   456 
   457                         item = new SelectionItem();
   457                         item = new SelectionItem();
   458                         item.TextLine1 = partnerIdentity.Username;
   458                         item.TextLine1 = partnerIdentity.UserName;
   459                         item.TextLine2 = partnerIdentity.Address;
   459                         item.TextLine2 = partnerIdentity.Address;
   460                         item.Tag = (string.IsNullOrWhiteSpace(partnerIdentity.Fingerprint) ? null : trustwordsShort);
   460                         item.Tag = (string.IsNullOrWhiteSpace(partnerIdentity.Fingerprint) ? null : trustwordsShort);
   461 
   461 
   462                         // Don't show both the user name and address if they are the same
   462                         // Don't show both the user name and address if they are the same
   463                         if ((item.TextLine1 != null) &&
   463                         if ((item.TextLine1 != null) &&
   572                         }
   572                         }
   573                     }
   573                     }
   574                     else // Invalid identity
   574                     else // Invalid identity
   575                     {
   575                     {
   576                         item = new SelectionItem();
   576                         item = new SelectionItem();
   577                         item.TextLine1 = ident.Username;
   577                         item.TextLine1 = ident.UserName;
   578                         item.TextLine2 = ident.Address;
   578                         item.TextLine2 = ident.Address;
   579                         item.ItemImage = null;
   579                         item.ItemImage = null;
   580                         item.IsTwoTextLinesVisible = true;
   580                         item.IsTwoTextLinesVisible = true;
   581                         item.IsButtonVisible = false;
   581                         item.IsButtonVisible = false;
   582                     }
   582                     }