private void changePanelColorToolStripMenuItem1_Click(object sender, EventArgs e) { if (ContourcolorDialog.ShowDialog() == DialogResult.OK) { Paint_Panel.BackColor = ContourcolorDialog.Color; Paint_Panel.Invalidate(); } }
private void ContourColorButton_Click(object sender, EventArgs e) { if (ContourcolorDialog.ShowDialog() == DialogResult.OK) { ContourColorButton.BackColor = ContourcolorDialog.Color; if (FigureslistBox.SelectedIndex != -1) { drawList[FigureslistBox.SelectedIndex].Color = ContourcolorDialog.Color; Paint_Panel.Invalidate(); } } }