示例#1
0
 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;
 }
示例#2
0
 private void button4_Click(object sender, EventArgs e)
 {
     CanvasManager.RemoveCanvas();
 }