private void seleccionarProfesional_Click(object sender, EventArgs e) { SeleccionProfesionalPorEspecialidad window = new SeleccionProfesionalPorEspecialidad(); DialogResult resultSeleccion = window.ShowDialog(); if (resultSeleccion == DialogResult.OK) { profesionalLabel.Text = String.Format("ID:{0} ({2} {1})", window.selected.Cells["ID_PROFESIONAL"].Value.ToString(), window.selected.Cells["NOMBRE"].Value.ToString(), window.selected.Cells["APELLIDO"].Value.ToString()); idProfesional = long.Parse(window.selected.Cells["ID_PROFESIONAL"].Value.ToString()); idAgenda = long.Parse(window.selected.Cells["AGENDA"].Value.ToString()); idEspecialidad = window.idEspecialidad; } }
private void seleccionarProfesional_Click(object sender, EventArgs e) { SeleccionProfesionalPorEspecialidad window = new SeleccionProfesionalPorEspecialidad(); DialogResult resultSeleccion = window.ShowDialog(); if (resultSeleccion == DialogResult.OK) { profesionalLabel.Text = String.Format("ID:{0} ({2} {1})", window.selected.Cells["ID_PROFESIONAL"].Value.ToString(), window.selected.Cells["NOMBRE"].Value.ToString(), window.selected.Cells["APELLIDO"].Value.ToString()); idProfesional = long.Parse(window.selected.Cells["ID_PROFESIONAL"].Value.ToString()); idAgenda = long.Parse(window.selected.Cells["AGENDA"].Value.ToString()); idEspecialidad = window.idEspecialidad; } }