예제 #1
0
        private void _menuItemPreferencesPaintProperties_Click(object sender, EventArgs e)
        {
            PaintPropertiesDialog dlg = new PaintPropertiesDialog();

            dlg.PaintProperties = _paintProperties;
            dlg.Apply          += new EventHandler(PaintPropertiesDialog_Apply);
            dlg.ShowDialog(this);
        }
예제 #2
0
        private void PaintPropertiesDialog_Apply(object sender, EventArgs e)
        {
            PaintPropertiesDialog dlg = sender as PaintPropertiesDialog;

            _paintProperties = dlg.PaintProperties;
            foreach (ViewerForm i in MdiChildren)
            {
                i.UpdatePaintProperties(_paintProperties);
            }
        }