public bool TryParseSegmentedAddress(string txtAddress, out Address addr)
{
if (txtAddress != null)
{
int c = txtAddress.IndexOf(':');
if (c > 0)
{
try
{
addr = CreateSegmentedAddress(
Convert.ToUInt16(txtAddress.Substring(0, c), 16),
Convert.ToUInt32(txtAddress.Substring(c + 1), 16));
return true;
}
catch { }
}
}
addr = null;
return false;
}
}