예제 #1
0
        public void Dispose()
        {
            ResourceEntity resource = new ResourceEntity();

            resource.Position = _position;
            resource.Source   = _page.OutputStack.Pop();
            var resources = new ResourceCollection();

            resources.Name = Guid.NewGuid().ToString("N");
            resources.Add(resource);
            _callBack(resources, _key);
        }
예제 #2
0
        public void AtFoot()
        {
            var resources = new ResourceCollection();

            resources.Name = _resource.Name;
            _resource.Each(m =>
            {
                ResourceEntity entity = m.ToNew();
                entity.Position       = ResourcePosition.Foot;
                resources.Add(entity);
            });
            _callBack(resources, _key);
        }
예제 #3
0
        public void Dispose()
        {
            ResourceEntity resource = new ResourceEntity();

            resource.Position = _position;
            resource.Source   = _page.OutputStack.Pop();
            var          resources    = new ResourceCollection();
            StringWriter stringWriter = resource.Source as StringWriter;

            resources.Name = _key + resource.Source.ToString().GetHashCode();
            resources.Add(resource);
            _callBack(resources, _key);
        }