private void SaveLayer(BikeTouringGISLayer obj) { if (obj != null) { obj.Save(GetWayPoints(obj)); } }
private void SaveLayerAs(BikeTouringGISLayer obj) { if (obj != null) { Microsoft.Win32.SaveFileDialog saveFileDialog = new Microsoft.Win32.SaveFileDialog(); saveFileDialog.Filter = "GPX files (*.gpx)|*.gpx"; saveFileDialog.InitialDirectory = DropBoxHelper.GetDropBoxFolder(); if (saveFileDialog.ShowDialog() == true) { obj.Save(GetWayPoints(obj), saveFileDialog.FileName); } } }