예제 #1
0
 private void CargarEstados(TEstado estado)
 {
     cmbEstado.Items.Clear();
     // cargamos el desplegable.
     CntSciTerminal.TOpen(this.conn);
     foreach (TEstado e in CntSciTerminal.GetTEstados(conn))
     {
         cmbEstado.Items.Add(e.Nombre);
     }
     if (estado != null)
     {
         cmbEstado.Text = estado.Nombre;
     }
     else
     {
         cmbEstado.Items.Add("");
         cmbEstado.Text = "";
     }
     CntSciTerminal.TClose(this.conn);
 }