Fixing MAGN-4130, Tested with CTRL+SHIFT+UP. Work as expected to hide and show the console window

Delete ConsoleShowing because it's just for testing. 
Change from smt.BeginInvoke to the real ConsoleHeight checking