public void UpdateMaterialSheetTypesDB(MaterialSheetTypesDataSet aMaterialSheetTypesDataSet) { try { aMaterialSheetTypesTableAdapter = new MaterialSheetTypesDataSetTableAdapters.materialsheettypesTableAdapter(); aMaterialSheetTypesTableAdapter.Update(aMaterialSheetTypesDataSet.materialsheettypes); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Material Sheet Class // Update Material Sheet DB " + Ex.Message); } }
public MaterialSheetTypesDataSet GetMaterialSheetTypesInfo() { try { aMaterialSheetTypesDataSet = new MaterialSheetTypesDataSet(); aMaterialSheetTypesTableAdapter = new MaterialSheetTypesDataSetTableAdapters.materialsheettypesTableAdapter(); aMaterialSheetTypesTableAdapter.Fill(aMaterialSheetTypesDataSet.materialsheettypes); } catch (Exception Ex) { TheEventLogClass.InsertEventLogEntry(DateTime.Now, "Material Sheet Class // Get Material Sheet Info " + Ex.Message); } return(aMaterialSheetTypesDataSet); }