public override void Undo() { var layer = PintaCore.Layers[layer_index]; layer.Opacity = initial_properties.Opacity; layer.Hidden = initial_properties.Hidden; layer.Name = initial_properties.Name; }