protected Dispose ( bool disposing ) : void | ||
disposing | bool | true if managed resources should be disposed; otherwise, false. |
return | void |
private void CustomizeColor(CmykColor color) { ColorChooserDialog colorChooserDialog = new ColorChooserDialog(); colorChooserDialog.Color = color; if (colorChooserDialog.ShowDialog() == DialogResult.OK) { Color = new SpecialColor(colorChooserDialog.Color); } colorChooserDialog.Dispose(); comboBox.Invalidate(); SendChangeNotification(); }
private void CustomizeColor(CmykColor color) { ColorChooserDialog colorChooserDialog = new ColorChooserDialog(); colorChooserDialog.Color = color; if (colorChooserDialog.ShowDialog() == DialogResult.OK) { Color = new SpecialColor(colorChooserDialog.Color); } colorChooserDialog.Dispose(); comboBox.Invalidate(); SendChangeNotification(); }