/// <summary> /// The status bar has a log associated with it. This opens the window (if it is not already open) /// </summary> public void OpenLog() { LogWriter.Flush(); LogWindow.Show(); LogWindow.TextEditor.Body.ScrollToEnd(); LogWindow.Focus(); }
private void DoViewManifestClick(object sender, RoutedEventArgs e) { StatusBar log = GuiApp.MainWindow.StatusBar; string selectedProvider = ProviderNameListBox.SelectedItem as string; if (selectedProvider == null) { log.LogError("No provider selected"); return; } log.Log("[Looking up manifest for " + selectedProvider + " ]"); string manifestString = RegisteredTraceEventParser.GetManifestForRegisteredProvider(selectedProvider); var textEditorWindow = new TextEditorWindow(); textEditorWindow.Width = 1200; textEditorWindow.Height = 800; textEditorWindow.TextEditor.IsReadOnly = true; textEditorWindow.TextEditor.AppendText(manifestString); textEditorWindow.Show(); }