public bool equalsNews(actualNewsItem item, string line) { if (item.news.Contains(mainForm.getNews(line)) && item.symbol.Contains(mainForm.getSymbol(line))) return true; return false; }
public void addNews(string line) { try { actualNewsItem item = new actualNewsItem(); item.symbol = mainForm.getSymbol(line); item.news = mainForm.getNews(line); item.volatiled = mainForm.getVolatile(line); item.reverse = mainForm.getReverse(line); mNews.Add(item); } catch (Exception exc) { Console.WriteLine(exc.Message); } }