Example #1
0
        private void btnAgregar_Click(object sender, EventArgs e)
        {
            EdicionEditorial frm = new EdicionEditorial();

            frm.ShowDialog();
            CargarDatos();
        }
Example #2
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            EdicionEditorial frm = new EdicionEditorial();

            frm.txtIDEditorial.Text = dtgRegistros.CurrentRow.Cells["IDEditorial"].Value.ToString();
            frm.txtEditorial.Text   = dtgRegistros.CurrentRow.Cells["Editorial"].Value.ToString();
            frm.txtDireccion.Text   = dtgRegistros.CurrentRow.Cells["Direccion"].Value.ToString();
            frm.txtTelefono.Text    = dtgRegistros.CurrentRow.Cells["Telefono"].Value.ToString();
            frm.ShowDialog();
            CargarDatos();
        }