public SetKpiResultRequest(string moduleId, string caseId, string variantId, string kpiId, double kpiValue, GeoObjects kpiValueList) { this.method = "setKpiResult"; this.type = "request"; this.moduleId = moduleId; this.caseId = caseId; this.variantId = variantId; this.kpiId = kpiId; //this.kpiValue = kpiValue; this.kpiValueList = kpiValueList; }
public SetKpiResultRequest(string moduleId, string caseId, string variantId, Ecodistrict.Messaging.Data.OutputDetailed output) { this.method = "setKpiResult"; this.type = "request"; this.moduleId = moduleId; this.caseId = caseId; this.variantId = variantId; this.kpiId = output.KpiId; //this.kpiValue = output.KpiValue; if (output != null) { this.kpiValueList = output.KpiValueList; } }
private void DXRenderObjects() { if (!DB.isInitialized()) { return; } if (GeoObjects.Count == 0) { return; } DetailLevel lvl = GetDetailLevel(); int objs = 0; double zoomValue = Math.Pow(ZoomSlider.Value, 1.20) / (ZoomSlider.Maximum - ZoomSlider.Minimum) / 26 * (256 * 256 / 16); int x = (int)(ClientRectangle.Width * zoomValue); int y = (int)(ClientRectangle.Height * zoomValue); float cameraX = (float)hScrollBar.Value; float cameraY = (float)vScrollBar.Value; int plusX = (int)cameraX + x; int minusX = (int)cameraX - x; int plusY = (int)cameraY + y; int minusY = (int)cameraY - y; // use a copy of geoobjects list so that list can be manipulated during lazy loading of mapelements GeometryObj[] objects = GeoObjects.ToArray(); Array.Sort(objects); lock (objects.SyncRoot) { foreach (GeometryObj obj in objects) { if (obj.DrawLevel == DrawLevel.NonRender) { continue; } if (!InDetailLevel(obj.DetailLevel, lvl)) { continue; } if ((DrawLevel)obj.DrawLevel != DrawLevel.Background) { if (!((obj.X >= minusX && obj.X <= plusX) && (obj.Y >= minusY && obj.Y <= plusY))) { continue; } } obj.Render(); //Objects increasen.. objs++; } StatusChangeObjects(objs); } }