/* * * If datarace is checked display the options or not */ private void dataRace_CheckedChanged(object sender, EventArgs e) { //Hides options if (dataRace.Checked == true) { DataFix.Hide(); SemaRadio.Checked = false; MutexRadio.Checked = false; data = true; log("Data Race Enabled."); } //displays options else { DataFix.Show(); data = false; SemaRadio.Checked = true; log("Data Race Disabled."); } }
public Task ParseTask(Issue issue) { if (issue == null || issue.Fields == null) { return(null); } var jiraBaseUrl = ConfigurationManager.AppSettings["JiraBaseUrl"]; var ticket = default(Task); switch (issue.Fields.IssueType.Name) { case "Acceptance Test": ticket = new AcceptanceTest(issue, jiraBaseUrl); break; case "Bug": ticket = new Bug(issue, jiraBaseUrl); break; case "Defect": ticket = new Defect(issue, jiraBaseUrl); break; case "Data Fix": ticket = new DataFix(issue, jiraBaseUrl); break; case "Data Migration": ticket = new DataMigration(issue, jiraBaseUrl); break; case "Epic": ticket = new Epic(issue, jiraBaseUrl); break; case "Change Request": ticket = new ChangeRequest(issue, jiraBaseUrl); break; case "Technical Ticket": ticket = new TechnicalTicket(issue, jiraBaseUrl); break; case "Spike": ticket = new Spike(issue, jiraBaseUrl); break; case "Task": ticket = new StorySubTask(issue, jiraBaseUrl); break; default: // Story ticket = new Story(issue, jiraBaseUrl); break; } if (ticket.Issue.Fields.SubTasks.Count > 0) { ticket.SubTasks = ParseSubTasks(ticket.Issue.Fields.SubTasks); } ticket.TransitionHistory = ParseTransitionHistory(ticket); return(ticket); }