public static GalaxyJobRunResult String2JobRunResult(string strJobRunResult) { GalaxyJobRunResult jobRunResult = GalaxyJobRunResult.Failed; if (strJobRunResult == "Failed") { jobRunResult = GalaxyJobRunResult.Failed; } else if (strJobRunResult == "Successful") { jobRunResult = GalaxyJobRunResult.Successful; } return(jobRunResult); }
public static string JobRunResult2String(GalaxyJobRunResult jobRunResult) { string strJobRunResult = ""; switch (jobRunResult) { case GalaxyJobRunResult.Failed: strJobRunResult = "Failed"; break; case GalaxyJobRunResult.Successful: strJobRunResult = "Successful"; break; } return(strJobRunResult); }