public SuaKhachHang(KhachHangForm form, string KhId) : this() { parentForm = form; KhachHangId = KhId; GetCurrentData(KhId); }
private void KhachHangBtn_Click(object sender, EventArgs e) { if (Application.OpenForms.OfType <KhachHangForm>().Count() == 1) { Application.OpenForms.OfType <KhachHangForm>().First().Focus(); } else { var form = new KhachHangForm(); form.Show(); } }
public ThemKhachHang(KhachHangForm form) : this() { parentForm = form; }