Ejemplo n.º 1
0
        private IEnumerable <NoteSource> GetLocalFiles()
        {
            List <NoteSource> sources = new List <NoteSource>();

            System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(NoteDataFolder);
            foreach (System.IO.FileInfo file in dir.EnumerateFiles())
            {
                NoteSource source = new FileNoteSource(this);
                source.SetName(file.Name);
                source.FileType = file.Extension;
                sources.Add(source);
            }
            return(sources);
        }
Ejemplo n.º 2
0
 public override bool CreateNote(NoteSystem system, NoteSource source)
 {
     if (source.MatchesFileType(".wflnk"))
     {
         string         name         = "get name from .wflnk file;";
         FileNoteSource linkedSource = new FileNoteSource(system);
         linkedSource.SetName(name);
         List <NoteSource> linkedSources = new List <NoteSource>()
         {
             linkedSource
         };
         system.CreateNotes();
         return(true);
     }
     return(false);
 }