本文整理汇总了C#中jabber.GetAddress方法的典型用法代码示例。如果您正苦于以下问题:C# jabber.GetAddress方法的具体用法?C# jabber.GetAddress怎么用?C# jabber.GetAddress使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类jabber
的用法示例。
在下文中一共展示了jabber.GetAddress方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PopulateAddresses
private void PopulateAddresses(jabber.protocol.iq.VCard vcard)
{
if (vcard.GetAddress (jabber.protocol.iq.AddressLocation.work) != null) {
Address1TypeLabel.Text = "Work:";
Address1TextBox.Lines = FormatAddress (vcard.GetAddress (jabber.protocol.iq.AddressLocation.work));
}
if (vcard.GetAddress (jabber.protocol.iq.AddressLocation.home) != null) {
if (Address1TextBox.Text.Trim ().Length == 0) {
Address1TypeLabel.Text = "Home:";
Address1TextBox.Lines = FormatAddress (vcard.GetAddress (jabber.protocol.iq.AddressLocation.home));
} else {
Address2TypeLabel.Text = "Home:";
Address2TextBox.Lines = FormatAddress (vcard.GetAddress (jabber.protocol.iq.AddressLocation.home));
return;
}
}
if (vcard.GetAddress (jabber.protocol.iq.AddressLocation.unknown) != null) {
if (Address1TextBox.Text.Trim ().Length == 0) {
Address1TypeLabel.Text = "Address:";
Address1TextBox.Lines = FormatAddress (vcard.GetAddress (jabber.protocol.iq.AddressLocation.unknown));
} else {
Address2TypeLabel.Text = "Address:";
Address2TextBox.Lines = FormatAddress (vcard.GetAddress (jabber.protocol.iq.AddressLocation.unknown));
return;
}
}
}