public ShellStreamDeligater(ShellStream stream)
 {
     if ((Stream = stream) == null)
     {
         throw new ArgumentNullException(nameof(stream));
     }
     stream.DataReceived += (sender, args) =>
     {
         var text = Encoding.Default.GetString(args.Data);
         CopyText.Append(text);
         if (IsWriteConsole)
         {
             Console.Write(text);
         }
         IsReceived = true;
     };
 }