Beispiel #1
0
 private void frmPacientesAgendamentosManter_Load(object sender, EventArgs e)
 {
     if (this.comando == "editar")
     {
         Modelo.Controle controle = new Modelo.Controle();
         controle.GetEditarAgendamento(this.idAgendamento);
         while (controle.Dr.Read())
         {
             dtpAgendamento.Text = controle.Dr.GetValue(0).ToString();
             cmbHorario.Text     = controle.Dr.GetValue(1).ToString();
             cmbStatus.Text      = controle.Dr.GetValue(3).ToString();
             txbSolicitante.Text = controle.Dr.GetValue(2).ToString();
         }
     }
     else
     {
         cmbStatus.SelectedIndex = 0;
     }
 }