Beispiel #1
0
        public override void Undo(object p_args)
        {
            InsertTblRowCmdArgs args = (InsertTblRowCmdArgs)p_args;

            args.Part.Rows.RemoveAt(args.Index);
            RptTable tbl = args.Part.Table;

            tbl.CalcRowSpan();
            tbl.Update(true);
        }
Beispiel #2
0
        public override object Execute(object p_args)
        {
            InsertTblRowCmdArgs args = (InsertTblRowCmdArgs)p_args;
            RptTblPartRow       row  = new RptTblPartRow(args.Part);

            InsertTableCmd.BuildCells(row, args.Part.Table.ColSpan);
            args.Part.Rows.Insert(args.Index, row);
            RptTable tbl = args.Part.Table;

            tbl.CalcRowSpan();
            tbl.Update(false);
            return(row);
        }