Exemplo n.º 1
0
 public override void doRelease(MEvent eventArg)
 {
     base.doRelease(eventArg);
     if (!_isSelecting())
     {
         eventArg.getPosition(ref endPos_x, ref endPos_y);
         // Delete the move command if we have moved less then 2 pixels
         // otherwise call finalize to set up the journal and add the command to the undo queue.
         if (Math.Abs(startPos_x - endPos_x) < 2 && Math.Abs(startPos_y - endPos_y) < 2)
         {
             cmd = null;
             view.refresh(true, false);
         }
         else
         {
             cmd.finalize();
             view.refresh(true, false);
         }
     }
 }