Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            SocialNetworkWindow window = new SocialNetworkWindow("All results", results, this);

            window.Text = "All results";
            window.Show();
        }
Beispiel #2
0
        private void menu_filters_Click(object sender, EventArgs e)
        {
            List <Result> filtered = new List <Result>();

            foreach (Result result in results)
            {
                if (result.Link.Contains(((Button)sender).Text.ToLower()))
                {
                    filtered.Add(result);
                }
            }
            SocialNetworkWindow window = new SocialNetworkWindow(((Button)sender).Text, filtered, this);

            window.Text = ((Button)sender).Text + " Results " + filtered.Count;
            window.Show();
            //throw new NotImplementedException();
        }