예제 #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;
        }