Exemple #1
0
 public static databases.baseDS.bizSubSectorRow FindAndCache(databases.baseDS.bizSubSectorDataTable tbl, string code)
 {
     databases.baseDS.bizSubSectorRow row = tbl.FindBycode(code);
     if (row != null)
     {
         return(row);
     }
     databases.baseDSTableAdapters.bizSubSectorTA dataTA = new databases.baseDSTableAdapters.bizSubSectorTA();
     dataTA.ClearBeforeFill = false;
     dataTA.FillByCode(tbl, code);
     row = tbl.FindBycode(code);
     if (row != null)
     {
         return(row);
     }
     return(null);
 }
 protected override object MakeItem(string value)
 {
     subSectorRow = myDataTbl.FindBycode(value);
     if (subSectorRow == null) return new common.myComboBoxItem(value, value);
     return new common.myComboBoxItem(value + " - " + subSectorRow.description1, value);
 }
 protected override object MakeItem(string value)
 {
     databases.baseDS.bizSubSectorDataTable tbl = DataAccess.Libs.myBizSubSectorTbl;
     subSectorRow = tbl.FindBycode(value);
     if (subSectorRow == null) return new common.myComboBoxItem(value, value);
     return new common.myComboBoxItem(value + " - " + subSectorRow.description1, value);
 }