コード例 #1
0
 private void Load_Data()
 {
     try
     {
         _KTDIENGIAIRepo = new KTDIENGIAIRepo();
         gridData.DataSource = _KTDIENGIAIRepo.GetAll();
         //_db = new dbVstoreAppDataContext(Const.builder.ConnectionString);
         //gridData.DataSource = null;
         //gridData.DataSource = _db.KT_DIENGIAIs;
         //gridData.RefreshDataSource();
         //gridView1.RefreshData();
     }
     catch (Exception) { }
 }
コード例 #2
0
 private void LoadDiengiai()
 {
     _KTDIENGIAIRepo = new KTDIENGIAIRepo();
     cboDiengiai.DisplayMember = "DIEN_GIAI1";
     cboDiengiai.ValueMember = "ID";
     cboDiengiai.DropDownColumns = "DIEN_GIAI1,DIEN_GIAI2";
     cboDiengiai.DataSource = _KTDIENGIAIRepo.GetAll();
     cboDiengiai.SelectedIndex = -1;
 }