public override void Undo(object p_args) { DeleTblRowCmdArgs args = (DeleTblRowCmdArgs)p_args; args.Row.TblPart.Rows.Insert(args.Index, args.Row); RptTable tbl = args.Row.Table; tbl.CalcRowSpan(); tbl.Update(false); }
public override object Execute(object p_args) { DeleTblRowCmdArgs args = (DeleTblRowCmdArgs)p_args; args.Row.TblPart.Rows.RemoveAt(args.Index); RptTable tbl = args.Row.Table; tbl.CalcRowSpan(); tbl.Update(true); return(args.Row); }