public void PointMatch_Settings_Click(object sender, System.EventArgs args) { PointMatchDialog dlg = new PointMatchDialog(ActiveDocument.PointMatchSettings); if (dlg.ShowDialog() == DialogResult.OK) { ActiveDocument.PointMatchSettings = dlg.PointMatchSettings; activeView.DrawAll(); activeView.Refresh(); } }