private PrConsole getConsole(ReflectionScriptDefines refObject, Object parent) { PrConsole newTextBox = new PrConsole(); newTextBox = (PrConsole)NewControlObject(newTextBox, refObject, parent); return(newTextBox); }
public void Message(string name, string message) { if (this.OnMessageScript != null) { this.OnMessageScript.createOrUpdateStringVar("&" + name, message); RefScriptExecute executer = new RefScriptExecute(this.OnMessageScript, this); executer.run(); } foreach (Control element in this.Controls) { if (element is PrConsole) { PrConsole console = (PrConsole)element; console.addMessage(message); } } }