private static CurrentLogMessages GetNewStatusWindow()
        {
            var window = new CurrentLogMessages();

            window.Closing += WindowOnClosing;

            return(window);
        }
 private static void WindowOnClosing(object o, EventArgs e)
 {
     _shown        = false;
     _statusWindow = null;
     ((Hierarchy)LogManager.GetRepository()).Root.RemoveAppender(_appender);
 }
 public static CurrentLogMessages GetStatusWindow()
 {
     return(_statusWindow = _statusWindow ?? GetNewStatusWindow());
 }