Beispiel #1
0
 void menuImport_click(object sender, EventArgs e)
 {
     CSVFileRepository repository =new CSVFileRepository(GetPath(FileTypes.csv, DlgTypes.load));
     data.Clear();
     foreach (AbstractMovie movie in repository.Load())
     {
         data.Add(movie);
     }
     UpdateContent();
 }
Beispiel #2
0
 void menuExport_click(object sender, EventArgs e)
 {
     if (data.Count == 0) return;
     CSVFileRepository repository = new CSVFileRepository(GetPath(FileTypes.csv, DlgTypes.save));
 }