コード例 #1
0
        protected void OnShowConsoleClicked(object sender, EventArgs e)
        {
            if (consoleWindow == null)
            {
                consoleWindow            = new CoverageConsoleWindow();
                consoleWindow.Destroyed += HandleConsoleWindowDestroyed;
            }

            consoleWindow.ShowAll();
        }
コード例 #2
0
 void HandleConsoleWindowDestroyed(object sender, EventArgs e)
 {
     consoleWindow.Destroyed -= HandleConsoleWindowDestroyed;
     consoleWindow            = null;
 }