private void FormVT_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'dataSetDS.Vattu' table. You can move, or remove it, as needed. this.vattuTableAdapter.Connection = DBmanager.connection; this.vattuTableAdapter.Fill(this.dataSetDS.Vattu); DBmanager.bindingCN.CurrentChanged += OnCurrentChangedBindingCN; log = new DataTableLog(dataSetDS.Vattu); }
private void FormKho_Load(object sender, EventArgs e) { if (tableAdapterManager.ChiNhanhTableAdapter == null) { tableAdapterManager.ChiNhanhTableAdapter = new DataSetDSTableAdapters.ChiNhanhTableAdapter(); } tableAdapterManager.ChiNhanhTableAdapter.Connection.Close(); tableAdapterManager.ChiNhanhTableAdapter.Connection = DBmanager.connection;; tableAdapterManager.ChiNhanhTableAdapter.Fill(this.dataSetDS.ChiNhanh); // TODO: This line of code loads data into the 'dataSetDS.Kho' table. You can move, or remove it, as needed. khoTableAdapter.Connection.Close(); khoTableAdapter.Connection = DBmanager.connection; this.khoTableAdapter.Fill(this.dataSetDS.Kho); DBmanager.bindingCN.CurrentChanged += OnCurrentChangedBindingCN; log = new DataTableLog(dataSetDS.Kho); }
public FormNV() { InitializeComponent(); ur = new DataTableLog(dataSetDS.NhanVien); }