public override string GetContent() { var content = ""; if (Widgets.Count() != 0) { content = Widgets.Select(w => w.GetContent()).Aggregate((acc, s) => acc + " " + (s == null ? string.Empty : s)); } return(" " + content + " "); }
public int GetNumEmptyPortPlates() => Widgets.Count(e => e.Type == WidgetType.PortPlate && e.PortTypes.Length == 0);
public int GetNumPortPlates() => Widgets.Count(e => e.Type == WidgetType.PortPlate);
public int GetNumBatteryHolders() => Widgets.Count(e => e.Type == WidgetType.BatteryHolder);
public int GetNumUnlitIndicators() => Widgets.Count(e => e.Indicator != null && e.Indicator.Value.Type == IndicatorType.Unlit);
public int GetNumIndicators() => Widgets.Count(e => e.Type == WidgetType.Indicator);