private void ColorFillDialogOnApply(object sender, EventArgs e) { ColorFillDialogBoxWithApply dlg = (ColorFillDialogBoxWithApply)sender; colorEllipse = dlg.Color; bFillEllipse = dlg.Fill; Invalidate(); }
void ColorFillDialogOnApply(object obj, EventArgs ea) { ColorFillDialogBoxWithApply dlg = (ColorFillDialogBoxWithApply)obj; colorEllipse = dlg.Color; bFillEllipse = dlg.Fill; Invalidate(); }
void MenuColorOnClick(object obj, EventArgs ea) { ColorFillDialogBoxWithApply dlg = new ColorFillDialogBoxWithApply(); dlg.ShowApply = true; dlg.Apply += new EventHandler(ColorFillDialogOnApply); dlg.Color = colorEllipse; dlg.Fill = bFillEllipse; if (dlg.ShowDialog() == DialogResult.OK) { colorEllipse = dlg.Color; bFillEllipse = dlg.Fill; Invalidate(); } }