Esempio n. 1
0
 private void changePanelColorToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (ContourcolorDialog.ShowDialog() == DialogResult.OK)
     {
         Paint_Panel.BackColor = ContourcolorDialog.Color;
         Paint_Panel.Invalidate();
     }
 }
Esempio n. 2
0
 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();
         }
     }
 }