private void toolStripButtonTim_Click(object sender, EventArgs e) { QUANLYKHACHSAN.UserInterface.TimKhachHang tim = new QUANLYKHACHSAN.UserInterface.TimKhachHang(); Point p = PointToScreen(toolStripButtonTim.Bounds.Location); p.X += toolStripButtonTim.Width; p.Y += toolStripButtonTim.Height; tim.Location = p; tim.ShowDialog(); if (tim.DialogResult == DialogResult.OK) { ctrl.TimKhachHang(tim.cmbtimKH.SelectedValue.ToString()); } }
private void toolTimKiem_Click(object sender, EventArgs e) { frmTimKhachHang tim = new frmTimKhachHang(); Point p = PointToScreen(toolTimKiem.Bounds.Location); p.X += toolTimKiem.Width; p.Y += toolTimKiem.Height; tim.Location = p; tim.ShowDialog(); if (tim.DialogResult == DialogResult.OK) { ctrl.TimKhachHang(tim.cmbtimKH.SelectedValue.ToString()); } }