public ReportTable(IKpi kpi, List <ClassInfo> classInfos, string firstColumnAlignment) { this.kpi = kpi; this.classInfos = classInfos; this.firstColumnAlignment = firstColumnAlignment; this.departments = classInfos.ConvertAll(ci => ci.department).Distinct().ToList(); BuildComponents(); }
private Kpi CreateKpiGaugeList(IKpi kpi) { if (kpi != null) { return new Kpi( kpi.Id, kpi.Name, kpi.Guid, kpi.FavorableDirection, kpi.TargetValue, kpi.YellowValue, kpi.YellowIconURL, kpi.YellowIconID, kpi.GreenValue, kpi.GreenIconURL, kpi.GreenIconID, kpi.RedIconURL, kpi.RedIconID, kpi.MetricGuid, kpi.FilterDefinition); } return null; }
/// <summary> /// Initializes a new instance of the <see cref="KpiSelectorViewModel"/> class. /// </summary> /// <param name="kpi">The kpi.</param> /// <param name="parent">The parent.</param> public KpiSelectorViewModel(IKpi kpi, ProcessKpiListGadgetViewModel parent) { _kpi = kpi; _parent = parent; }