Exemple #1
0
        public DeleteHoldOperation(NoteBook book, Hold hold)
        {
            Invoke += () =>
            {
                book.UnPutHold(hold);
            };

            Undo += () =>
            {
                book.PutHold(hold);
            };
        }
Exemple #2
0
        public AddHoldOperation(NoteBook book, Hold hold)
        {
            Invoke = () =>
            {
                book.PutHold(hold);
            };

            Undo = () =>
            {
                book.UnPutHold(hold);
            };
        }