Пример #1
0
    // 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();
    }
Пример #2
0
    // Called when the delete button on the issue bar is pressed
    public async void DeleteRequirement()
    {
        projectTracker.OnlastDeletedChanged(resourceID);
        await RequirementsBazaarManager.DeleteRequirement(resourceID);

        issueLoader.LoadContent();
    }
Пример #3
0
    // Called when the CreateIssue button on theCreateIssue Window is pressed
    public async void CreateIssue()
    {
        switch (configurationMenu.ShelfConfiguration.SelectedSource)
        {
        case DataSource.REQUIREMENTS_BAZAAR:
            Category category;
            category = await RequirementsBazaarManager.GetCategory(projectTracker.currentCategory.id);

            Category[] categoryarray = new Category[1];
            categoryarray[0] = category;

            await RequirementsBazaarManager.CreateRequirement(projectTracker.currentProjectID, issueName.text, issueDescription.text, categoryarray);

            break;

        case DataSource.GITHUB:
            await GitHubManager.CreateIssue(projectTracker.currentRepositoryOwner, projectTracker.currentRepositoryName, issueName.text, issueDescription.text);

            break;
        }
        issueLoader.LoadContent();
        opener.CloseMenu();
    }