void AddTextToOutputWindow(string ExeFileName, string Text)
        {
            //if ((DateTime.Now - dt).TotalSeconds >= 1)
            //  Application.DoEvents()
            ExeFileName = Tools.FileNameToLower(ExeFileName);
            if (WorkbenchStorage.SetCurrentTabPageIfWriteToOutputWindow)
            {
                WorkbenchStorage.SetCurrentTabPageIfWriteToOutputWindow = false;
                CurrentCodeFileDocument = WorkbenchServiceFactory.RunService.GetRunTab(ExeFileName) as CodeFileDocumentControl;
            }
            BottomTabsVisible = true;
            if (BottomActiveContent != OutputWindow)
            {
                OutputWindow.Activate();
                CurrentCodeFileDocument.Activate();
                OutputWindow.Activate();
            }
            TextBoxBase textBox = OutputTextBoxs[WorkbenchServiceFactory.RunService.GetRunTab(ExeFileName) as CodeFileDocumentControl];

            textBox.BeginInvoke(new AppendTextInternalAsyncDelegate(AppendTextInternalAsync), textBox, Text);
            if (textBox == OutputWindow.outputTextBox)
            {
                OutputWindow.OutputTextBoxScrolToEnd();
            }
            if (WorkbenchServiceFactory.DebuggerManager.IsRun(ExeFileName))
            {
                for (int i = 0; i < TabStack.Count; i++)
                {
                    TextBoxBase tb = OutputTextBoxs[TabStack[i]];
                    if (textBox != tb)
                    {
                        tb.BeginInvoke(new AppendTextInternalAsyncDelegate(AppendTextInternalAsync), tb, Text);
                    }
                }
            }
            if (!WorkbenchServiceFactory.RunService.IsRun(ExeFileName))
            {
                SetFocusToEditor();
            }
        }
Beispiel #2
0
 public void ExecPaste()
 {
     CurrentCodeFileDocument.Paste(true);
 }
Beispiel #3
0
 public void ExecCopy()
 {
     CurrentCodeFileDocument.Copy();
 }
Beispiel #4
0
 public void ExecCut()
 {
     CurrentCodeFileDocument.Cut();
 }
Beispiel #5
0
 public void OpenFileWithForm()
 {
     OpenFile(null, null);
     CurrentCodeFileDocument.AddDesigner(null);
 }