Example #1
0
        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";
        }
Example #2
0
        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";
        }