Beispiel #1
0
        public void loadFKdata()
        {
            myContents_FK = new List <String[]>();
            try
            {
                myContents_FK = rF.read_File_Infor_FK(tb, db);
            }
            catch { }

            myFKList = new List <string>();

            lbFK.Text += " ";
            foreach (String[] fi in myContents_FK)
            {
                myFKList.Add(fi[0]);
                lbFK.Text += fi[0] + " ";
            }
        }
Beispiel #2
0
        private void loadData()
        {
            // Load xong dữ liệu cần

            myField = rF.read_File_Infor(tbName, dbName);

            listThuocTinh1 = new List <String>();

            foreach (Field fi in myField)
            {
                listThuocTinh1.Add(fi.ColName);
            }

            cmbthuoctinh1.DataSource = listThuocTinh1;
            cmbBanggFK.DataSource    = myTableNames;
            //Load dữ liệu đã ghi trước đó


            myContents = new List <String[]>();
            try
            {
                myContents = rF.read_File_Infor_FK(tbName, dbName);
            }
            catch { }

            //Không có thì dừng
            if (myContents.Count == 0)
            {
                return;
            }


            // có thì load nó lên

            for (int i = 0; i < myContents.Count; i++)
            {
                dgvData.Rows.Add(myContents[i][0], myContents[i][1]);
            }
        }