private void HandlePintaCoreActionsLayersMoveLayerUpActivated(object sender, EventArgs e) { Document doc = PintaCore.Workspace.ActiveDocument; PintaCore.Tools.Commit(); SwapLayersHistoryItem hist = new SwapLayersHistoryItem("Menu.Layers.MoveLayerUp.png", Catalog.GetString("Move Layer Up"), doc.CurrentLayerIndex, doc.CurrentLayerIndex + 1); doc.MoveCurrentLayerUp(); doc.History.PushNewItem(hist); }