Ejemplo n.º 1
0
 public void UpdateProjectsDB(ProjectsDataSet aProjectsDataSet)
 {
     try
     {
         aProjectsTableAdapter = new ProjectsDataSetTableAdapters.projectsTableAdapter();
         aProjectsTableAdapter.Update(aProjectsDataSet.projects);
     }
     catch (Exception Ex)
     {
         TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Project Class // Get Projects Info " + Ex.Message);
     }
 }
Ejemplo n.º 2
0
        public ProjectsDataSet GetProjectsInfo()
        {
            try
            {
                aProjectsDataSet      = new ProjectsDataSet();
                aProjectsTableAdapter = new ProjectsDataSetTableAdapters.projectsTableAdapter();
                aProjectsTableAdapter.Fill(aProjectsDataSet.projects);
            }
            catch (Exception Ex)
            {
                TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Project Class // Get Projects Info " + Ex.Message);
            }

            return(aProjectsDataSet);
        }