コード例 #1
0
 private void Clear_Click(object sender, System.EventArgs e)
 {
     beziersList = new DShapeList();
     pointList = new DShapeList();
     tpointCollection = new PointCollection();
     pointCollection = new PointCollection();
     regionCollection = new NewRegion();
     beziersPoint = 0;
     BezierIndex = 0;
     pointNumber = new Number();
     pointSum = new Number();
     drawingList = new DShapeList();
     pointChange = false;
     star = new Point[10];
     starCount = 0;
     tempPoint = new DShapeList();
     newType = MainWindow.ImageType.Empty;
     this.BeziersBox.Image=null;
     BeziersBox.Invalidate();
 }
コード例 #2
0
        /// <summary>
        /// ͼ�δ洢���ϵȡ�
        /// </summary>		
        private void menuNew_Click(object sender, System.EventArgs e)
        {
            drawingList = new DShapeList();
            drawingListUndo = new DShapeList();
            tempPoint = new DShapeList();
            pointViewList = new DShapeList();
            notchangeList = new DShapeList();
            notchangeListUndo = new DShapeList();

            newForm = new NewForm();
            newCircle = new CircleForm();

            pointCollection = new ArrayList();

            regionCollection = new NewRegion();
            regionCollectionUndo = new NewRegion();
            pointArray = new PointArrayCollection();
            pointArrayUndo = new PointArrayCollection();

            regionArrayCollection = new NewRegionArray();
            regionArrayCollectionUndo = new NewRegionArray();
            drawImageType = new Type();
            drawImageTypeUndo = new Type();
            newType = ImageType.Empty;

            picked = false;
            changed = false;
            mouseMove = false;
            eraser = false;
            regionIndex = 0;

            Drawing.Invalidate();

            fileName = "NewFile";
            SetFormTitle();
        }