Example #1
0
 public void StartSession(ConsoleSessionInfo sessionInfo)
 {
     ConControl.Invoke(() =>
         {
             ConControl.Cout.Clear();
             ConControl.Cout.GetScintilla().ReadOnly = false;
             conOut = System.Console.Out;
             conIn = System.Console.In;
             System.Console.SetOut(new ConsoleTextWriter(ConControl.Cout));
             System.Console.SetIn(new ConsoleTextReader(ConControl.Cout));
             ConControl.Cout.PrintHeader(sessionInfo.Banner);
         });
     sessionStart = DateTime.Now;
     OnContentChanged(new ViewEventArgs(true, sessionInfo.SessionName));
 }
Example #2
0
 public void StartSession(ConsoleSessionInfo sessionInfo)
 {
     View().StartSession(sessionInfo);
 }