Exemple #1
0
        private void View_KeyframeDeleting(object sender, KeyframeEventArgs e)
        {
            HistoryMemento memento = new HistoryMementoDeleteKeyframe(frameServer.Metadata, e.KeyframeId);

            frameServer.Metadata.DeleteKeyframe(e.KeyframeId);
            historyStack.PushNewCommand(memento);
        }
Exemple #2
0
        public override HistoryMemento PerformUndo()
        {
            HistoryMemento redoMemento = new HistoryMementoDeleteKeyframe(metadata, keyframeId);

            redoMemento.CommandName = CommandName;

            metadata.DeleteKeyframe(keyframeId);

            return(redoMemento);
        }