예제 #1
0
        private PrConsole getConsole(ReflectionScriptDefines refObject, Object parent)
        {
            PrConsole newTextBox = new PrConsole();

            newTextBox = (PrConsole)NewControlObject(newTextBox, refObject, parent);
            return(newTextBox);
        }
예제 #2
0
        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);
                }
            }
        }