private void btnSave_Click(object sender, EventArgs e) { //GeoDo.RSS.Core.DrawEngine.ILayer l = _canvas.LayerContainer.GetByName("FIRE"); //_canvas.LayerContainer.Layers.Remove(l); //_canvas.Refresh(enumRefreshType.FlyLayer); SaveMapDialog.Save(_vectorHostLayer.Map as IMap, true); }
private void ExportMapBtn_Click(object sender, EventArgs e) { if (CurrentImage != null) { SaveMapDialog.RestoreDirectory = true; SaveMapDialog.Filter = "Jpeg(*.jpg)|*.jpg"; if (SaveMapDialog.ShowDialog() == DialogResult.OK) { SaveMapFile(CurrentImage, SaveMapDialog.FileName); } } }