Exemple #1
0
        public FormTaskBuilder AddApproval(Approval approval)
        {
            if (!approval.Step.HasValue || approval.Step < 1)
            {
                throw new ArgumentException("Step should start from 1");
            }

            Approvals.Add(approval);
            return(this);
        }
Exemple #2
0
 public void Deny(string user)
 {
     if (Approvals.ContainsKey(user))
     {
         Approvals[user] = false;
     }
     else
     {
         Approvals.Add(user, false);
     }
 }
Exemple #3
0
 public void Approve(string user)
 {
     if (Approvals.ContainsKey(user))
     {
         Approvals[user] = true;
     }
     else
     {
         Approvals.Add(user, true);
     }
 }
Exemple #4
0
 public virtual void AddApproval(Approval approval)
 {
     approval.Order = this;
     Approvals.Add(approval);
 }
 public NegatedMessageBoxQuestionCommand(string messageBoxText) : base(messageBoxText)
 {
     Approvals.Clear();
     Approvals.Add(MessageBoxResult.No);
 }