Пример #1
0
        void llenarGrillaSala()
        {
            int n = 0;

            mgSala.Rows.Clear();
            SalaComponent SalaComponent = new SalaComponent();

            foreach (var item in SalaComponent.Read())
            {
                n = mgSala.Rows.Add();

                mgSala.Rows[n].Cells[0].Value = item.Id;
                mgSala.Rows[n].Cells[1].Value = item.nombre;
                mgSala.Rows[n].Cells[2].Value = item.tipoSala;
                mgSala.Rows[n].Cells[3].Value = item.capacidad;
                mgSala.Rows[n].Cells[4].Value = item.tiempo;
            }
        }
Пример #2
0
        public List <Sala> Read()
        {
            var bc = new SalaComponent();

            return(bc.Read());
        }