Exemple #1
0
        public static void MenuExamples()
        {
            CreateExamplesList();
            Console.WriteLine("> Menu Examples: ");
            foreach (var example in Examples)
            {
                Console.WriteLine(example);
            }
            Console.WriteLine("Write the number of the example you want to see:");

            var input  = Console.ReadLine();
            var select = 0;

            if (input == null)
            {
                Console.WriteLine("You must choose.");
                MenuExamples();
                return;
            }

            select = Int32.Parse(input);

            switch (select)
            {
            case 0:
                Menu();
                break;

            case 1:
                Console.Clear();
                Example1.Run();
                break;

            case 2:
                Console.Clear();
                Example2.Run();
                break;

            case 3:
                Console.Clear();
                Example3.Run();
                break;

            default:
                Console.Clear();
                Console.WriteLine("That example doesn't exist.");
                MenuExamples();
                break;
            }
        }
Exemple #2
0
        static void Main(string[] args)
        {
            bool print = args.Contains("--print");

            Check("Example  1", Example1.Run(print));
            Check("Example  2", Example2.Run(print));
            Check("Example  3", Example3.Run(print));
            Check("Example  4", Example4.Run(print));
            Check("Example  5", Example5.Run(print));
            Check("Example  6", Example6.Run(print));
            Check("Example  7", Example7.Run(print));
            Check("Example  8", Example8.Run(print));
            Check("Example  9", Example9.Run());
            Check("Example 10", Example10.Run(print));
            Check("Example 11", Example11.Run(print));
        }
Exemple #3
0
 public override void Uninstall(IDictionary savedState)
 {
     Example2.Run(Example2.calc_x86, Example2.calc_x64);
 }