private void bteDoiTuongCha_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { frmLookUp_KhachHang frmLookUpKhachHang = new frmLookUp_KhachHang("%%"); if (frmLookUpKhachHang.ShowDialog() == DialogResult.OK) { bteDoiTuongCha.Tag = frmLookUpKhachHang.SelectedItem; bteDoiTuongCha.Text = frmLookUpKhachHang.SelectedItem.TenDoiTuong; } }
private void bteDoiTuongCha_DoubleClick(object sender, EventArgs e) { frmLookUp_KhachHang frmLookUp = new frmLookUp_KhachHang(String.Format("%{0}%", bteDoiTuongCha.Text)); if (frmLookUp.ShowDialog() == DialogResult.OK) { bteDoiTuongCha.Tag = frmLookUp.SelectedItem; bteDoiTuongCha.Text = frmLookUp.SelectedItem.TenDoiTuong; txtMa.Text = frmLookUp.SelectedItem.MaDoiTuong; } }
private void bteDoiTuongCha_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { frmLookUp_KhachHang frmLookUp = new frmLookUp_KhachHang(String.Format("%{0}%", bteDoiTuongCha.Text)); if (frmLookUp.ShowDialog() == DialogResult.OK) { bteDoiTuongCha.Tag = frmLookUp.SelectedItem; bteDoiTuongCha.Text = frmLookUp.SelectedItem.TenDoiTuong; txtMa.Text = frmLookUp.SelectedItem.MaDoiTuong; } }
private void bteDoiTuongCha_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { frmLookUp_KhachHang frmLookUpKhachHang = new frmLookUp_KhachHang("%%"); if (frmLookUpKhachHang.ShowDialog() == DialogResult.OK) { bteDoiTuongCha.Tag = frmLookUpKhachHang.SelectedItem; bteDoiTuongCha.Text = frmLookUpKhachHang.SelectedItem.TenDoiTuong; } } }
private void bteDoiTuongCha_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { frmLookUp_KhachHang frmLookUp = new frmLookUp_KhachHang(String.Format("%{0}%", bteDoiTuongCha.Text)); if (frmLookUp.ShowDialog() == DialogResult.OK) { bteDoiTuongCha.Tag = frmLookUp.SelectedItem; bteDoiTuongCha.Text = frmLookUp.SelectedItem.TenDoiTuong; txtMa.Text = frmLookUp.SelectedItem.MaDoiTuong; } } }