Exemplo n.º 1
0
 protected void SetDeletePucker(CPoint[] selectBg)
 {
     if (this.DeleteSeelctPuckerLineStringAndY.IsNotNull())
     {
         var puckerAction = new PuckerDeleteAction(this.PParser);
         if (selectBg != null)
         {
             puckerAction.SetDrawBgLocal(selectBg);
             puckerAction.SetSurosrPointLocal(selectBg[0]);
         }
         puckerAction.SetPucker(this.DeleteSeelctPuckerLineStringAndY, true);
         this.PParser.AddAction(puckerAction);
     }
 }
Exemplo n.º 2
0
        protected override BaseAction GetOperationAciton()
        {
            if (this.IsDeletePucker)
            {
                var nAction = new NoneAction(this.PParser);
                nAction.RedoExecute = CallBackRedoExecute;
                return(nAction);
            }

            var pucker = new PuckerDeleteAction(this.PParser);

            //pucker.IsDeleteCreate = this.IsDeleteCreate;
            pucker.SetPucker(this.puckerLineStringAndY);
            return(pucker);

            //return new NoneAction(this.PParser);
        }