internal string GetLabel(Sector sector) { if (!ShowLabel) { return(null); } if (!string.IsNullOrEmpty(Label)) { return(Label); } Allegiance alleg = sector.GetAllegianceFromCode(Allegiance); return(alleg?.Name); }
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); }
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; }