Пример #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();
 }
Пример #2
0
 void menuExport_click(object sender, EventArgs e)
 {
     if (data.Count == 0) return;
     CSVFileRepository repository = new CSVFileRepository(GetPath(FileTypes.csv, DlgTypes.save));
 }