回答編集履歴
1
戻り値の指定書き忘れ
answer
CHANGED
@@ -11,10 +11,11 @@
|
|
11
11
|
if (opt)
|
12
12
|
{
|
13
13
|
// opt == true の処理
|
14
|
+
return DialogResult.OK; // okが押されたことにする
|
14
15
|
}
|
15
16
|
else
|
16
17
|
{
|
17
|
-
MessageBox.Show(text, caption, buttons, icon);
|
18
|
+
return MessageBox.Show(text, caption, buttons, icon); // 戻り値を一切使わないならvoidにしてしまうでも良い
|
18
19
|
}
|
19
20
|
}
|
20
21
|
}
|