private Boolean UpdateFortsInfo(String path, FortMapper map) { if (path == "" || !File.Exists(path)) { MessageBox.Show("指定されたファイルは存在しません。", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error); return false; } try { DateTime uTime = File.GetLastWriteTime(path); map.ReadLog( File.ReadAllText(path, Encoding.Default), uTime); return true; } catch { MessageBox.Show("ログの読み込みに失敗しました。", "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error); return false; } }