Exemple #1
0
        private void buttonAddBodega_Click(object sender, EventArgs e)
        {
            UI_MantenimientosPlantilla form = new UI_MantenimientosPlantilla("Bodega");

            form.ShowDialog();
            cargarBodegas();
        }
        private void buttonAddPuesto_Click(object sender, EventArgs e)
        {
            UI_MantenimientosPlantilla form = new UI_MantenimientosPlantilla("Puesto");

            form.ShowDialog();
            comboBoxPuesto.Items.Clear();
            ClaseCapaDatosFerreteria cpd = new ClaseCapaDatosFerreteria();

            try
            {
                cpd.cargarDatosACombobox(comboBoxPuesto, "Nombre", "tbl_Puesto");
                comboBoxPuesto.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString(), "ERROR AL CARGAR DATOS", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }