public RootViewModel()
        {
            _dao = new DAO.DAO();
            _dao.GetAllTests();

            CurrentView = new TestListViewModel(this);
        }
Exemple #2
0
        private void FormPrincipal_Load(object sender, EventArgs e)
        {
            DAO.DAO dao = new DAO.DAO();

            // Criara a pasta bd e o arquivo .sdf
            dao.CreateDB();

            // Criara as tabelas no bd caso nao tiver nenhuma
            if (dao.CheckTB() == 0)
            {
                dao.CreateTB();
            }
        }
Exemple #3
0
 public Controller(DAO.DAO dao)
 {
     Dao = dao;
 }
 public DAOController(string connectionString)
 {
     this.ConnectionString = connectionString;
     this.objDAO           = new DAO.DAO();
 }
Exemple #5
0
 public DTO(DAO.DAO dao)
 {
     dao_ = dao;
 }