/// <summary> /// Konstruktor /// </summary> public SQL_Statement() { DQ = new DataQuerry <T_DO>(); DQ.ErrorReceived += DQ_ErrorReceived; DQ.DataSetReceived += DQ_DataSetReceived; DQ.DataObjectsReceived += DQ_DataObjectsReceived1; }
private void btnTimkiemCMND_Click(object sender, EventArgs e) { BenhNhan bn = DataQuerry.findBNByCMND(txtSoCMND.Text.Trim()); txtMaSoBN.Text = bn.masoBN; txtSoCMND.Text = bn.soCMND; txtHoTen.Text = bn.hoTen; txtDiaChi.Text = bn.diaChi; }
private void DQ_ErrorReceived(DataQuerry <T_DO> Sender, string Message) { OnErrorReceived(Message); }
private void DQ_DataSetReceived(DataQuerry <T_DO> Sender, DataSet DataSet) { OnDataSetReceived(DataSet); }
private void DQ_DataObjectsReceived1(DataQuerry <T_DO> Sender, List <T_DO> DataObjects) { OnDataObjectsReceived(DataObjects); }