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); }
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); }