Esempio n. 1
0
        private void CargarSalas()
        {
            var lstSalas = new LN.Sala().ListaSimple();

            lstSalas.Insert(0, new BE.Sala()
            {
                IdSala = 0, Nombre = "Todas"
            });

            this.cboSala.DataSource    = lstSalas;
            this.cboSala.DisplayMember = "Nombre";
            this.cboSala.ValueMember   = "IdSala";
        }
        private void CargarSalas(bool Seleccione = false)
        {
            var lstSalas = new LN.Sala().ListaSimple();

            if (Seleccione == true)
            {
                lstSalas.Insert(0, new BE.Sala()
                {
                    IdSala = 0, Nombre = "Seleccione"
                });
            }

            this.cboSala.DataSource    = lstSalas;
            this.cboSala.DisplayMember = "Nombre";
            this.cboSala.ValueMember   = "IdSala";
        }
        private void CargarSalas()
        {
            try
            {
                var lstBeSalas = new LN.Sala().ListaSimple();

                lstBeSalas.Insert(0, new BE.Sala()
                {
                    IdSala = 0, Nombre = "Seleccione"
                });

                this.cboSala.DataSource    = lstBeSalas;
                this.cboSala.DisplayMember = "Nombre";
                this.cboSala.ValueMember   = "IdSala";
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }