public Diagram(string model, UndoRedo history) { Model = model; History = history; }
public static UndoRedo Get(ICanvas canvas) { var history = canvas.GetTag(); if (history == null) { history = new UndoRedo(new Stack<string>(), new Stack<string>()); canvas.SetTag(history); } return history as UndoRedo; }