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

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

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

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