public static readonly string BaseDir = AppDomain.CurrentDomain.BaseDirectory;\r
private static readonly string ConfigFile = Path.Combine(BaseDir, FileName);\r
\r
- public Config()\r
- {\r
- ConvertPath(PrependBaseDir);\r
- }\r
-\r
public void InitializeValues()\r
{\r
NotifyConditions = new List<int>(new[] {40, 49});\r
{\r
throw new Exception(FileName + "が壊れています。", ex);\r
}\r
- ConvertPath(PrependBaseDir);\r
}\r
\r
private void ComposeNotificationFlags()\r
path = path.Substring(BaseDir.Length);\r
return path.TrimStart(Path.DirectorySeparatorChar);\r
}\r
-\r
- private string PrependBaseDir(string path) => Path.IsPathRooted(path) ? path : Path.Combine(BaseDir, path);\r
}\r
}
\ No newline at end of file