Пример #1
0
        private void btncrearcliente_Click(object sender, EventArgs e)
        {
            CrearVendedor frm = new CrearVendedor();

            frm.ShowDialog();
            ListVendedores();
        }
Пример #2
0
        private void btneditar_Click(object sender, EventArgs e)
        {
            CrearVendedor cv = new CrearVendedor();

            cv.vendedorId = dataGridView1.CurrentRow.Cells["VendedorId"].Value.ToString();
            cv.vendedor   = dataGridView1.CurrentRow.Cells["Vendedor"].Value.ToString();
            cv.direccion  = dataGridView1.CurrentRow.Cells["Direccion"].Value.ToString();
            cv.telefono   = dataGridView1.CurrentRow.Cells["Telefono"].Value.ToString();
            cv.cedula     = dataGridView1.CurrentRow.Cells["Cedula"].Value.ToString();
            cv.isedit     = true;

            cv.ShowDialog();
            ListVendedores();
        }