public frmAIOMain() { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // tree = new AIOFolderTree(); aioDb = new AIODatabase(); aioDb.ConnectToDB(DatabaseType.Access, "AIOManager.mdb"); //Choose a controller switch (curModule) { case AIOModule.MODULE_BOOK: controller = new AIOBookController(aioDb); break; } tree.CreateRoot(AIOConstant.GetModuleName(curModule)); tree.AioDatabase = aioDb; tree.Controller = controller; logicalExplorer1.SetTree(tree); logicalExplorer1.AioDatabase = aioDb; }
public frmBookInfo(AIODatabase aioDb, AIOCommonController controller, string ID) { // // Required for Windows Form Designer support // InitializeComponent(); this.aioDb = aioDb; this.controller = (AIOBookController)controller; this.book = (AIOBook)this.controller.Select(ID); //Init for udYear udYear.Maximum = DateTime.Now.Year; }
public frmMovieInfo(AIODatabase aioDb, AIOCommonController controller, string ID) { // // Required for Windows Form Designer support // InitializeComponent(); this.aioDb = aioDb; this.movieController = ( AIOMovieController )controller; this.movie = ( AIOMovie )this.movieController.Select(ID); nudYear.Maximum = DateTime.Now.Year; // // TODO: Add any constructor code after InitializeComponent call // }