Example #1
0
 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;
 }
Example #2
0
        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);
        }
Example #3
0
        private void SaveList(Repository repository, List <LastAction> lastActions)
        {
            var filePath = new LastActionPath(repository).PhysicalPath;

            Serialization.Serialize <List <LastAction> >(lastActions, filePath);
        }
Example #4
0
 private void SaveList(Repository repository, List<LastAction> lastActions)
 {
     var filePath = new LastActionPath(repository).PhysicalPath;
     Serialization.Serialize<List<LastAction>>(lastActions, filePath);
 }