static void Output(string content) { if (s_initialized == false) { Initialize(); s_initialized = true; } if (s_outputPane != null) { CodeScene scene = UIManager.Instance().GetScene(); if (scene != null) { CodeView codeView = scene.View; if (codeView != null) { codeView.Dispatcher.BeginInvoke((ThreadStart) delegate { s_outputPane.OutputString(content + "\n"); //s_outputPane.Activate(); // Brings this pane into view }); } } } else { System.Console.WriteLine(content); } }
public SceneUpdateThread(CodeScene scene) { m_thread = new Thread(new ThreadStart(Run)); m_thread.Name = "Scene Update Thread"; m_thread.Priority = ThreadPriority.Lowest; }
public UIManager() { scene = new CodeScene(); }