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()); }
public AccountController(IDBAccess dBAccess) { IoC.RegisterObject <IDBAccess, DBAccess>(); accountAccess = new AccountAccess(dBAccess); }