Example #1
0
        private void backColorButton_Click(object sender, EventArgs e)
        {
            ComboColorPickerDialog d = new ComboColorPickerDialog(backColorLabel.BackColor, backColorButton);

            if (d.ShowDialog() == DialogResult.OK)
            {
                backColorLabel.BackColor = d.Color;
            }
            UpdateHatch();
        }
Example #2
0
        private void solidColorButton_Click(object sender, EventArgs e)
        {
            ComboColorPickerDialog d = new ComboColorPickerDialog(solidColorLabel.BackColor, solidColorButton);

            if (d.ShowDialog() == DialogResult.OK)
            {
                solidColorLabel.BackColor = d.Color;
            }
            UpdateSolid();
        }
Example #3
0
        private void hatchColorButton_Click(object sender, EventArgs e)
        {
            ComboColorPickerDialog d = new ComboColorPickerDialog(hatchColorLabel.BackColor, hatchColorButton);

            if (d.ShowDialog() == DialogResult.OK)
            {
                hatchColorLabel.BackColor = Color.FromArgb((int)hatchAlphaNud.Value, d.Color);
            }
            UpdateHatch();
        }
        private void colorButton_Click(object sender, EventArgs e)
        {
            ComboColorPickerDialog d = new ComboColorPickerDialog(colorLabel.BackColor, colorButton);

            if (d.ShowDialog() == DialogResult.OK)
            {
                colorLabel.BackColor = d.Color;
                ShowLine();
            }
        }