private void ColorBook_ColorChanged() { customColorIcon = new ColorIcon(area.ActualPage.PencilColor); currentColorIcon = customColorIcon; colorPanel.Icon = currentColorIcon.Icon; }
private void rubberMenuItem_Click(object sender, EventArgs e) { customColorIcon = new ColorIcon(Color.White); currentColorIcon = customColorIcon; colorPanel.Icon = Resource.RubberIcon; area.ActualPage.PencilColor = currentColorIcon.Color; }
public ColorMenuItem(String text, ColorIcon color_icon, EventHandler e) : base() { Text = text; _colrIcon = color_icon; Image = _colrIcon.Bitmap; Click += e; }
public ColorBarButton(ColorIcon color_icon, EventHandler e) : base() { _colrIcon = color_icon; Image = _colrIcon.Bitmap; Click += e; ToolTipText = "#" + String.Format("{0:X2}{1:X2}{2:X2}", _colrIcon.Color.R, _colrIcon.Color.G, _colrIcon.Color.B); }
private void customColorMenuItem_Click(object sender, EventArgs e) { if (colorDialog.ShowDialog() == DialogResult.OK) { customColorIcon = new ColorIcon(colorDialog.Color); currentColorIcon = customColorIcon; colorPanel.Icon = currentColorIcon.Icon; } area.ActualPage.PencilColor = currentColorIcon.Color; }