예제 #1
0
        private void btnAgregar_Click(object sender, EventArgs e)
        {
            try
            {
                frmAltaClientes alta = new frmAltaClientes();
                alta.ShowDialog();

                cargar();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
예제 #2
0
        private void btnVerContacto_Click(object sender, EventArgs e)
        {
            try
            {
                CLIENTES id;
                id = (CLIENTES)dgvProveedores.CurrentRow.DataBoundItem;

                frmAltaClientes ver = new frmAltaClientes(id, 'v');
                ver.ShowDialog();

                cargar();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }