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