Пример #1
0
 /// <summary>
 /// Selects the given issue
 /// Selection Mode should be set to true; otherwise, the method has no effect
 /// </summary>
 /// <param name="issue">The issue to select</param>
 public void SetSelected(Issue issue)
 {
     if (SelectionModeActive)
     {
         SelectedIssues.Add(issue);
         IssueSelectionChanged?.Invoke(this, new IssueSelectionChangedArgs(issue, true));
     }
 }
Пример #2
0
 /// <summary>
 /// Deselects the given issue
 /// SelectionModeActive should be set to true; otherwise the method has no effect
 /// </summary>
 /// <param name="issue">The issue to deselect</param>
 public void SetDeselected(Issue issue)
 {
     if (SelectionModeActive)
     {
         bool removeSuccessful = SelectedIssues.Remove(issue);
         if (removeSuccessful)
         {
             IssueSelectionChanged?.Invoke(this, new IssueSelectionChangedArgs(issue, false));
         }
     }
 }