Пример #1
0
        static void Main()
        {
            Application.SetHighDpiMode(HighDpiMode.SystemAware);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            IoCContainer.RegisterObject <IGoods, Goods.Goods>();
            IoCContainer.RegisterObject <IManager, Manager>();
            IoCContainer.RegisterObject <IStore, Store>();

            Application.Run(new Form1());
        }
Пример #2
0
 public AccountController(IDBAccess dBAccess)
 {
     IoC.RegisterObject <IDBAccess, DBAccess>();
     accountAccess = new AccountAccess(dBAccess);
 }