示例#1
0
        private void btn_agrclient_Click(object sender, EventArgs e)//AGREGA CLIENTE
        {
            AgregarCliente dialogAC = new AgregarCliente();

            dialogAC.id_emp = id;
            if (dialogAC.ShowDialog() == DialogResult.OK)
            {
                UpdateClientesDgv();
            }
        }
示例#2
0
        private void btn_modclient_Click(object sender, EventArgs e)//MODIFICA CLIENTE
        {
            AgregarCliente dialogMC = new AgregarCliente();

            dialogMC.id_emp        = id;
            dialogMC.id_client_mod = Convert.ToInt64(dgv_clientes.SelectedRows[0].Cells[0].Value);
            dialogMC.Text          = "Modificar cliente";
            if (dialogMC.ShowDialog() == DialogResult.OK)
            {
                UpdateClientesDgv();
            }
        }