public Form2(ListHolder listHolder) { InitializeComponent(); _listHolder = listHolder; fillTrendingList(); fillMentionsList(); fillUrlsList(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ListHolder trendingList = new ListHolder(); Form1 myForm = new Form1(trendingList); //myForm.getTrending(trendingList); Application.Run(myForm); Form2 myForm2 = new Form2(trendingList); //myForm2.getTrending(trendingList); Application.Run(myForm2); //Application.Run(new Form2()); }
public void getTrending(ListHolder list) { _listHolder = list; }
public Form1(ListHolder listHolder) { InitializeComponent(); _listHolder = listHolder; }