Exemplo n.º 1
0
 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;
         }
     }
 }
Exemplo n.º 2
0
 private void outputWindow_Closed(object sender, EventArgs e)
 {
     outputTextContent = null;
     PluginEngine.Default.OnConsoleMessage -= pluginEngine_OnConsoleMessage;
 }