Exemple #1
0
        public List <IssueView> FillWithItems(IEnumerable <Issue> issues, bool appendItems = false)
        {
            var result = new List <IssueView>();

            if (!appendItems)
            {
                var columns = GetColumns();
                foreach (var column in columns)
                {
                    column.Clear();
                }
            }

            foreach (var issue in issues)
            {
                var issueView = new IssueView();
                issueView.SetIssue(issue);

                var taskboardColumn = GetTaskboardColumn(issue.IssueState);
                taskboardColumn?.CreateChildControl(issueView);
                result.Add(issueView);
            }
            return(result);
        }
Exemple #2
0
        protected virtual void OnIssueCancelled(IssueView sender, IssueCancelledEventArgs e)
        {
            var handler = IssueCancelled;

            handler?.Invoke(sender, e);
        }
Exemple #3
0
        protected virtual void OnIssueVerifiedStateChanged(IssueView sender, IssueVerifiedStateChangedEventArgs e)
        {
            var handler = IssueVerifiedStateChanged;

            handler?.Invoke(sender, e);
        }