public MainPage(IOSCommands inCommands) { _commandExecuter = inCommands; InitializeComponent(); homeDirectory.Dispatcher.BeginInvokeOnMainThread(() => { homeDirectory.Text = CommandShellImmortal.myCommandShellImmortal.HostGetRootDirectory(); }); homeDirectory.Dispatcher.BeginInvokeOnMainThread(() => { relativeDirectory.Text = CommandShellImmortal.myCommandShellImmortal.HostGetRelativeDirectory(); }); _myAccumulatedOutput = ""; consoleOutput.Text = CommandShellImmortal.myCommandShellImmortal.HostGetConsoleOutput(); _commandOutputWriter = new TextOutputAccumulator(this); _refreshQueue = new AsyncQueue <bool>(); CheckRefreshQueueAsync(); }
public MainPage(IOSCommands inCommands) { _commandExecuter = inCommands; InitializeComponent(); // Initialize the on-screen homeDirectory to the potentially recovered contents homeDirectory.Dispatcher.BeginInvokeOnMainThread(() => { homeDirectory.Text = CommandShellImmortal.myCommandShellImmortal.HostRootDirectory(); }); // Initialize the on-screen relativeDirectory to the potentially recovered contents homeDirectory.Dispatcher.BeginInvokeOnMainThread(() => { relativeDirectory.Text = CommandShellImmortal.myCommandShellImmortal.HostRelativeDirectory(); }); // Initialize the current command command.Dispatcher.BeginInvokeOnMainThread(() => { command.Text = CommandShellImmortal.myCommandShellImmortal.HostCurrentCommand(); }); _myAccumulatedOutput = ""; // Initialize the on-screen contents to the potentially recovered contents consoleOutput.Text = CommandShellImmortal.myCommandShellImmortal.HostConsoleOutput(); _commandOutputWriter = new TextOutputAccumulator(this); _refreshQueue = new AsyncQueue <bool>(); CheckRefreshQueueAsync(); }