private void Open_Click(object sender, EventArgs e) { //現在開かれているタブを判別してそれにたいしてロードするようにする ScorePanel selectedPanel = (tabScore.SelectedTab as TabPageEx).ScorePanel; if (selectedPanel.Load()) { UpdateTextOfTabAndForm(false); tabScore.SelectedTab.Controls[0].Refresh(); } return; }