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.GetFileName(path); _panel.Navigate(ExtractMailBody(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.GetFileName(path); _panel.LoadHtml(GenerateMarkdownHtml(path)); _panel.Dispatcher.Invoke(() => { context.IsBusy = false; }, DispatcherPriority.Loaded); }
public void Cleanup() { GC.SuppressFinalize(this); _panel?.Dispose(); _panel = null; if (Directory.Exists(_tmpDir)) { Directory.Delete(_tmpDir, true); } }