Example #1
0
        private static void Main(string[] args)
        {
            ConsoleController controller = new ConsoleController();

            //helper.ReplaceConsoleColor(ConsoleColor.DarkCyan, Color.Salmon);

            controller.ReplaceConsoleColors(
                new Tuple <ConsoleColor, Color>(ConsoleColor.DarkCyan, Color.Chocolate),
                new Tuple <ConsoleColor, Color>(ConsoleColor.Blue, Color.DodgerBlue),
                new Tuple <ConsoleColor, Color>(ConsoleColor.Yellow, Color.Gold),
                new Tuple <ConsoleColor, Color>(ConsoleColor.DarkBlue, Color.MidnightBlue));

            IConsole console = new SystemConsole(controller, ConsoleStartConfiguration.Colorfull);

            DemoRunner runner = new DemoRunner(new IDemo[]
            {
                new MenuDemo(),
                new CommandLineDemo(),
                new TextSplittingDemo(),
                new FramesDemo(),
                new TablePrintingDemo()
            }); // TODO: MEF

            runner.RunDemos(console);
        }
Example #2
0
        static void Main(string[] args)
        {
            var currentPath = System.Reflection.Assembly.GetExecutingAssembly().Location.Pipe(Path.GetDirectoryName);
            var SourceFileName = new[] { currentPath, "Assets", "Vardagen.jpg" }.Pipe(Path.Combine);

            Directory.CreateDirectory(OutputPath);

            DemoRunner run =
                SynchronousExample
                //BadNewThreadExample
                //NewThreadExample
                //ThreadPoolExample
                //ThreadPoolWithCallbackExample
                //APMWithDelegatesExample
                //ParallelInvokeExample
                //ParallelForEachExample
                //NewTaskExample
                //TaskFactoryExample
                //TaskContinuationExample
                //TaskExceptionsExample
                .Run;

            //AsyncDemoRunner run =
            //AsyncAwaitExample
            //AsyncAwaitRevisedExample
            //AsyncAwaitCancellationAndExceptionExample
            //    .Run;

            var sw = new Stopwatch();

            sw.Start();

            run(
                SourceFileName,
                OutputPath,
                new[] { 1.0, 0.75, 0.5, 0.25, 0.1 })
            //.Wait()
            ;

            sw.Stop();

            LogSuccess("-Done-");
            LogSuccess($"Elapsed: {TimeSpan.FromMilliseconds(sw.ElapsedMilliseconds)}");

            Console.ReadLine();
        }
Example #3
0
        private static void Main(string[] args)
        {
            var controller = new ConsoleController();
            var console    = new SystemConsole(controller, new ConsoleStartConfiguration(ConsoleStartConfiguration.Colorfull)
            {
                DesiredRowWidth = 128 // for bars
            });

            DemoRunner runner = new DemoRunner(new IDemo[]
            {
                new RainbowColorsDemo(),
                new SysInfoDemo(),
                new ColorSchemesDemo(),
                new ColorHeuriticsDemo(),
                new PrintAllNamedColorsDemo()
            }); // TODO: MEF

            runner.RunDemos(console);
        }
Example #4
0
    public static int main(string[] array)
    {
        int result = 0;

        try
        {
            Startup.enterMainThread();
            DemoRunner.main(Startup.glob(array, 0));
        }
        catch (System.Exception ex)
        {
            System.Exception ex2    = Util.mapException(ex);
            Thread           thread = Thread.currentThread();
            thread.getThreadGroup().uncaughtException(thread, ex2);
            result = 1;
        }
        finally
        {
            Startup.exitMainThread();
        }
        return(result);
    }
 static void Main()
 {
     DemoRunner.Run <CollisionInterfaceDemo>();
 }
Example #6
0
 static void Main()
 {
     DemoRunner.Run <VehicleDemo>();
 }
 static void Main()
 {
     DemoRunner.Run <BasicDemo>();
 }
 static void Main()
 {
     DemoRunner.Run <MultiThreadedDemo>();
 }
 static void Main()
 {
     DemoRunner.Run <BulletXmlImportDemo>();
 }
Example #10
0
 static void Main()
 {
     DemoRunner.Run <MotorDemo>();
 }
 static void Main()
 {
     DemoRunner.Run <ConstraintDemo>();
 }
 static void Main()
 {
     DemoRunner.Run <SerializeDemo>();
 }
Example #13
0
 static void Main(string[] args)
 {
     DemoRunner.Run(args);
 }
 static void Main()
 {
     DemoRunner.Run <PendulumDemo>();
 }
Example #15
0
 static void Main()
 {
     DemoRunner.Run <RagdollDemo>();
 }
 static void Main()
 {
     DemoRunner.Run <CcdPhysicsDemo>();
 }
Example #17
0
 static void Main()
 {
     DemoRunner.Run <RollingFrictionDemo>();
 }
Example #18
0
 static void Main()
 {
     DemoRunner.Run <Box2DDemo>();
 }
Example #19
0
 static void Main()
 {
     DemoRunner.Run <GImpactTestDemo>();
 }
Example #20
0
 static void Main()
 {
     DemoRunner.Run <FeatherStoneDemo>();
 }
Example #21
0
 static void Main()
 {
     DemoRunner.Run <UrdfDemo>();
 }
 static void Main()
 {
     DemoRunner.Run <ConcaveRaycastDemo>();
 }
 static void Main()
 {
     DemoRunner.Run <DistanceDemo>();
 }
Example #24
0
 static void Main()
 {
     DemoRunner.Run <BenchmarkDemo>();
 }
Example #25
0
 static void Main()
 {
     DemoRunner.Run <ConvexDecompositionDemo>();
 }
 static void Main()
 {
     DemoRunner.Run <CharacterDemo>();
 }
 static void Main()
 {
     DemoRunner.Run <ConcaveConvexCastDemo>();
 }
Example #28
0
 static void Main()
 {
     DemoRunner.Run <BspDemo>();
 }