コード例 #1
0
 public Form2(ListHolder listHolder)
 {
     InitializeComponent();
     _listHolder = listHolder;
     fillTrendingList();
     fillMentionsList();
     fillUrlsList();
 }
コード例 #2
0
        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());
        }
コード例 #3
0
 public void getTrending(ListHolder list)
 {
     _listHolder = list;
 }
コード例 #4
0
 public Form1(ListHolder listHolder)
 {
     InitializeComponent();
     _listHolder = listHolder;
 }