private void RemoteShell() { RemoteShellWindow remoteShellWindow = new RemoteShellWindow(); this.remoteShellPresenter.SetRemoteShellWindow(remoteShellWindow); this.remoteShellPresenter.Show(); }
public void SetRemoteShellWindow(RemoteShellWindow remoteShellWindow) { if (remoteShellWindow != null && this.clientViewModel.CanRemoteShell) { this.remoteShellWindow = remoteShellWindow; this.remoteShellWindow.Title = this.clientViewModel.FullName; this.remoteShellWindow.Closing += remoteShellWindow_Closed; this.remoteShellWindow.Closed += remoteShellWindow_Closed; this.scrollViewerOutput = this.remoteShellWindow.scrollViewerOutput; this.textblockOutput = this.remoteShellWindow.textblockOutput; this.textboxInput = this.remoteShellWindow.textboxInput; this.textboxInput.KeyDown += textboxInput_KeyDown; } }