コード例 #1
0
ファイル: ReplFactory.cs プロジェクト: rpete4130/vsClojure
		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();
		}
コード例 #2
0
ファイル: ReplFactory.cs プロジェクト: rpete4130/vsClojure
        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();
        }