示例#1
0
文件: Program.cs 项目: Glebhawk/Exam
        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);
 }