예제 #1
0
        public void LoadThuoc()
        {
            int k = txt_thuoc.AutoCompleteCustomSource.Count;

            for (int i = 1; i <= k; i++)
            {
                txt_thuoc.AutoCompleteCustomSource.RemoveAt(0);
            }
            foreach (DataRow row in THUOC_BUS.LoadThuoc().Rows)
            {
                txt_thuoc.AutoCompleteCustomSource.Add(row[1].ToString());
            }
        }
예제 #2
0
        public void LoadThuoc()
        {
            int k = dgv_thuoc.Rows.Count;

            for (int i = 1; i < k; i++)
            {
                dgv_thuoc.Rows.RemoveAt(0);
            }
            foreach (DataRow row in THUOC_BUS.LoadThuoc().Rows)
            {
                dgv_thuoc.Rows.Add(dgv_thuoc.Rows.Count.ToString(), row[1].ToString());
            }
        }