private void SetColorPen_Click(object sender, EventArgs e) { if (MainColorDialog.ShowDialog() == DialogResult.OK) { SetColorPen.BackColor = MainColorDialog.Color; style_l.Pen.Color = SetColorPen.BackColor; style_o.Pen.Color = SetColorPen.BackColor; MainColorDialog.Dispose(); } }
private void SetColorBrush_Click(object sender, EventArgs e) { if (MainColorDialog.ShowDialog() == DialogResult.OK) { SetColorBrush.BackColor = MainColorDialog.Color; style_o.mySolidBrush.Color = SetColorBrush.BackColor; MainColorDialog.Dispose(); } if (entity != null) { entity.style = (StyleObject)style_o.Clone(); network.DrawFigure(); Draw(); } }