public static bool SavePosition(SavedPosition position, string fullPath) { if (position == null) { return(false); } var json = JsonService.SerializeToJson(position); return(SaveFile(fullPath, json)); }
public static SavedPosition LoadPosition(string fullPath) { return(File.Exists(fullPath) ? JsonService.DeserializeToString(LoadJson(fullPath)) : null); }