示例#1
0
 public Diagram(string model, UndoRedo history)
 {
     Model = model;
     History = history;
 }
示例#2
0
 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;
        }