private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) { UpdateButtons(null, null); }