Ejemplo n.º 1
0
 public Ventana_Indice(List <Atributo> listAtr, Dictionary <long, List <object> > dicReg, string sruta, string ne, List <Atributo> esPrim, List <int> arb, Dictionary <int, long> sal)
 {
     InitializeComponent();
     listAttr    = listAtr;
     dReg        = dicReg;
     sDirectorio = sruta;
     arbol       = arb;
     salva       = sal;
     sEntidad    = ne;
     tipoInd     = esPrim;
     crearArchivo();
     ArchivoInd = new Indice(listAttr, sRuta, tipoInd);
     crearArchivoInd();
     inicializarGrids();
     crearPrimeraTabla();
 }
Ejemplo n.º 2
0
        public VistaIndice(Entidad e)
        {
            InitializeComponent();
            entidad = e;
            p       = e.Prim;
            s       = e.Sec;
            foreach (var a in e.Atrib)
            {
                switch (a.TipoIndice)
                {
                case 2:
                    indice = a.Ind;
                    p      = (Primario)indice;
                    break;

                    /*case 3:
                     *  indice = a.Ind;
                     *  if (s == null)
                     *       s = new List<Secundario>();
                     *  s.Add((Secundario)indice);
                     *  break;*/
                }
            }
            Atributo z = e.Atrib.Find(o => o.TipoIndice == 6);

            if (z != null && z.DirAtributo != -1)
            {
                h = (HashDinamico)z.Ind;
            }
            if (p != null)
            {
                carga();
            }
            if (s != null)
            {
                cargaSec();
            }
            if (h != null)
            {
                hash();
            }
        }