Beispiel #1
0
        private void retrieveInfo()
        {
            hoiVien   data        = new hoiVien();
            DataTable hoiVienList = data.getMemberpaymentinfo(txt_maHV.Text.Split('-')[0]);

            try
            {
                txt_tenHV.Text  = txt_maHV.Text.Split('-')[1].Trim();
                cmb_goiTap.Text = (from DataRow dr in hoiVienList.Rows
                                   where true
                                   select(string) dr["Goi"]).LastOrDefault();
                txt_amount.Text = (from DataRow dr in hoiVienList.Rows
                                   where true
                                   select(int) dr["price"]).LastOrDefault().ToString();
                dtgv_PaymentHistory.DataSource = hoiVienList;
                SetHeader();
            }
            catch (Exception ex)
            {
            }
        }