Beispiel #1
0
        public CommandProcessorController Clone()
        {
            CommandProcessorController Result = (CommandProcessorController)MemberwiseClone();

            Result._CmdProcess   = null;
            Result._OutputBox    = null;
            Result._InputBuilder = null;
            Result._InputIndex   = 0;
            Result._IdleEvent    = null;
            Result._SkipOutput   = false;
            Result._OutputLock   = new object();
            Result._DisposeLock  = new object();

            if (Running)
            {
                Result._SkipOutput = true;
                if (Result.Start(_CurrentDirectory))
                {
                    Result._OutputBox.Text = _OutputBox.Text;
                    Result._InputBuilder   = new StringBuilder(_InputBuilder.ToString());
                    Result._InputIndex     = _InputIndex;
                }
                else
                {
                    Result._SkipOutput = false;
                }
            }

            return(Result);
        }
Beispiel #2
0
            public object Clone()
            {
                CommandProcessorController Result = _Owner.Clone();

                return(Result.Running ? Result.OutputBox : null);
            }
 public OutputTextBox(CommandProcessorController owner)
 {
   _Owner = owner;
 }
Beispiel #4
0
 public OutputTextBox(CommandProcessorController owner)
 {
     _Owner = owner;
 }