public void Init() { this.DoubleBuffered = true; CommonEventHandler(); _square = CanvasUtil.GetPrimeSquare(this.Parent.Width, this.Parent.Height); _dSquare = _square; this.BackColor = Color.White; InitRightClickMenu(); InitPanTool(); _deleteTool = new DeleteTool(); _deleteTool.StopWorking(); }
public void ReInitSquarePosition() { _square = CanvasUtil.GetPrimeSquare(this.Parent.Width, this.Parent.Height); Invalidate(); }