Пример #1
0
        public void Cleanup()
        {
            GC.SuppressFinalize(this);

            _panel?.Dispose();
            _panel = null;
        }
Пример #2
0
        public void View(string path, ContextObject context)
        {
            _panel = new WebpagePanel();
            context.ViewerContent = _panel;
            context.Title         = Path.IsPathRooted(path) ? Path.GetFileName(path) : path;

            _panel.LoadFile(path);
            _panel.Dispatcher.Invoke(() => { context.IsBusy = false; }, DispatcherPriority.Loaded);
        }
Пример #3
0
        public void View(string path, ContextObject context)
        {
            _panel = new WebpagePanel();
            context.ViewerContent = _panel;
            context.Title         = Path.IsPathRooted(path) ? Path.GetFileName(path) : path;

            if (path.ToLower().EndsWith(".url"))
            {
                path = Helper.GetUrlPath(path);
            }
            _panel.LoadFile(path);
            _panel.Dispatcher.Invoke(() => { context.IsBusy = false; }, DispatcherPriority.Loaded);
        }
Пример #4
0
 public void Cleanup()
 {
     _panel?.Dispose();
     _panel = null;
 }