void EhShowCustomBrushDialog(object sender, EventArgs e) { BrushAllPropertiesControl ctrl = new BrushAllPropertiesControl(); ctrl.Brush = this.Brush; if (Current.Gui.ShowDialog(ctrl, "Brush properties")) { this.Brush = ctrl.Brush; OnBrushChanged(); } }
void EhShowCustomBrushDialog(object sender, EventArgs e) { BrushAllPropertiesControl ctrl = new BrushAllPropertiesControl(); ctrl.Brush = (BrushX)this.Brush.Clone(); if (Current.Gui.ShowDialog(ctrl, "Brush properties")) { this.Brush = ctrl.Brush; OnSelectedItemChanged(EventArgs.Empty); OnSelectedValueChanged(EventArgs.Empty); OnSelectionChangeCommitted(EventArgs.Empty); } }