private List<LastAction> GetList(Repository repository) { var filePath = new LastActionPath(repository).PhysicalPath; if (!File.Exists(filePath)) { return new List<LastAction>(); } var list = Serialization.DeserializeSettings<List<LastAction>>(filePath); foreach (var item in list) { item.Repository = repository; } return list; }
private List <LastAction> GetList(Repository repository) { var filePath = new LastActionPath(repository).PhysicalPath; if (!File.Exists(filePath)) { return(new List <LastAction>()); } var list = Serialization.DeserializeSettings <List <LastAction> >(filePath); foreach (var item in list) { item.Repository = repository; } return(list); }
private void SaveList(Repository repository, List <LastAction> lastActions) { var filePath = new LastActionPath(repository).PhysicalPath; Serialization.Serialize <List <LastAction> >(lastActions, filePath); }
private void SaveList(Repository repository, List<LastAction> lastActions) { var filePath = new LastActionPath(repository).PhysicalPath; Serialization.Serialize<List<LastAction>>(lastActions, filePath); }