Ejemplo n.º 1
0
        private void cmbDatos_DropDownOpened(object sender, EventArgs e)
        {
            ComboBox aRellenar = (ComboBox)sender;

            // Dependiendo del modo actual, el combo se rellenará con tablas o BBDD
            if (modoActual.Equals(Modo.DATABASE))
            {
                Comun.RellenarComboBasesDatos(conexionActual, aRellenar);
            }
            else if (modoActual.Equals(Modo.TABLE))
            {
                Comun.RellenarComboTablas(conexionActual, aRellenar);
            }
        }
Ejemplo n.º 2
0
        private DbCommand cambiarModo(Modo modoEjecucion)
        {
            this.modoActual = modoEjecucion;

            if (modoActual.Equals(Modo.DATABASE))
            {
                CLICK_ERROR = CLICK_ERROR_DATABASE;
                CLICK_OK    = CLICK_OK_DATABASE;
                DESCRIPCION = DESCRIPCION_DATABASE;
                Comun.RellenarComboBasesDatos(conexionActual, cmbDatos);
                return(Comando.DropDatabase(conexionActual, false));
            }
            else if (modoActual.Equals(Modo.TABLE))
            {
                CLICK_ERROR = CLICK_ERROR_TABLE;
                CLICK_OK    = CLICK_OK_TABLE;
                DESCRIPCION = DESCRIPCION_TABLE;
                Comun.RellenarComboTablas(conexionActual, cmbDatos);
                return(Comando.DropTable(conexionActual));
            }
            return(null);
        }
Ejemplo n.º 3
0
 private void cmbTabla_DropDownOpened(object sender, EventArgs e)
 {
     Comun.RellenarComboTablas(conexionActual, (ComboBox)sender);
 }