//**************************************************************************************************** // //**************************************************************************************************** public void ExportCSV() { if (POPUPFileBrowser.Instance != null) { FSFilter filter = new FSFilter(FSFilter.LOD.FILE, "*.*"); POPUPFileBrowser.Instance.Show(Application.dataPath, POPUPFileBrowser.INTENT.SAVE, filter, (POPUPFileBrowser popup, POPUPFileBrowser.BUTON but) => { if (but == POPUPFileBrowser.BUTON.OK) { CSV.File csv = new CSV.File(); csv.Export(popup.path); } }); } }
//**************************************************************************************************** // //**************************************************************************************************** public void ImportCSV() { if ((DBObjects.instance != null) && (DBObjects.instance.busy)) { return; } if (POPUPFileBrowser.Instance != null) { FSFilter filter = new FSFilter(FSFilter.LOD.FILE, "*.*"); POPUPFileBrowser.Instance.Show(Application.dataPath, POPUPFileBrowser.INTENT.LOAD, filter, (POPUPFileBrowser popup, POPUPFileBrowser.BUTON but) => { if (but == POPUPFileBrowser.BUTON.OK) { CSV.File csv = new CSV.File(); csv.Import(popup.path); // to do: fix Lambert_( 93 ? ) - WGS84 latitude conversion } }); } }