Ejemplo n.º 1
0
        private void init()
        {
            products = new ArrayList();
            readFile(products);                 //read in the data file
            //create the product list
            prodList = new ProductList(lsProd);
            //Bridge to product VisList
            IBridger lbr = new SortBridge(prodList);

            //put the data into the product list
            lbr.addData(products);
            //create the grid VisList
            treeList = new TreeList(treeProd);
            //Bridge to the grid list
            IBridger tbr = new SortBridge(treeList);

            gridList = new GridList(grdProd);
            //Bridge to the grid list
            IBridger gbr = new ListBridge(gridList);

            //put the data into the grid display
            tbr.addData(products);
            gbr.addData(products);
        }
Ejemplo n.º 2
0
 //-----
 public SortBridge(IVistList v) : base(v)
 {
 }
Ejemplo n.º 3
0
 //------
 public ListBridge(IVistList v)
 {
     vis = v;
 }