public void StartExecutable(Sample sample) { if (sample.Category == SampleCategory.Test) StartTest(sample.AssemblyFilePath, sample.EntryClass, sample.EntryMethod); else StartExecutable(sample.AssemblyFilePath); }
public void OpenSolutionForProject(Sample sample) { if (sample.Category == SampleCategory.Game) Process.Start(sample.ProjectFilePath); else StartVisualStudio(sample.SolutionFilePath, sample.ProjectFilePath, sample.EntryClass); }
private static bool CanStartExecutable(Sample sample) { return SampleLauncher.DoesAssemblyExist(sample); }
private static void StartExecutable(Sample sample) { SampleLauncher.StartExecutable(sample); }
private static bool CanViewSourceCode(Sample sample) { return SampleLauncher.DoesProjectExist(sample); }
private static void ViewSourceCode(Sample sample) { SampleLauncher.OpenSolutionForProject(sample); }
public bool DoesAssemblyExist(Sample sample) { return File.Exists(sample.AssemblyFilePath); }
public static bool DoesProjectExist(Sample sample) { return File.Exists(sample.ProjectFilePath); }
private void StartExecutable(Sample sample) { sampleLauncher.StartExecutable(sample); }