private void richTextBox1_TextChanged(object sender, EventArgs e) { unsaved[tabControl1.SelectedIndex] = true; }