Switch to Datagrid

This commit is contained in:
2024-10-07 19:27:14 -07:00
parent 3977727168
commit b4c91e3f2c
5 changed files with 129 additions and 74 deletions

View File

@ -33,8 +33,9 @@ public class WorkItem
DateTime? targetDate,
float? timeCriticality,
string title,
string workItemType,
float? weightedShortestJobFirst)
string? violation,
float? weightedShortestJobFirst,
string workItemType)
{
AreaPath = areaPath;
AssignedTo = assignedTo;
@ -60,8 +61,41 @@ public class WorkItem
TargetDate = targetDate;
TimeCriticality = timeCriticality;
Title = title;
WorkItemType = workItemType;
Violation = violation;
WeightedShortestJobFirst = weightedShortestJobFirst;
WorkItemType = workItemType;
}
public static WorkItem Get(WorkItem workItem, string? violation)
{
WorkItem result = new(workItem.AreaPath,
workItem.AssignedTo,
workItem.BusinessValue,
workItem.ChangedDate,
workItem.ClosedDate,
workItem.CommentCount,
workItem.CreatedDate,
workItem.Description,
workItem.Effort,
workItem.Id,
workItem.IterationPath,
workItem.Parent,
workItem.Priority,
workItem.Relations,
workItem.Requester,
workItem.ResolvedDate,
workItem.Revision,
workItem.RiskReductionMinusOpportunityEnablement,
workItem.StartDate,
workItem.State,
workItem.Tags,
workItem.TargetDate,
workItem.TimeCriticality,
workItem.Title,
workItem.Violation is null ? violation : workItem.Violation,
workItem.WeightedShortestJobFirst,
workItem.WorkItemType);
return result;
}
public string AreaPath { get; set; }
@ -88,6 +122,7 @@ public class WorkItem
public DateTime? TargetDate { get; set; }
public float? TimeCriticality { get; set; }
public string Title { get; set; }
public string? Violation { get; set; }
public string WorkItemType { get; set; }
public float? WeightedShortestJobFirst { get; set; }