예제 #1
0
        public AgregarColegio()
        {
            InitializeComponent();
            colegioBL   = new ColegioBL();
            regionBL    = new RegionBL();
            provinciaBL = new ProvinciaBL();

            cboDep.DisplayMember = "Nombre";
            cboDep.ValueMember   = "Id";
            cboDep.DataSource    = regionBL.listarRegion();
        }
예제 #2
0
 public SolicitarColegio()
 {
     InitializeComponent();
     solicitudes          = new BindingList <SolicitudColegio>();
     regionBL             = new RegionBL();
     provinciaBL          = new ProvinciaBL();
     distritoBL           = new DistritoBL();
     solicitudColegioDA   = new SolicitudColegioDA();
     cboDep.DisplayMember = "Nombre";
     cboDep.ValueMember   = "Id";
     cboDep.DataSource    = regionBL.listarRegion();
 }
예제 #3
0
 public EditarColegio(int cod, string nombre, string ruc, string dep, string prov, string direccion, int telf)
 {
     InitializeComponent();
     colbl                     = new ColegioBL();
     txtN.Text                 = nombre;
     txtRuc.Text               = ruc;
     txtid.Text                = cod.ToString();
     cboDep.SelectedValue      = dep;
     cbProvincia.SelectedValue = prov;
     txtDir.Text               = direccion;
     txtTelf.Text              = telf.ToString();
     cboTipoCol.SelectedValue  = cboTipoCol.Items[0];
     regionBL                  = new RegionBL();
     provinciaBL               = new ProvinciaBL();
     distritoBL                = new DistritoBL();
     cboDep.DisplayMember      = "Nombre";
     cboDep.ValueMember        = "Id";
     cboDep.DataSource         = regionBL.listarRegion();
 }