private void saveButton_Click(object sender, EventArgs e) { TextForm tf = new TextForm(); tf.SetText(getContent(sender == saveAllButton)); tf.Show(); }