Example #1
0
 private void Remove_Clicked(object sender, EventArgs e)
 {
     if (MessageBox.Show("Do you want to remove the coverage?", "Coverage", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
     {
         _PackageCoverage.Clear();
         if (_PackageCoverage is FeatureCoverage)
         {
             _ProjectService.Project.FeatureCoverages.Remove(_PackageCoverage as FeatureCoverage);
         }
         else if (_PackageCoverage is RasterCoverage)
         {
             _ProjectService.Project.RasterLayerCoverages.Remove(_PackageCoverage as RasterCoverage);
         }
     }
 }