Beispiel #1
0
		public void CreateRepl(Process replProcess)
		{
			var tabItem = new ReplTab();
			var replEntity = new Entity<ReplState> { CurrentState = new ReplState() };

			WireUpTheTextBoxInputToTheReplProcess(tabItem.InteractiveText, replProcess, replEntity);
			WireUpTheOutputOfTheReplProcessToTheTextBox(tabItem.InteractiveText, replProcess, replEntity);
			WireUpTheReplEditorCommandsToTheEditor(tabItem.InteractiveText, replProcess, replEntity, tabItem);

			tabItem.CloseButton.Click +=
			(o, e) =>
			{
				replProcess.Kill();
				ReplManager.Items.Remove(tabItem);
			};

			ReplManager.Items.Add(tabItem);
			ReplManager.SelectedItem = tabItem;
		  ReplToolWindow.Show();
		}
Beispiel #2
0
        public void CreateRepl(Process replProcess)
        {
            var tabItem    = new ReplTab();
            var replEntity = new Entity <ReplState> {
                CurrentState = new ReplState()
            };

            WireUpTheTextBoxInputToTheReplProcess(tabItem.InteractiveText, replProcess, replEntity);
            WireUpTheOutputOfTheReplProcessToTheTextBox(tabItem.InteractiveText, replProcess, replEntity);
            WireUpTheReplEditorCommandsToTheEditor(tabItem.InteractiveText, replProcess, replEntity, tabItem);

            tabItem.CloseButton.Click +=
                (o, e) =>
            {
                replProcess.Kill();
                ReplManager.Items.Remove(tabItem);
            };

            ReplManager.Items.Add(tabItem);
            ReplManager.SelectedItem = tabItem;
            ReplToolWindow.Show();
        }