Ejemplo n.º 1
0
        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 + " ");
        }
Ejemplo n.º 2
0
 public int GetNumEmptyPortPlates() => Widgets.Count(e => e.Type == WidgetType.PortPlate && e.PortTypes.Length == 0);
Ejemplo n.º 3
0
 public int GetNumPortPlates() => Widgets.Count(e => e.Type == WidgetType.PortPlate);
Ejemplo n.º 4
0
 public int GetNumBatteryHolders() => Widgets.Count(e => e.Type == WidgetType.BatteryHolder);
Ejemplo n.º 5
0
 public int GetNumUnlitIndicators() => Widgets.Count(e => e.Indicator != null && e.Indicator.Value.Type == IndicatorType.Unlit);
Ejemplo n.º 6
0
 public int GetNumIndicators() => Widgets.Count(e => e.Type == WidgetType.Indicator);