private void menuBtn_renameSelfIntroduction_Click(object sender, EventArgs e) { InputBoxDialog inputBox = new InputBoxDialog(); inputBox.SetDescription("새로운 이름을 입력하세요."); if (inputBox.ShowDialog() == DialogResult.OK) { if (GetSelfIntroductionManager().GetSelfIntroductionNames().Contains(inputBox.GetResult())) { MessageBox.Show("이미 존재하는 이름입니다."); return; } Data.SelfIntroduction selfIntroduction = GetSelfIntroductionManager().GetSelfIntroduction(GetSelfIntroductionName()); GetSelfIntroductionManager().DeleteSelfIntroduction(GetSelfIntroductionName()); SetSelfIntroductionName(inputBox.GetResult()); GetSelfIntroductionManager().SaveSelfIntroduction(GetSelfIntroductionName(), selfIntroduction); OnFileRenamedOrDeleted(this, new EventArgs()); this.Text = "자기소개서 - " + this.GetSelfIntroductionName(); } }