private void outputWindowToolStripMenuItem_Click(object sender, EventArgs e) { if (outputTextContent == null) { outputTextContent = GetWindowByName<OutputTextContent>("Output"); if (outputTextContent == null) { outputTextContent = GetOrCreateWindowByName<OutputTextContent>("Output"); outputTextContent.AppendText(PluginEngine.Default.GetOutputText()); outputTextContent.Closed += outputWindow_Closed; PluginEngine.Default.OnConsoleMessage += pluginEngine_OnConsoleMessage; } } }
private void outputWindow_Closed(object sender, EventArgs e) { outputTextContent = null; PluginEngine.Default.OnConsoleMessage -= pluginEngine_OnConsoleMessage; }