private void saveFileDialog1_FileOk(object sender, CancelEventArgs e) { PolygonSerializer serializer = new PolygonSerializer(); serializer.SavePolygonsAsQGIS(saveFileDialog1.FileName, updatedPolygons); MessageBox.Show("Файл сохранен успешно!", "Информация", MessageBoxButtons.OK, MessageBoxIcon.Information); }
private void save_Click(object sender, EventArgs e) { PolygonSerializer serializer = new PolygonSerializer(); serializer.SavePolygons(this.currentFilename, updatedPolygons); }