public static void Show()
        {
            if (connectionWindow == null)
            {
                terminalWasOpenOnAppClose = false;
                string windowSize = UserSettings.Instance.get(TerminalWindowSizeKey);
                int    width      = 400;
                int    height     = 300;
                if (windowSize != null && windowSize != "")
                {
                    string[] sizes = windowSize.Split(',');
                    width  = Math.Max(int.Parse(sizes[0]), (int)minSize.x);
                    height = Math.Max(int.Parse(sizes[1]), (int)minSize.y);
                }

                connectionWindow         = new TerminalWindow(width, height);
                connectionWindow.Closed += (parentSender, e) =>
                {
                    connectionWindow = null;
                };

                // start with the assumption we are open and only change this is we see it close
                UserSettings.Instance.Fields.SetBool(TerminalWindowLeftOpen, true);
            }
            else
            {
                connectionWindow.BringToFront();
            }
        }
 public static void Show()
 {
     if (connectionWindow == null)
     {
         connectionWindow         = new TerminalWindow();
         connectionWindow.Closed += (parentSender, e) =>
         {
             connectionWindow = null;
         };
     }
     else
     {
         connectionWindow.BringToFront();
     }
 }