public void Cleanup() { GC.SuppressFinalize(this); _panel?.Dispose(); _panel = null; }
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); }
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); }
public void Cleanup() { _panel?.Dispose(); _panel = null; }