private void LoadDataIndustry(ComboBox obj)
 {
     data.baseDS.bizIndustryDataTable industryTbl = DataAccess.Libs.myBizIndustryTbl;
     obj.DataSource = null;
     obj.Items.Clear();
     obj.DisplayMember = industryTbl.description1Column.ColumnName;
     obj.ValueMember   = industryTbl.codeColumn.ColumnName;
     obj.DataSource    = industryTbl;
     if (industryTbl.Count > 0)
     {
         obj.MaxDropDownItems = industryTbl.Count;
         obj.SelectedIndex    = 0;
     }
 }
Ejemplo n.º 2
0
 public data.baseDS.bizIndustryDataTable GetBizIndustry()
 {
     data.baseDS.bizIndustryDataTable tbl = new data.baseDS.bizIndustryDataTable();
     DbAccess.LoadData(tbl);
     return(tbl);
 }
Ejemplo n.º 3
0
 public data.baseDS.bizIndustryDataTable GetBizIndustry()
 {
     data.baseDS.bizIndustryDataTable tbl = new data.baseDS.bizIndustryDataTable();
     DbAccess.LoadData(tbl);
     return tbl;
 }
Ejemplo n.º 4
0
 public static void LoadData(data.baseDS.bizIndustryDataTable tbl)
 {
     bizIndustryTA.ClearBeforeFill = false;
     bizIndustryTA.Fill(tbl);
 }