Exemplo n.º 1
0
 public void RunApplication(params string[] args)
 {
     ConsoleApplicationManager
     .For <T>()
     .UsingFactory(Factory)
     .Run(args);
 }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            var application = ConsoleApplicationManager.For <ConsoloversApplication1Application>().Run(args);

            if (application.Arguments.WaitForKey)
            {
                Console.ReadLine();
            }
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            ConsoleApplicationManager.For <XCopyApplication>()
            .SetWindowTitle("XCopyApplication")
            .SetWindowWidth(100)
            .Run(args);

            Console.ReadLine();
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            var container = new Container();

            container.Register <ResourceManager>(Properties.Resources.ResourceManager).WithLifetime(Lifetime.Singleton);
            var objectFactory = new DefaultFactory(container);

            ConsoleApplicationManager.For <Program>().UsingFactory(objectFactory).Run(args);
            Console.ReadLine();
        }
Exemplo n.º 5
0
        private static void Main(string[] args)
        {
            var application = ConsoleApplicationManager.For <TheApplication>().SetWindowWidth(150).SetWindowHeight(40).Run(args);

            if (application.Arguments.WaitForDebugger)
            {
                Console.WriteLine("Waiting for key");
                Console.ReadLine();
            }
        }
Exemplo n.º 6
0
        private static void Main(string[] args)
        {
            string text = null;

            while (text != "exit")
            {
                text = new InputBox <string>("Enter some long text: ", "SomeText").ReadLine(10);
                Console.WriteLine(text);
            }

            new ConsoleProxy().WaitForKey(ConsoleKey.Escape);
            ConsoleApplicationManager.For <MyProgramLogic>().Run(args);
        }
Exemplo n.º 7
0
        static void Main()
        {
            var container = new Container();

            container.Register <ResourceManager>(Properties.Resources.ResourceManager).WithLifetime(Lifetime.Singleton);
            var objectFactory = new DefaultFactory(container);

            var program = ConsoleApplicationManager.For <Program>().UsingFactory(objectFactory).Run();

            PrintArgs(program.Arguments);
            if (program.Arguments != null && program.Arguments.Wait)
            {
                Console.WriteLine();
                program.WaitForEnter();
            }
        }
Exemplo n.º 8
0
 private static void Main(string[] args)
 {
     ConsoleApplicationManager.For <DeleteMeApplication>()
     .Run(args);
 }
Exemplo n.º 9
0
 public void RunApplication(string args)
 {
     ConsoleApplicationManager.For <TestApplication <T> >().UsingFactory(Factory).Run(args);
 }