private void searchKhachHang() { SearchCustomer frmSearch = new SearchCustomer(true); if (frmSearch.ShowDialog(this) == DialogResult.OK) { this.idKhachHang = frmSearch.khachHangSelected.idKhachHang; this.txtTenKhachHang.Text = frmSearch.khachHangSelected.idKhachHang; loadData(); } }
private void btnBrowse_Click(object sender, EventArgs e) { SearchCustomer frmSearch = new SearchCustomer(true); if (frmSearch.ShowDialog(this) == DialogResult.OK) { this.idKhachHang = frmSearch.khachHangSelected.idKhachHang; this.txtTenKhachHang.Text = frmSearch.khachHangSelected.idKhachHang; reloadData(); } }
private void browseKhachHang() { SearchCustomer frmSearch = new SearchCustomer(true); if (frmSearch.ShowDialog(this) == DialogResult.OK) { this.orderDTO.idKhachHang = frmSearch.khachHangSelected.idKhachHang; this.orderDTO.tenKhachHang = frmSearch.khachHangSelected.tenKhachHang; this.txtTenKhachHang.Text = frmSearch.khachHangSelected.tenKhachHang; this.txtDiaDiemGiaoHang.Text = frmSearch.khachHangSelected.diaChi; if (frmSearch.khachHangSelected.listLienHe.Count > 0) { this.txtLienHe.Text = frmSearch.khachHangSelected.listLienHe[0].name; this.txtSDT.Text = frmSearch.khachHangSelected.listLienHe[0].phone; } else { this.txtLienHe.Text = ""; this.txtSDT.Text = ""; } } }
private void DM_KhachHang_ListToolStripMenuItem_Click(object sender, EventArgs e) { SearchCustomer frmSearch = new SearchCustomer(); frmSearch.ShowDialog(this); }
private void lblListKhachHang_Click(object sender, EventArgs e) { SearchCustomer frmSearch = new SearchCustomer(); frmSearch.ShowDialog(); }