예제 #1
0
        private void RemoteShell()
        {
            RemoteShellWindow remoteShellWindow = new RemoteShellWindow();

            this.remoteShellPresenter.SetRemoteShellWindow(remoteShellWindow);
            this.remoteShellPresenter.Show();
        }
예제 #2
0
 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;
     }
 }