public void Initialize() { SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer, true); activeTool = DrawToolType.Pointer; graphicsList = new GraphicsList(); tools = new Tool[(int)DrawToolType.NumberOfTools]; tools[(int)DrawToolType.Pointer] = new ToolPointer(); tools[(int)DrawToolType.File] = new ToolFile(); tools[(int)DrawToolType.Database] = new ToolDatabase(); //tools[(int)DrawToolType.Process] = new ToolLine(); tools[(int)DrawToolType.Process] = new ToolRectangle(); tools[(int)DrawToolType.Connector] = new ToolLine(); // Evandro tools[(int)DrawToolType.Connector] = new ToolPolygon(); }
public void Initialize() { SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.OptimizedDoubleBuffer, true); activeTool = DrawToolType.Pointer; graphicsList = new GraphicsList(); tools = new Tool[(int)DrawToolType.NumberOfTools]; tools[(int)DrawToolType.Pointer] = new ToolPointer(); tools[(int)DrawToolType.File] = new ToolFile(); tools[(int)DrawToolType.Database] = new ToolDatabase(); //tools[(int)DrawToolType.Process] = new ToolLine(); tools[(int)DrawToolType.Process] = new ToolRectangle(); tools[(int)DrawToolType.Connector] = new ToolLine(); // Evandro tools[(int)DrawToolType.Connector] = new ToolPolygon(); }