/// <summary>
 /// Load all markers from file
 /// </summary>
 private void LoadIdentifiers()
 {
     string[] lines = File.ReadAllLines(InputFile);
     markedFiles = new ObservableCollection <MarkedFile>();
     foreach (string line in lines)
     {
         MarkedFile markedFile = new MarkedFile(line);
         markedFiles.Add(markedFile);
     }
 }
Esempio n. 2
0
 private void LoadMarkers()
 {
     if (!File.Exists(MarkersFilePath))
     {
         File.Create(MarkersFilePath).Close();
     }
     string[] lines = File.ReadAllLines(MarkersFilePath);
     markedFiles = new ObservableCollection <MarkedFile>();
     foreach (string line in lines)
     {
         MarkedFile markedFile = new MarkedFile(line);
         markedFiles.Add(markedFile);
     }
 }