Ejemplo n.º 1
0
            /// <summary>
            /// Undoes the change.
            /// </summary>
            /// <param name="doc">The document on which to undo the change.</param>
            public override void Undo(TwoDADocument doc)
            {
                var row = doc.Data.NewRow();

                row.ItemArray = rowItemArray;
                doc.Data.Rows.InsertAt(row, rowIndex);
            }
Ejemplo n.º 2
0
 /// <summary>
 /// Undoes the change.
 /// </summary>
 /// <param name="doc">The document on which to undo the change.</param>
 public override void Undo(TwoDADocument doc)
 {
     doc.Data.Rows[rowIndex].Delete();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Undoes the change.
 /// </summary>
 /// <param name="doc">The document on which to undo the change.</param>
 public override void Undo(TwoDADocument doc)
 {
     doc.Data.Rows[rowIndex][columnIndex] = oldValue;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Undoes the change.
 /// </summary>
 /// <param name="doc">The document on which to undo the change.</param>
 public abstract void Undo(TwoDADocument doc);