private void button1_Click(object sender, EventArgs e) { if (String.IsNullOrEmpty(id.Text).Equals(false)) { this.ClearTextBoxes(); this.ClearComboBox(); this.id.Text = ""; this.dtHrReagendamento.Text = ""; this.RbFemenino.Checked = false; this.RbMasculino.Checked = false; this.Obs.Text = ""; Reagendar re = new Reagendar(DataHrAgendamento.Text, idPaciente); re.ShowDialog(); } else { MessageBox.Show("Selecione a solicitação que deseja reagendar !", "Atenção", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void button1_Click(object sender, EventArgs e) { if (String.IsNullOrEmpty(id.Text).Equals(false)) { this.ClearTextBoxes(); this.ClearComboBox(); this.id.Text = ""; this.dtHrReagendamento.Text = ""; this.RbFemenino.Checked = false; this.RbMasculino.Checked = false; this.Obs.Text = ""; Reagendar re = new Reagendar(DataHrAgendamento.Text, idPaciente); re.ShowDialog(); } else { MessageBox.Show("Selecione a solicitação que deseja reagendar !", "Atenção", MessageBoxButtons.OK, MessageBoxIcon.Error); } }