/// <summary> /// Called if the issue has been edited from the issue shelf /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnIssueEdited(object sender, IssueEditedArgs e) { if (e.IssueID == issueDataDisplay.Content.Id) { Issue newIssue = new Issue(issueDataDisplay.Content.Source, issueDataDisplay.Content.Id, e.NewName, e.NewDescription, issueDataDisplay.Content.ProjectId, issueDataDisplay.Content.Creator, issueDataDisplay.Content.Status, issueDataDisplay.Content.CreationDateString, issueDataDisplay.Content.ClosedDateString, issueDataDisplay.Content.Developers, issueDataDisplay.Content.Commenters); issueDataDisplay.Setup(newIssue); } }
// Called when the confirm button on the issue edit window is pressed - GitHub UI public async void EditIssue() { await GitHubManager.EditIssue(issueID, projectTracker.currentRepositoryOwner, projectTracker.currentRepositoryName, issue_title.text, issue_description.text); issueLoader.LoadContent(); IssueEditedArgs args = new IssueEditedArgs(issueID, issue_title.text, issue_description.text); IssueEdited?.Invoke(this, args); Close(); }
// Called when the confirm button on the issue edit window is pressed - Requirement Bazaar UI public async void EditRequirement() { await RequirementsBazaarManager.EditRequirement(issueID, projectTracker.currentProjectID, requirement_title.text, requirement_description.text); issueLoader.LoadContent(); IssueEditedArgs args = new IssueEditedArgs(issueID, requirement_title.text, requirement_description.text); IssueEdited?.Invoke(this, args); Close(); }