/// <summary> /// コンストラクタ /// </summary> public Form1() { InitializeComponent(); this.Text = TITLE; MyFile local_file = new MyFile(); // 読み込み if (local_file.LoadCode(SaveFileName, KEYWORD)) { String local_str; for (int i = 0; ; i++) { if ((local_str = local_file.Reader()) == null) { break; } BackUpPage.Add(new MyBackUpPage(local_str)); if (i == 0) { tabControl1.TabPages[0].Text = BackUpPage[0].Title; } else { tabControl1.TabPages.Add(BackUpPage[BackUpPage.Count - 1].Title); } } } if (BackUpPage.Count == 0) { BackUpPage.Add(new MyBackUpPage()); BackUpPage[0].Title = tabControl1.TabPages[0].Text = "Title1"; } buttonSave.Enabled = false; RenewEnabledComponent(); tabControl1.TabIndex = 0; RenewBackUpPage(); }