private void Button_Click_5(object sender, RoutedEventArgs e) { Motivo_citaModel motivo = (Motivo_citaModel)lvMotivo.SelectedItem; if (lvMotivo.SelectedItems.Count > 0) { Clin clinica = System.Windows.Application.Current.Windows.OfType <Clin>().FirstOrDefault(); if (clinica != null) { clinica.Main2.Content = new Pagina_Estudios(paciente, motivo, alias); } } else { System.Windows.Forms.MessageBox.Show("No seleccionó ningún registro", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void Button_Click(object sender, RoutedEventArgs e) { Motivo_citaModel motivo = (Motivo_citaModel)lvMotivo.SelectedItem; if (lvMotivo.SelectedItems.Count > 0) { //System.Windows.MessageBox.Show("id_paciente :" + motivo.paciente.id_paciente.ToString() + " " + "id_motivo " + motivo.id_motivo.ToString()); Clin clin = System.Windows.Application.Current.Windows.OfType <Clin>().FirstOrDefault(); if (clin != null) { clin.Main2.Content = new Notas_recepcionista(paciente, motivo, nombre_doctor, alias); } } else { System.Windows.Forms.MessageBox.Show("No seleccionó ningún registro", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void Button_Click(object sender, RoutedEventArgs e) { Motivo_citaModel motivo = (Motivo_citaModel)lvMotivo.SelectedItem; if (lvMotivo.SelectedItems.Count > 0) { //System.Windows.MessageBox.Show("id_paciente :" + motivo.paciente.id_paciente.ToString() + " " + "id_motivo " + motivo.id_motivo.ToString()); Recep recep = System.Windows.Application.Current.Windows.OfType <Recep>().FirstOrDefault(); if (recep != null) { recep.Main3.Content = new Page2_Abonos(paciente, motivo, alias); } } else { System.Windows.Forms.MessageBox.Show("No seleccionó ningún registro", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }