Example #1
0
 public void StartExecutable(Sample sample)
 {
     if (sample.Category == SampleCategory.Test)
         StartTest(sample.AssemblyFilePath, sample.EntryClass, sample.EntryMethod);
     else
         StartExecutable(sample.AssemblyFilePath);
 }
Example #2
0
 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);
		}
Example #7
0
 public bool DoesAssemblyExist(Sample sample)
 {
     return File.Exists(sample.AssemblyFilePath);
 }
Example #8
0
 public static bool DoesProjectExist(Sample sample)
 {
     return File.Exists(sample.ProjectFilePath);
 }
 private void StartExecutable(Sample sample)
 {
     sampleLauncher.StartExecutable(sample);
 }