public void ExportToCsv() { //string file = SaveDialog.GetCsvFile(); string folder = SaveDialog.GetDirectoryForSave(); if (string.IsNullOrEmpty(folder)) { return; } m_models.ForEach(model => model.ExportToCsv(folder)); OpenAfterExport(folder); }