示例#1
0
        public override void Undo(object p_args)
        {
            MoveRptItemArgs args    = (MoveRptItemArgs)p_args;
            RptItem         drgItem = args.RptItem;

            drgItem.Row = args.OldRow;
            drgItem.Col = args.OldCol;
            drgItem.Update(true);
        }
示例#2
0
        public override object Execute(object p_args)
        {
            MoveRptItemArgs args    = (MoveRptItemArgs)p_args;
            RptItem         drgItem = args.RptItem;
            CellEventArgs   dstPos  = args.DstPos;

            args.OldRow = drgItem.Row;
            args.OldCol = drgItem.Col;
            drgItem.Row = dstPos.Row;
            drgItem.Col = dstPos.Column;
            drgItem.Update(true);
            return(drgItem);
        }