void RunTask(int Idx) { string TaskErrorMessage; bool bTaskSucceeded = Tasks[Idx].Run(out TaskErrorMessage); Results[Idx] = new DetectProjectSettingsResult(Tasks[Idx], bTaskSucceeded, TaskErrorMessage); Tasks[Idx] = null; }
void RunTask(int Idx) { DetectProjectSettingsTask Task = Tasks[Idx]; UserSelectedProjectSettings Project = Task.SelectedProject; PerforceConnection Perforce = Utility.OverridePerforceSettings(DefaultConnection, Project.ServerAndPort, Project.UserName); string TaskErrorMessage; bool bTaskSucceeded = Tasks[Idx].Run(Perforce, out TaskErrorMessage); Results[Idx] = new DetectProjectSettingsResult(Tasks[Idx], bTaskSucceeded, TaskErrorMessage); Tasks[Idx] = null; }