コード例 #1
0
        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            CongThuc_DTO CongThuc = new CongThuc_DTO();

            CongThuc.MaNL = tbSearch.Text;
            List <CongThuc_DTO> Search = CongThuc_BUS.Search_CongThuc(CongThuc);

            dataGridView1.DataSource = Search;
            if (tbSearch.Text == "")
            {
                Load();
            }
        }
コード例 #2
0
        public void Load()
        {
            List <CongThuc_DTO> CongThuc = CongThuc_BUS.GetListCongThuc();

            dataGridView1.DataSource = CongThuc;
        }