Exemplo n.º 1
0
        private void Fill_Click(object sender, EventArgs e)
        {
            if (_editFigure)
            {
                fill = true;
            }
            DialogResult D = colorDialog1.ShowDialog();

            if (D == DialogResult.OK)
            {
                _fillColor = colorDialog1.Color;
            }
            if (mode == "Выбрал")
            {
                ActiveFigure.ChangeFillColor(_fillColor);
                mode = "Заливка";
            }
        }