public void AddOutput(string type, OutputWord word) { if (!_words.ContainsKey(type)) _words.Add(type, new List<OutputWord>()); _words[type].Add(word); if (type == _currentType) { OutputBox.Select(OutputBox.TextLength, 0); OutputBox.SelectionColor = word.GetColour(); OutputBox.AppendText(word.Text); OutputBox.ScrollToCaret(); } }
public void AddOutput(string type, OutputWord word) { if (!_words.ContainsKey(type)) { _words.Add(type, new List <OutputWord>()); } _words[type].Add(word); if (type == _currentType) { OutputBox.Select(OutputBox.TextLength, 0); OutputBox.SelectionColor = word.GetColour(); OutputBox.AppendText(word.Text); OutputBox.ScrollToCaret(); } }
private void OutputMessage(string type, OutputWord word) { AddOutput(type, word); }