Пример #1
0
        public CommandActions AddActions(bool execute, bool next, bool previous, bool cancel, bool complete)
        {
            CommandActions ca = new CommandActions(OwnerDocument);

            AddChild(ca);

            ca.IsExecuteAllowed  = execute;
            ca.IsNextAllowed     = next;
            ca.IsPreviousAllowed = previous;
            ca.IsCancelAllowed   = cancel;
            ca.IsCompleteAllowed = complete;

            return(ca);
        }
Пример #2
0
        public CommandActions AddActions(bool execute, bool next, bool previous, bool cancel, bool complete)
        {
            CommandActions ca = new CommandActions (OwnerDocument);
            AddChild (ca);

            ca.IsExecuteAllowed = execute;
            ca.IsNextAllowed = next;
            ca.IsPreviousAllowed = previous;
            ca.IsCancelAllowed = cancel;
            ca.IsCompleteAllowed = complete;

            return ca;
        }