/// <summary>
 /// Create a new demo class
 /// </summary>
 /// <param name="example">Demo structure from template parse</param>
 /// <param name="name">Title from TODO:</param>
 /// <param name="category">Category from TODO:</param>
 public ExampleCode(ExampleBase example, string name, string category)
 {
     Example = example;
     Example.Console.Changed += new EventHandler(Console_Changed); Name = name;
     Category = category;
     Runnable = true;
     AutoRun = false;
     Files = new List<ExampleFile>();
 }
Example #2
0
 /// <summary>
 /// Create a new demo class
 /// </summary>
 /// <param name="example">Demo structure from template parse</param>
 /// <param name="name">Title from TODO:</param>
 /// <param name="category">Category from TODO:</param>
 /// <param name="solutionFile">The solutionfilename</param>
 public ExampleCode(ExampleBase example, string name, string category, string solutionFile)
 {
     Example = example;
     Example.Console.Changed += new EventHandler(Console_Changed);
     Example.InputFileChanged += new EventHandler(Input_Changed);
     Name = name;
     OriginalFileName = solutionFile;
     Category = category;
     Runnable = true;
     AutoRun = false;
     Files = new List<ExampleFile>();
 }