Esempio n. 1
0
        public void TryToConvert(string path, string extension, string goalExtension, string goalPath)
        {
            var converter = imageConverters.First(c => c.Extension == extension);
            var file      = fileWorker.Read(path);
            var image     = converter.Decode(file);

            WriteImage(image, path, goalExtension, goalPath);
        }
Esempio n. 2
0
        public void Deserialize(FileStream s)
        {
            var read = fileWorker.Read(s);
            var obj  = listSerializer.Deserialize(read);

            this.Count = obj.Count;
            this.Head  = obj.Head;
            this.Tail  = obj.Tail;
        }
Esempio n. 3
0
 private static IEnumerable <IActionPlugin> GetActionPluginsFromFile(
     IFileWorker <IEnumerable <IActionPlugin> > typeFileWorker)
 {
     if (typeFileWorker == null)
     {
         throw new ArgumentNullException(nameof(typeFileWorker));
     }
     return(typeFileWorker.Read());
 }
Esempio n. 4
0
        public Mesh Read(string path)
        {
            var file = fileWorker.Read(path);

            return(Decode(file));
        }