Exemple #1
0
        static void Main()
        {
            RepoInterface<Transaction> repo = new Repository<Transaction>();
            Validator val = new Validator(repo);
            Controller.Controller ctrl = new Controller.Controller(repo,val);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new HomeForm(ctrl));
        }
Exemple #2
0
 public Controller(RepoInterface<Transaction> repo, Validator val)
 {
     this.repo = repo;
     this.val = val;
 }