public void Export_Settings_Click(object sender, System.EventArgs args) { ExportSettingsDialog dlg = new ExportSettingsDialog(ActiveDocument.ExportSettings, ActiveDocument, ActiveDocument.PointSets.ExportIncluded(), ActiveDocument.PointSets.ExportExcluded()); if (dlg.ShowDialog() == DialogResult.OK) { ActiveDocument.ExportSettings = dlg.Settings; } }