/// <summary> /// Delete Exit Effect /// add by Terry /// </summary> private ToolStripMenuItem DeleteExitEffect() { ToolStripMenuItem item = new ToolStripMenuItem(); item.Text = "Delete Exit Effect"; item.Image = Resource.GetImage(Resource.Images.DeleteExitEffect); item.Click += delegate { UndoService.BeginTransaction("Delete a exit effect"); LayerEffect effect = FrameLayer.ExitEffect.Real.Copy(); //FrameLayer.ExitEffect.Name = null; FrameLayer.RemoveEffect(effect.Type); UndoService.AddLayerEffectRemovedAction(FrameLayer, effect); FrameLayer.Invalidate(); UndoService.Commit(); }; Items.Add(item); return(item); }