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