예제 #1
0
        public IssueUpdate(Issue issue, string status, string comment)
        {
            if (issue == null) throw new ArgumentNullException("issue");

            Issue = issue;
            _status = status;
            _comment = comment;
        }
예제 #2
0
        public static IProperty<Issue> GetPropertyByField(Issue.IssueField field)
        {
            var index = (int) field;

            if (index < 0 || index >= Properties.Count)
                throw new ArgumentOutOfRangeException("field", field, null);

            return Properties[index];
        }
예제 #3
0
 public IssueUpdate(Issue issue) : 
     this(issue, null, null) {}
예제 #4
0
 internal void GeneratorSubItems(ListViewItem<Issue> item, Issue issue)
 {
     var subItems = item.SubItems;
     subItems.Add(issue.Type);
     subItems.Add(issue.Status);
     subItems.Add(issue.Priority);
     subItems.Add(issue.Owner);
     subItems.Add(issue.Summary);
 }