public static data.baseDS.priceDataSumRow FindAndCache(data.baseDS.priceDataSumDataTable tbl, string stockCode, string timeScale, DateTime onDate) { data.baseDS.priceDataSumRow row = tbl.FindBytypestockCodeonDate(timeScale, stockCode, onDate); if (row != null) return row; data.baseDSTableAdapters.priceDataSumTA dataTA = new data.baseDSTableAdapters.priceDataSumTA(); dataTA.ClearBeforeFill = false; dataTA.Fill(tbl, stockCode, timeScale, onDate, onDate); row = tbl.FindBytypestockCodeonDate(timeScale, stockCode, onDate); if (row != null) return row; return null; }