Exemple #1
0
        internal string GetLabel(Sector sector)
        {
            if (!ShowLabel)
            {
                return(null);
            }
            if (!string.IsNullOrEmpty(Label))
            {
                return(Label);
            }
            Allegiance alleg = sector.GetAllegianceFromCode(Allegiance);

            return(alleg?.Name);
        }
Exemple #2
0
        public string GetLabel(Sector sector)
        {
            if (!ShowLabel)
            {
                return(null);
            }
            if (!string.IsNullOrEmpty(Label))
            {
                return(Label);
            }
            Allegiance alleg = sector.GetAllegianceFromCode(Allegiance);

            if (alleg == null)
            {
                return(null);
            }
            return(alleg.Name);
        }
Exemple #3
0
 public string GetLabel(Sector sector)
 {
     if (!ShowLabel)
         return null;
     if (!string.IsNullOrEmpty(Label))
         return Label;
     Allegiance alleg = sector.GetAllegianceFromCode(Allegiance);
     if (alleg == null)
         return null;
     return alleg.Name;
 }