Beispiel #1
0
        public VAlterTable(Conexion actual)
        {
            InitializeComponent();
            this.conexionActual = actual;
            this.Title         += " || Base de datos \"" + actual.BaseDatos + "\"";
            // Obtiene el comando SQL correspondiente
            this.comandoEnviar        = Comando.AlterTable(actual);
            lblComando.Content        = comandoEnviar.CommandText;
            this.textoComandoOriginal = comandoEnviar.CommandText;

            // Agrega y muestra la opción por defecto en el combobox.
            cmbTablas.Items.Add(CMB_OPCION_DEFECTO);
            cmbTablas.SelectedIndex = 0;

            // Agrega tipos operaciones muestra la opción por defecto en el combobox.
            cmbTipoOperacion.Items.Add(CMB_OPERACION_DEFECTO);
            cmbTipoOperacion.Items.Add(CMB_OPERACION_AÑADIR);
            cmbTipoOperacion.Items.Add(CMB_OPERACION_ELIMINAR);
            cmbTipoOperacion.SelectedIndex = 0;
        }