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

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