private void PaintBeams() { CreateOrRecreateLayer(ref beamsLayer); using (Graphics graphics = Graphics.FromImage(beamsLayer)) { ICollection <Beam> beams = selectedBluePrint.GetBeams(); foreach (Beam beam in beams) { PaintBeam(beam); } } drawSurface.Invalidate(); }
private void PaintBeams() { drawer.CreateOrRecreateLayer(ref drawer.layers.beamsLayer); using (Graphics graphics = Graphics.FromImage(drawer.layers.beamsLayer)) { ICollection <Beam> beams = selectedBluePrint.GetBeams(); foreach (Beam beam in beams) { drawer.PaintBeam(beam, DefaultFont); } } drawer.drawSurface.Invalidate(); }