Beispiel #1
0
 private void txtDta_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
 {
     if (txtDta.Text != null)
     {
         string teste = txtDta.Text;
         frmCadastrarPaciente cadastrarPaciente = new frmCadastrarPaciente();
         cadastrarPaciente.dtaConsulta = txtDta.Text;
         this.Close();
         cadastrarPaciente.ShowDialog();
         //txtDta.Clear();
     }
 }
Beispiel #2
0
        private void btnCadastrarPaciente_Click(object sender, RoutedEventArgs e)
        {
            frmCadastrarPaciente cadastrarPaciente = new frmCadastrarPaciente();

            cadastrarPaciente.ShowDialog();
        }