private void propertiesButton_Click(object sender, EventArgs e) { NuGenPointSet pointSet = GetPointsFromName((string)listBox1.SelectedItem); PointSettingsDialog dlg = new PointSettingsDialog(pointSet.Style, false); if (dlg.ShowDialog() == DialogResult.OK) { pointSet.Style = dlg.Style; } }
public void ScaleBar_Settings_Click(object sender, System.EventArgs args) { PointSettingsDialog dlg = new PointSettingsDialog(ActiveDocument.ScaleStyle, true); if (dlg.ShowDialog() == DialogResult.OK) { ActiveDocument.ScaleStyle = dlg.Style; activeView.DrawAll(); activeView.Refresh(); } }