public ControllerFactory(FileHandler fileHandler)
        {
            this.fileHandler = fileHandler;

            this.dll = new DataBaseLogicLayer(string.Format("Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Jet OLEDB:Engine Type=5", this.fileHandler.CompleteFileString()));
            this.bll = new BLL(this.fileHandler, this.dll);
        }
        private void BackUpAndRestoreFrm_Load(object sender, EventArgs e)
        {
            FileHandler file = new FileHandler();

            if (file.HasDatabaseFile())
            {
                grpBackup.Enabled = true;
            }
        }
        static void Main()
        {
            FileHandler fileHandler = new FileHandler();

            controllerFactory = new ControllerFactory(fileHandler);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Application.Run(new MainForm());
        }
示例#4
0
 public BLL(FileHandler fileHandler, DataBaseLogicLayer dll)
 {
     this.fileHandler = fileHandler;
     this.dll = dll;
     this.Setup();
 }