Esempio n. 1
0
        public void View(string path, ContextObject context)
        {
            _ip = new InfoPanel();
            context.ViewerContent = _ip;

            _ip.DisplayInfo(path);
            context.IsBusy = false;
        }
        public void BoundViewSize(string path, ContextObject context)
        {
            _ip = new InfoPanel();

            context.CanResize     = false;
            context.PreferredSize = new Size {
                Width = _ip.Width, Height = _ip.Height
            };
        }
Esempio n. 3
0
        public void Cleanup()
        {
            if (_ip == null)
            {
                return;
            }

            _ip.Stop = true;
            _ip      = null;
        }