foreach (var listForm in _listForms)\r
action(listForm);\r
}\r
+\r
+ public void WaitForCloseAll()\r
+ {\r
+ var start = DateTime.Now;\r
+ do\r
+ {\r
+ Application.DoEvents();\r
+ if (_listForms.All(listFrom => !listFrom.Visible))\r
+ return;\r
+ } while ((DateTime.Now - start).TotalSeconds < 5);\r
+ }\r
}\r
}
\ No newline at end of file
}\r
if (!SystemShutdown)\r
_listFormGroup.Close(); // 各自で終了処理するのでシャットダウン時は不要\r
+ _listFormGroup.WaitForCloseAll();\r
Config.Location = (Form.WindowState == FormWindowState.Normal ? Form.Bounds : Form.RestoreBounds).Location;\r
Config.ShowHpInPercent = _c.fleetPanel.ShowHpInPercent;\r
}\r