public void Display(IGenerator generator) { textBox1.Text = string.Empty; foreach (object o in generator.Get()) { textBox1.Text += o + Environment.NewLine; } }