private void toolIn_Click(object sender, EventArgs e) { DataRowView row = (DataRowView)bindingNavigator.BindingSource.Current; if (row != null) { PhieuChiController ctrlChi = new PhieuChiController(); String ma_phieu = row["ID"].ToString(); CuahangNongduoc.BusinessObject.PhieuChi ph = ctrlChi.LayPhieuChi(ma_phieu); frmInPhieuChi InPhieu = new frmInPhieuChi(ph); InPhieu.Show(); } }
public frmInPhieuChi(CuahangNongduoc.BusinessObject.PhieuChi ph) { InitializeComponent(); m_PhieuChi = ph; }