Exemple #1
0
        private void st_agrserv_Click(object sender, EventArgs e)//AGREGA SERVICIO
        {
            AgregarServicio dialogAS = new AgregarServicio();

            dialogAS.id       = Convert.ToInt64(dgv_clientes.SelectedRows[0].Cells[0].Value);
            dialogAS.username = Convert.ToString(dgv_clientes.SelectedRows[0].Cells[1].Value);
            dialogAS.num_emp  = id;
            if (dialogAS.ShowDialog() == DialogResult.OK)
            {
                UpdateServiciosDgv();
            }
        }
Exemple #2
0
        private void btn_modserv_Click(object sender, EventArgs e)//MODIFICA SERVICIO
        {
            AgregarServicio dialogMS = new AgregarServicio();

            dialogMS.id          = Convert.ToInt64(dgv_clientes.SelectedRows[0].Cells[0].Value);
            dialogMS.username    = Convert.ToString(dgv_clientes.SelectedRows[0].Cells[1].Value);
            dialogMS.num_emp     = id;
            dialogMS.id_serv_mod = Convert.ToInt64(dgv_servicios.SelectedRows[0].Cells[3].Value);
            dialogMS.Text        = "Modificar servicio";
            if (dialogMS.ShowDialog() == DialogResult.OK)
            {
                UpdateServiciosDgv();
            }
        }