Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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");
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
 string PrintDomainLabel(DomainKey key)
 {
     if (HasDomainAmbigousName != null)
     {
         if (HasDomainAmbigousName(key))
         {
             return(key.ToString());
         }
     }
     else if (Report.HasDomainAmbigiousName(key))
     {
         return(key.ToString());
     }
     return(key.DomainName);
 }
Esempio n. 6
0
        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));
        }
Esempio n. 7
0
        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);
        }
Esempio n. 8
0
 void AddPrintDomain(DomainKey key)
 {
     Add(@"<td class='text'>");
     Add(PrintDomain(key));
     Add(@"</td>");
 }
Esempio n. 9
0
 public override int GetHashCode()
 {
     return(LocationKey.GetHashCode() ^ DomainKey.GetHashCode() ^ ContentKey.GetHashCode() ^
            VersionKey.GetHashCode());
 }