Example #1
0
 public MyConsole(MyController ctrl)
 {
     this.ctrl = ctrl;
     this.printFlag = true;
     this.logFlag = true;
     this.filename = "default.txt";
 }
Example #2
0
 public static void Main(string[] args)
 {
     IRepository repo = new MyRepository();
     MyController ctrl = new MyController(repo);
     MyConsole console = new MyConsole(ctrl);
     console.run();
 }