public static string ToWorkItemStatusName(string status) { Client.WorkItemStatus workItemStatus = (Client.WorkItemStatus)Enum.Parse(typeof(Client.WorkItemStatus), status); switch (workItemStatus) { case Client.WorkItemStatus.New: return("新建"); case Client.WorkItemStatus.Open: return("打开"); default: return(""); } }
private WorkItemStatus Parse(Client.WorkItemStatus status) { return((WorkItemStatus)(int)status); }