protected string PrintDomain(DomainKey key) { string label = key.DomainName; if (String.IsNullOrEmpty(label)) { if (!String.IsNullOrEmpty(key.DomainNetBIOS)) { label = key.DomainNetBIOS; } else { label = key.DomainSID; } } if (GetUrlCallback == null) { return(label); } string htmlData = GetUrlCallback(key, label); if (String.IsNullOrEmpty(htmlData)) { return(label); } return(htmlData); }
string PrintDomainLabel(DomainKey key) { if (HasDomainAmbigousName != null) { if (HasDomainAmbigousName(key)) { return(key.ToString()); } } else if (Report.HasDomainAmbigiousName(key)) { return(key.ToString()); } if (!string.IsNullOrEmpty(key.DomainName)) { return(key.DomainName); } if (!string.IsNullOrEmpty(key.DomainNetBIOS)) { return("NetBIOS: " + key.DomainNetBIOS); } if (!string.IsNullOrEmpty(key.DomainSID)) { return("SID: " + key.DomainSID); } return("Error please contact the support"); }
public bool Equals(Number480 other) { var t1 = LocationKey.Equals(other.LocationKey); var t2 = DomainKey.Equals(other.DomainKey); var t3 = ContentKey.Equals(other.ContentKey); return(t1 && t2 && t3); }
public bool Equals(Number640 other) { var t1 = LocationKey.Equals(other.LocationKey); var t2 = DomainKey.Equals(other.DomainKey); var t3 = ContentKey.Equals(other.ContentKey); var t4 = VersionKey.Equals(other.VersionKey); return(t1 && t2 && t3 && t4); }
string PrintDomainLabel(DomainKey key) { if (HasDomainAmbigousName != null) { if (HasDomainAmbigousName(key)) { return(key.ToString()); } } else if (Report.HasDomainAmbigiousName(key)) { return(key.ToString()); } return(key.DomainName); }
public int CompareTo(Number480 other) { int diff = LocationKey.CompareTo(other.LocationKey); if (diff != 0) { return(diff); } diff = DomainKey.CompareTo(other.DomainKey); if (diff != 0) { return(diff); } return(ContentKey.CompareTo(other.ContentKey)); }
new string PrintDomain(DomainKey key) { string label = PrintDomainLabel(key); if (GetUrlCallback == null) { return(label); } string htmlData = GetUrlCallback(key, label); if (String.IsNullOrEmpty(htmlData)) { return(label); } return(htmlData); }
void AddPrintDomain(DomainKey key) { Add(@"<td class='text'>"); Add(PrintDomain(key)); Add(@"</td>"); }
public override int GetHashCode() { return(LocationKey.GetHashCode() ^ DomainKey.GetHashCode() ^ ContentKey.GetHashCode() ^ VersionKey.GetHashCode()); }