private void LoadData() { bool result = false; dataPurchaseDataSet oData = new dataPurchaseDataSet(); result = oData.LoadData(Path.Combine(Application.StartupPath, "data"), "dataPurchaseDetail.xml", "detail"); _dsData = new DataSet(); _dsData = oData.DsData; detailBindingSource.DataSource = _dsData; detailBindingSource.DataMember = "detail"; }
private void LoadData() { bool result = false; dataPurchaseDataSet oData = new dataPurchaseDataSet(); result = oData.LoadData(Path.Combine(Application.StartupPath, "data"), "dataPurchaseHeader.xml", "header"); _dsData = new DataSet(); _dsData = oData.DsData; masterBindingSource.DataSource = _dsData; masterBindingSource.DataMember = "header"; }