private void IssueView_IssueCancelled(object sender, IssueCancelledEventArgs e) { var issue = issueRepository.Get(e.Issue.Id); issue.IssueState = IssueState.Cancelled; issueRepository.Update(issue); }
protected virtual void OnIssueCancelled(IssueView sender, IssueCancelledEventArgs e) { var handler = IssueCancelled; handler?.Invoke(sender, e); }