private void OnAddPhieuThu() { dlgAddPhieuThuHopDong dlg = new dlgAddPhieuThuHopDong(); if (dlg.ShowDialog(this) == DialogResult.OK) { DisplayAsThread(); } }
private void OnViewPhieuThuHopDong() { if (dgPhieuThu.SelectedRows == null || dgPhieuThu.SelectedRows.Count <= 0) { return; } DataRow drPhieuThu = (dgPhieuThu.SelectedRows[0].DataBoundItem as DataRowView).Row; dlgAddPhieuThuHopDong dlg = new dlgAddPhieuThuHopDong(drPhieuThu); if (dlg.ShowDialog(this) == DialogResult.Cancel) { if (dlg.IsExportedInvoice) { HighlightExportedInvoice(); } } else { HighlightExportedInvoice(); } }