public void UpdatePhoneListDB(PhoneListDataSet aPhoneListDataSet) { try { aPhoneListTableAdapter = new PhoneListDataSetTableAdapters.phonelistTableAdapter(); aPhoneListTableAdapter.Update(aPhoneListDataSet.phonelist); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Phones Class // Update Phone List DB " + Ex.Message); } }
public PhoneListDataSet GetPhoneListInfo() { try { aPhoneListDataSet = new PhoneListDataSet(); aPhoneListTableAdapter = new PhoneListDataSetTableAdapters.phonelistTableAdapter(); aPhoneListTableAdapter.Fill(aPhoneListDataSet.phonelist); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Phones Class // Get Phone List Info " + Ex.Message); } return(aPhoneListDataSet); }