Exemple #1
0
        public string Snapshot(ICanvas canvas, bool reset)
        {
            if (reset == true)
            {
                SelectedListReset();
            }

            return(HistoryEditor.Add(canvas));
        }
Exemple #2
0
        public bool MouseEventRightDown(ICanvas canvas)
        {
            if (Context.CurrentRoot != null && Context.CurrentLine != null)
            {
                HistoryEditor.Undo(canvas, Context.DiagramCreator, false);

                Context.CurrentLine = null;
                Context.CurrentRoot = null;

                return(true);
            }

            return(false);
        }
Exemple #3
0
 public void Redo()
 {
     HistoryEditor.Redo(Context.CurrentCanvas, Context.DiagramCreator, true);
 }