TerminalControl writen in C#