예제 #1
0
        public static void Main(string[] args)
        {
            var cmd = new Commandline(args);
            var da  = new Dataaccess();
            var ui  = new UI();
            var app = new Controller(cmd, ui, da);

            app.Run(args);
        }
        public static void Main(string[] args)
        {
            var da         = new Dataaccess();
            var bl         = new Businesslogic(da);
            var pre        = new Presenter();
            var uc         = new UseCase(bl, da, pre);
            var controller = new Controller(uc);

            controller.Show(args);
        }
예제 #3
0
 Controller(Commandline cmd, UI ui, Dataaccess da)
 {
     _cmd = cmd;
     _ui  = ui;
     _da  = da;
 }