private void FillIncomingPathways(StockTypeShape shape) { DataRow[] IncomingRows = this.GetIncomingPathways(shape.StockTypeId); foreach (DataRow dr in IncomingRows) { Debug.Assert(Convert.ToInt32(dr[Constants.TO_STOCK_TYPE_ID_COLUMN_NAME], CultureInfo.InvariantCulture) == shape.StockTypeId); FlowPathway fp = DataTableUtilities.CreateFlowPathway(dr); shape.IncomingFlowPathways.Add(fp); } }
private void FillFlowPathways() { Debug.Assert(this.m_FlowPathways.Count == 0); Debug.Assert(this.m_LateralFlowCoupletMap == null); this.m_LateralFlowCoupletMap = new LateralFlowCoupletMap(); DataSheet ds = this.ResultScenario.GetDataSheet(Constants.DATASHEET_FLOW_PATHWAY_NAME); foreach (DataRow dr in ds.GetData().Rows) { FlowPathway fp = DataTableUtilities.CreateFlowPathway(dr); this.m_FlowPathways.Add(fp); if (fp.IsLateral) { this.m_LateralFlowCoupletMap.AddCouplet(fp.ToStockTypeId, fp.FlowTypeId); } } }