Exemplo n.º 1
0
        public Document()
        {
            _imageLinkManager = new ImageLinkManager();

            _frames.Added += new EventHandler<TrackedBindingListEventArgs<DocumentFrame>>(_frames_Added);
            _frames.Removed += new EventHandler<TrackedBindingListEventArgs<DocumentFrame>>(_frames_Removed);
        }
Exemplo n.º 2
0
        public ImageLinkCache(ImageLinkManager manager)
        {
            _manager = manager;

            _images = new Dictionary<ImageLink, Image>();

            _manager.LinkAttached += new EventHandler<LinkEventArgs>(_manager_LinkAttached);
            _manager.LinkDetached += new EventHandler<LinkEventArgs>(_manager_LinkDetached);

            foreach (ImageLink link in manager.Links)
            {
                _manager_LinkAttached(manager, new LinkEventArgs(manager, link));
            }
        }