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(); } }
private void btnCadastrarPaciente_Click(object sender, RoutedEventArgs e) { frmCadastrarPaciente cadastrarPaciente = new frmCadastrarPaciente(); cadastrarPaciente.ShowDialog(); }