private static string GetCacheDirectory() { string tempPath = Path.GetTempPath(); string cacheDirectory = Path.Combine(tempPath, "PurplePen"); if (!Directory.Exists(cacheDirectory)) Directory.CreateDirectory(cacheDirectory); return cacheDirectory; }