public override GraphViewModel Graph(int index) { int column = index % _columns.Count; return(column switch { 0 => DeferredLoadGraph <TimeSeriesStream <int>, int>(index, k => $"Stromverbrauch {_dsStructure?.GetCircuitName(k) ?? k.ToString()}", k => $"stromverbrauch_{k.ToString()}", "# Ws"), _ => new GraphViewModel(), });
public override GraphViewModel Graph(int index) { int column = index % _columns.Count; return(column switch { 0 => DeferredLoadGraph <TimeSeriesStream <int>, int>(index, k => Localized("Power consumption {0}", _dsStructure?.GetCircuitName(k) ?? k.ToString()), k => Localized("powerconsumption_{0}", k), "# Ws"), _ => new GraphViewModel(), });