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); }
public void Deny(string user) { if (Approvals.ContainsKey(user)) { Approvals[user] = false; } else { Approvals.Add(user, false); } }
public void Approve(string user) { if (Approvals.ContainsKey(user)) { Approvals[user] = true; } else { Approvals.Add(user, true); } }
public virtual void AddApproval(Approval approval) { approval.Order = this; Approvals.Add(approval); }
public NegatedMessageBoxQuestionCommand(string messageBoxText) : base(messageBoxText) { Approvals.Clear(); Approvals.Add(MessageBoxResult.No); }