public static Color fillColor; // public Form1() { InitializeComponent(); primitive = new Pencil(DrawPanel.CreateGraphics()); p = new Pen(Color.Black, (float)trackBarThickness.Value); fillColor = Color.Black; // buttonInvert.Click += MakeWork; }
private void radioButtonLine_CheckedChanged(object sender, EventArgs e) { primitive = new Line(DrawPanel.CreateGraphics()); }