private void OnTextDeleted(object o, TextDeletedArgs args) { if (args.StartPos != args.EndPos) { undo_manager.AddUndoAction(new EditableEraseAction(editable, args.StartPos, args.EndPos)); } }
void Rotate(int degrees) { if (!(app.Window.Focus is Gtk.Entry)) { var action = new RotateAction(app.Document, app.IconView.SelectedPages, degrees); action.Do(); undo_manager.AddUndoAction(action); } }
public void vixenpreviewControl_PreviewItemsAlignNew(object sender, PreviewItemMoveEventArgs e) { var action = new PreviewItemsMoveUndoAction(previewForm.Preview, e.PreviousMove); _undoMgr.AddUndoAction(action); }
void OnTextInserted(object o, TextInsertedArgs args) { UndoManager.AddUndoAction(new EditableInsertAction(editable, args.Position, args.Text, args.Length)); }