public Form2(Form mainMenu) { InitializeComponent(); selectedShape = AvailableShapes.None; shapeToEdit = null; shapes = new List <Shape>(); shapeNumIncrement = 1; name = "Canvas " + CanvasManager.GetNumIncrement(); graphics = panel1.CreateGraphics(); this.mainMenu = mainMenu; loc = new Location(0, 0); canDraw = false; }
private void button4_Click(object sender, EventArgs e) { CanvasManager.RemoveCanvas(); }