///<summary> ///setEndAction ///戻るボタンの処理 ///作成者:大河内 ///作成日:2017/3/23 ///更新者:大河内 ///更新日:2017/3/23 ///カラム論理名 ///</summary> public void setEndAction(int intFrmKind) { //全てのフォームの中から foreach (System.Windows.Forms.Form frm in Application.OpenForms) { //目的のフォームを探す if (intFrmKind == 1 && frm.Name.Equals("Daibunrui")) { MessageBox.Show("移動前のウィンドウが違います。(大分類)", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error); break; } //目的のフォームを探す else if (intFrmKind == 2 && frm.Name.Equals("Cyubunrui")) { MessageBox.Show("移動前のウィンドウが違います。(大分類)", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error); break; } //目的のフォームを探す else if (intFrmKind == 5 && frm.Name == "TanaorosiInput") { //データを連れてくるため、newをしないこと TanaorosiInput tanaorosiinput = (TanaorosiInput)frm; tanaorosiinput.setEigyoushoListClose(); break; } } }