/// <summary> /// Changes subtask's status. /// </summary> /// <param name="subtaskname"></param> /// <param name="newStatus"></param> public void ChangeTaskStatus(string subtaskname, Task.Status newStatus) { Task taskToChangeStatus; if ((taskToChangeStatus = subTaskList.Find(x => x.TaskName == subtaskname)) == default(Task)) { throw new ArgumentException($"Subtask with name {subtaskname} not found."); } taskToChangeStatus.TaskStatus = newStatus; }
private IEnumerator MyTask(Task.Status status) { const int max = 500; status.SetText("Setting up..."); status.SetProgress(0, 1); yield return(Task.Wait(1.5f)); for (uint i = 1; i <= max; ++i) { status.SetText($"Running task {i} of {max}..."); status.SetProgress(i, max); yield return(Task.Wait(0.05f)); } status.SetText("Finishing..."); status.SetProgress(1, 1); yield return(Task.Wait(2.0f)); }
public void Tick(Scenario.Status scenario) { if (featureList) { featureList.Clear(); } if (bugList) { bugList.Clear(); } if (doneList) { doneList.Clear(); } foreach (var item in scenario.taskInfos) { Task.Status task = item.task.GetStatus(); if (task.isDone) { if (doneList) { doneList.Add(item); } } else /*if(task.type == TaskType.Feature)*/ { if (featureList) { featureList.Add(item); } } //else if(task.type == TaskType.Bug) //{ //} } }
private void ChangeStatus(Task.Status st) { }