/// <summary> /// グラフデータに RndoMemento を設定します。 /// </summary> public void SetRedoMemento(UnReDoInvoker unredo) { GraphMemento memento = (GraphMemento)unredo.Redo(); this.vertex = memento.vertex; this.edge = memento.edge; }
/**********************↑ 描画用処理 ↑**********************/ /**********************↓ UnRedo処理 ↓**********************/ /// <summary> /// Memento を作成します。 /// </summary> public void CreateMemento(UnReDoInvoker unredo) { unredo.Setmemento(new GraphMemento(vertex, edge)); }