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); }
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(); }
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); }
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>(); }
static void Main() { DemoRunner.Run <VehicleDemo>(); }
static void Main() { DemoRunner.Run <BasicDemo>(); }
static void Main() { DemoRunner.Run <MultiThreadedDemo>(); }
static void Main() { DemoRunner.Run <BulletXmlImportDemo>(); }
static void Main() { DemoRunner.Run <MotorDemo>(); }
static void Main() { DemoRunner.Run <ConstraintDemo>(); }
static void Main() { DemoRunner.Run <SerializeDemo>(); }
static void Main(string[] args) { DemoRunner.Run(args); }
static void Main() { DemoRunner.Run <PendulumDemo>(); }
static void Main() { DemoRunner.Run <RagdollDemo>(); }
static void Main() { DemoRunner.Run <CcdPhysicsDemo>(); }
static void Main() { DemoRunner.Run <RollingFrictionDemo>(); }
static void Main() { DemoRunner.Run <Box2DDemo>(); }
static void Main() { DemoRunner.Run <GImpactTestDemo>(); }
static void Main() { DemoRunner.Run <FeatherStoneDemo>(); }
static void Main() { DemoRunner.Run <UrdfDemo>(); }
static void Main() { DemoRunner.Run <ConcaveRaycastDemo>(); }
static void Main() { DemoRunner.Run <DistanceDemo>(); }
static void Main() { DemoRunner.Run <BenchmarkDemo>(); }
static void Main() { DemoRunner.Run <ConvexDecompositionDemo>(); }
static void Main() { DemoRunner.Run <CharacterDemo>(); }
static void Main() { DemoRunner.Run <ConcaveConvexCastDemo>(); }
static void Main() { DemoRunner.Run <BspDemo>(); }