New Utility Window. scraping of StockGroups, and coupled Stocks, Show in listview on UtilityWindow
This commit is contained in:
@ -88,6 +88,24 @@ namespace StockDAL
|
||||
File.WriteAllText($"Aktier_{listText}.txt", result);
|
||||
}
|
||||
|
||||
public List<StockGroupModel> GetGroupStocksList(string listText,int startNo=0)
|
||||
{
|
||||
var resList = new List<StockGroupModel>();
|
||||
var nr = startNo;
|
||||
Thread.Sleep(500);
|
||||
chooseList.SelectDropDownByText(listText);
|
||||
Thread.Sleep(3000);
|
||||
var stocklist = tblList.ReadHandledStock();
|
||||
foreach (var stock in stocklist)
|
||||
{
|
||||
resList.Add(new StockGroupModel { Id = ++nr, StockGroup = listText, StockName = stock.ColumnValue });
|
||||
//result += $"{listText}: {stock.ColumnValue} {System.Environment.NewLine}";
|
||||
}
|
||||
//File.WriteAllText($"Aktier_{listText}.txt", result);
|
||||
return resList;
|
||||
}
|
||||
|
||||
|
||||
//public void CreateProduct()
|
||||
//{
|
||||
// lnkProduct.Click();
|
||||
|
||||
Reference in New Issue
Block a user