回答編集履歴
1
戻り値の指定書き忘れ
test
CHANGED
@@ -24,13 +24,15 @@
|
|
24
24
|
|
25
25
|
// opt == true の処理
|
26
26
|
|
27
|
+
return DialogResult.OK; // okが押されたことにする
|
28
|
+
|
27
29
|
}
|
28
30
|
|
29
31
|
else
|
30
32
|
|
31
33
|
{
|
32
34
|
|
33
|
-
MessageBox.Show(text, caption, buttons, icon);
|
35
|
+
return MessageBox.Show(text, caption, buttons, icon); // 戻り値を一切使わないならvoidにしてしまうでも良い
|
34
36
|
|
35
37
|
}
|
36
38
|
|