//TableGroup Data private void TableGroupData() { try { EclipsePOS.WPF.SystemManager.Data.tableGroupDataSet tableGroupDataSet = new tableGroupDataSet(); EclipsePOS.WPF.SystemManager.Data.tableGroupDataSetTableAdapters.table_groupTableAdapter tableGroupTableAdapter = new EclipsePOS.WPF.SystemManager.Data.tableGroupDataSetTableAdapters.table_groupTableAdapter(); tableGroupTableAdapter.Fill(tableGroupDataSet.table_group); tableGroupDataSet.WriteXml(View.OutputFolderPath() + "\\TableGroup.xml", XmlWriteMode.WriteSchema); } catch (Exception e) { //Microsoft.Windows.Controls.MessageBox.Show(e.ToString()); } }
//TableGroup private void TableGroupData() { try { EclipsePOS.WPF.SystemManager.Data.tableGroupDataSet dataSetXml = new tableGroupDataSet(); dataSetXml.ReadXml(View.InputFolderPath() + "\\TableGroup.xml", XmlReadMode.ReadSchema); EclipsePOS.WPF.SystemManager.Data.tableGroupDataSet dataSetRDB = new tableGroupDataSet(); EclipsePOS.WPF.SystemManager.Data.tableGroupDataSetTableAdapters.table_groupTableAdapter tableAdapter = new EclipsePOS.WPF.SystemManager.Data.tableGroupDataSetTableAdapters.table_groupTableAdapter(); tableAdapter.Fill(dataSetRDB.table_group); dataSetRDB.Merge(dataSetXml); tableAdapter.Update(dataSetRDB); } catch (Exception e) { //Microsoft.Windows.Controls.MessageBox.Show(e.ToString()); return; } }