Exemplo n.º 1
0
 public UserDS.TabUserDataTable GetAllUserTab()
 {
     try
     {
         tabUserAdapter.FillAll(userDataSet.TabUser);
         return(userDataSet.TabUser);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Exemplo n.º 2
0
 //get all of the users in our users table
 public UserDS.TabUserDataTable GetUserDataTable()
 {
     try
     {
         //use adapter to fill in user data sets data table (calls our select sql in the adapter, maps to DS)
         tabUserTableAdapter.FillAll(userDataSet.TabUser);
         return(userDataSet.TabUser); //give table of data to whoever wanted it
     }
     catch (Exception ex)
     {
         return(null);
     }
 }
Exemplo n.º 3
0
 //create a Get User function that returns a DATASET from TAB USER INFO and is captured in the variable _userDataSet.TabUser
 public UserDataSet.TabUserDataTable GetUser()
 {
     try
     {
         _tabUserTableAdapter.FillAll(_userDataSet.TabUser);
         return(_userDataSet.TabUser);
     }
     catch (Exception ex)
     {
         Console.WriteLine("Exception:" + ex.ToString() + ", captured. Could Not Fill Table");
         throw ex;
     }
 }
Exemplo n.º 4
0
 public UserDS.TabUserDataTable GetUserDataTable()
 {
     try
     {
         tabUserAdapter.FillAll(userDataSet.TabUser);//adapter helps fill our userDS for the TabUser table
         return(userDataSet.TabUser);
     }
     catch (Exception ex)
     {
         //dunno make it someone elses problem for now
         throw ex;
     }
 }