Beispiel #1
0
        public static string MostrarEstante(Estante e)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine(string.Format("Estante ubicacion: {0} productos: ", e.ubicacionEstante));
            foreach (Producto p in e.GetProductos())
            {
                sb.Append(Producto.MostrarProducto(p));
            }

            return(sb.ToString());
        }
Beispiel #2
0
        public static string MostrarEstante(Estante e)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("Estante ubicacion: " + e.ubicacionEstante);
            foreach (Producto producto in e.GetProductos())
            {
                if (!(producto is null))
                {
                    sb.AppendLine(Producto.MostrarProducto(producto));
                }
            }
            return(sb.ToString());
        }