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); }
public object Clone() { CommandProcessorController Result = _Owner.Clone(); return(Result.Running ? Result.OutputBox : null); }
public OutputTextBox(CommandProcessorController owner) { _Owner = owner; }