public AppConsole(RichTextBox screen, AppForm a) : base(screen, a) { string arg_31_0 = "@#$B"; CommandConsole.ArgClass[] array = new CommandConsole.ArgClass[4]; array[2] = new CommandLibrary.StateSequence(new char?('$')); this.CLF = new CommandConsole(arg_31_0, array, true, Program.ConsoleWorkingDirectory, AppConsole.InitStrings); this.CLF.OnWorkingDirectoryChanged += new CommandPromptWrapper.DirectoryChangedEvent(this.CLF_OnWorkingDirectoryChanged); a.ConsoleTextBox.Lines = new string[] { " " }; a.ConsoleTextBox.KeyDown += new KeyEventHandler(this.richTextBox1_KeyDown); a.ConsoleTextBox.KeyUp += new KeyEventHandler(this.richTextBox1_KeyUp); a.ConsoleTextBox.MouseUp += new MouseEventHandler(this.richTextBox1_MouseUp); }
private void CLF_OnWorkingDirectoryChanged(CommandPromptWrapper clf, string newDir) { Program.ConsoleWorkingDirectory = newDir; }