private void DoTabIndexChanged(object sender, EventArgs e) { if (tabset.SelectedTab == objectPage) { schemaManager.Focus(); commander.SetDefaults(); } else if (tabset.SelectedTab == projectPage) { projectTree.Focus(); } else if (tabset.SelectedTab == templatePage) { templateTree.Focus(); commander.SetDefaults(); } }