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(); }
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(); }