void TaggedValueListClick(object sender, EventArgs e) { ListBox touchedList = (ListBox)sender; // selectedMethod = (MethodVO)touchedList.Tag; // selectedAttribute = null; DiffPresenter.updateEaTaggedValueObject(myElement, selectedTag); this.Close(); }
void ReflectToEAToolStripMenuItemClick(object sender, EventArgs e) { EA.Repository repo = ProjectSetting.getVO().eaRepo; if (repo != null) { // 選択された属性に対する更新処理 if (selectedAttribute != null) { //メッセージボックスを表示する DialogResult result = MessageBox.Show("EAのリポジトリの属性を上書き、もしくは追加します。よろしいですか?", "質問", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1); //何が選択されたか調べる if (result == DialogResult.Yes) { DiffPresenter.updateEaAttributeObject(myElement, selectedAttribute); } else { return; } } // 選択された操作に対する更新処理 if (selectedMethod != null) { //メッセージボックスを表示する DialogResult result = MessageBox.Show("EAのリポジトリの操作を上書き、もしくは追加します。よろしいですか?", "質問", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1); //何が選択されたか調べる if (result == DialogResult.Yes) { DiffPresenter.updateEaMethodObject(myElement, selectedMethod); } else { return; } } // 選択されたタグ付き値に対する更新処理 if (selectedTag != null) { //メッセージボックスを表示する DialogResult result = MessageBox.Show("EAのリポジトリのタグ付き値を上書き、もしくは追加します。よろしいですか?", "質問", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1); //何が選択されたか調べる if (result == DialogResult.Yes) { DiffPresenter.updateEaTaggedValueObject(myElement, selectedTag); } else { return; } } } else { MessageBox.Show("EAにアタッチしていないため、反映できません"); } }