private void _menuItemPreferencesPaintProperties_Click(object sender, EventArgs e) { PaintPropertiesDialog dlg = new PaintPropertiesDialog(); dlg.PaintProperties = _paintProperties; dlg.Apply += new EventHandler(PaintPropertiesDialog_Apply); dlg.ShowDialog(this); }
private void PaintPropertiesDialog_Apply(object sender, EventArgs e) { PaintPropertiesDialog dlg = sender as PaintPropertiesDialog; _paintProperties = dlg.PaintProperties; foreach (ViewerForm i in MdiChildren) { i.UpdatePaintProperties(_paintProperties); } }