Ejemplo n.º 1
0
        private void btnCrearTratamientoCliente_Click(object sender, EventArgs e)
        {
            //***Se identifica el ID del cliente//
            DataGridViewRow filaSeleccionada = dgvClientes.SelectedRows[0];
            int ClienteID = (int)filaSeleccionada.Cells[0].Value;
            string tipoTratamieno = "especifico";

            frmTratamiento CrearTratamientoCliente = new frmTratamiento(ClienteID, tipoTratamieno, this);
            CrearTratamientoCliente.ShowDialog();
        }
Ejemplo n.º 2
0
        private void btnmodificarTratamiento_Click(object sender, EventArgs e)
        {
            //Se obtiene reglon seleccionado//
            DataGridViewRow filaSeleccionada = dgvTratamiento.SelectedRows[0];
            int TratamientoID = (int)filaSeleccionada.Cells[0].Value;

            frmTratamiento fromTratamiento = new frmTratamiento(TratamientoID, this);
            fromTratamiento.Show();
        }
Ejemplo n.º 3
0
 private void btnAgregarTratamiento_Click(object sender, EventArgs e)
 {
     frmTratamiento VentanaTratamiento = new frmTratamiento(this);
     VentanaTratamiento.ShowDialog();
 }