コード例 #1
0
            public override bool Redo()
            {
                // do not call execute directly as the selection might has changed
                if (Redoable == false)
                {
                    return(false);
                }

                _command.DeleteFigures(AffectedFigures.ToFigures());
                DrawingView.ClearSelection();
                return(true);
            }
コード例 #2
0
ファイル: SelectAllCommand.cs プロジェクト: thbin/TraceLab
            public override bool Undo()
            {
                if (base.Undo() == false)
                {
                    return(false);
                }

                DrawingView.ClearSelection();
                DrawingView.AddToSelection(AffectedFigures.ToFigures());

                return(true);
            }