/// <summary>
 /// Raises the shared ExportDataclicked event
 /// </summary>
 public void Raise_ExportData(object sender, RasterEventArgs e)
 {
     if (ExportDataClicked != null)
     {
         ExportDataClicked(sender, e);
     }
 }
        private static void Raster_ExportDataClicked(object sender, RasterEventArgs e)
        {
            SaveFileDialog sfd = new SaveFileDialog
            {
                Filter = DataManager.DefaultDataManager.RasterWriteFilter
            };

            if (sfd.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            e.Raster.SaveAs(sfd.FileName);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Handles the situation for exporting the layer as a new source.
        /// </summary>
        protected override void OnExportData()
        {
            var args = new RasterEventArgs(DataSet);

            RasterLayerEventSender.Instance.Raise_ExportData(this, args);
        }