private void btnPesquisa_Click(object sender, EventArgs e) { frmPesquisarPacientes abrir = new frmPesquisarPacientes(); clnUtil.Temp = txtPesClien.Text; abrir.ShowDialog(); txtPesClien.Text = clnUtil.Temp; if (!(txtPesClien.Equals("") || txtPesClien == null)) { comboBox2.Enabled = true; PreencherTipoServico(); } }
private void btnPesquisa_Click(object sender, EventArgs e) { frmPesquisarPacientes abrir = new frmPesquisarPacientes(); clnUtil.Temp = txtPesClien.Text; abrir.ShowDialog(); txtPesClien.Text = clnUtil.Temp; if (!string.IsNullOrEmpty(txtPesClien.Text)) { comboBox2.Enabled = true; PreencherTipoServico(); PreencherAgendamentos(); } }