Ejemplo n.º 1
0
 public void CopyColumnToMap(DataTable table, int srcColIndex, INetworkAdjList network, INodeStringMap map)
 {
     int ctr = 0;
     foreach (INode node in network.NodeEnumerator)
     {
         map[node] = (string)table.Rows[ctr++][srcColIndex];
     }
 }
Ejemplo n.º 2
0
        public void CopyMapToFrame(INetworkAdjList network, INodeStringMap map, IFrame frame)
        {
            string[] vals = new string[network.NodeCount];
            int ctr = 0;
            foreach (INode node in network.NodeEnumerator)
            {
                vals[ctr++] = map[node];
            }

            SimpleFrame sFrame = frame as SimpleFrame;
            using (SimpleFrameTool tool = new SimpleFrameTool())
            {
                tool.AddColumn<string>(sFrame, map.Name, vals);
            }
        }
Ejemplo n.º 3
0
 internal void CopyColumnToMap(DataTable table, int srcColIndex, INetworkAdjList network, INodeStringMap map, IList<int> rowIndices)
 {
     int ctr = 0;
     foreach (INode node in network.NodeEnumerator)
     {
         map[node] = (string)table.Rows[rowIndices[ctr++]][srcColIndex];
     }
 }