public void Express(string str, Expression_Types type) { Color color = m_Output.ForeColor; int s_start = m_Output.TextLength; switch (type) { case Expression_Types.Error: color = Color.IndianRed; break; case Expression_Types.Information: color = Color.CornflowerBlue; break; case Expression_Types.Interaction: color = Color.White; break; case Expression_Types.Console: color = Color.Gray; break; } m_Output.AppendText(str + Environment.NewLine); m_Output.Select(s_start, str.Length); m_Output.SelectionColor = color; m_Output.SelectionStart = m_Output.TextLength; m_Output.ScrollToCaret(); }
public void Express(string str, Expression_Types type) { foreach (ISense expression_sense in m_Expresion_Senses) { expression_sense.Express(str); } terminal.Express(str, Expression_Types.Interaction); }